Hey guys. Getting null when attempting to find aWebElement. Tried with Xpath and Css path (both copied from Chrome -> Inspect Element). It's a text field (numeric value) I'm trying to read. What can I do?
My (java code is):
By firstItemPriceAfterDiscount = By.xpath("//*[@id=\"dgrid_10-row-0\"]/table/tr/td[5]/input”);
simonstewart: I see things got a little more exciting last night with your work
simonstewart
Indeed.
Can't have a quiet life
_Milencho
simonstewart not in it indrustry
qwebirc6785
It's working the first time, and then after the page changes a bit (the xPath is the same!) I'm getting null again, still the same xpath although the page is a bit different in the second time
_Milencho
industry*
may be u can find element with xpath contains or start-with
qwebirc6785
the thing is
it is finding it the first time
_Milencho
.//input[contains(class,'sbsb_a')]/a
jconstance joined the channel
qwebirc6785
and the second time, i check and see that the xpath is the same but it fails
_Milencho
try with id
or something else
qwebirc6785
i'm getting an ElementNotFoundException
_Milencho
$x("//input[@value='Google Search']")
i'm not food in automation but if u was you, i'll try with id class another xpath
neeti has quit
jconstance has quit
jimpurbrick has quit
jimpurbrick joined the channel
jconstance joined the channel
jconstance has quit
jconstance joined the channel
SitamJana joined the channel
cravecode joined the channel
Stevesan joined the channel
shawnknight has quit
shawnknight joined the channel
soc42 joined the channel
Rollup has quit
Rollup joined the channel
Rollup has quit
jimpurbrick has quit
jimpurbrick joined the channel
jimpurbrick has quit
jimpurbrick joined the channel
WhereIsMySpoon
qwebirc6785, _Milencho, fyi when you're using contains() in xpath, you need to use @class, @id and not just class or id
so contains(@class, 'someclass')
jimpurbrick has quit
SitamJana has quit
davehunt joined the channel
anu_c joined the channel
rubytester joined the channel
jimpurbrick joined the channel
AutomatedTester
simonstewart: how many make up "engineering productivity" at FB?
hey AutomatedTester, if you're about, you'll be happy to know that I have basic communication with marionette working in .NET.
WhereIsMySpoon
hey jim
jimpurbrick has quit
Nizumzen joined the channel
shawnknight joined the channel
jimpurbrick joined the channel
jimpurbrick has quit
simonstewart
G'day, jimevans
terrid has quit
lvanderpool joined the channel
lvanderpool is now known as mekhami
[rahul] joined the channel
dimacus joined the channel
Neo-- joined the channel
michl68 joined the channel
perfectsine has quit
nonny_t joined the channel
Porfa joined the channel
Porfa
hellos, i have a question.. when i do .sendkeys i send keys, ok, but it keeps the old text there, i know i can use .clear but I'm wondering if i can .sendkeys_before or something
i want to add something BEFORE the existing text, not after (like .sendkeys does)
Selenium-Github
[13selenium] 15lukeis closed pull request #1037: Fix the problem with adding of plugin into firefox profile. We tried … (06master...06bug_add_extension) 02http://git.io/vZHCf
Hi guys, I use Selenium Grid 2 and like to get the browser console logs from my RemoteWebDriver like so driver.get("http://testpage.com"); LogEntries logEntries = driver.manage().logs().get(LogType.BROWSER); however the logEntries list is empty!
would be great if someone could give me a hint :)
jimevans
pmichelberger: for all browsers? or just some? the IE driver, for example, doesn't implement any of the logging api, full stop.
pmichelberger
chrome would be enough
dude-x has quit
jimpurbrick has quit
pmichelberger has quit
rubytester joined the channel
jimevans
anyone know how a CharSequence in the java language bindings are serialized to json for transmission across the wire?