Timeline for JavascriptExecutor is not identifying the button to click in Webdriver
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 29, 2021 at 13:08 | comment | added | a Learner |
there is no method like document.getElement() . It is document.getElementById() . For finding element by xpath using javascriptexecutor you have to use WebElement element=(WebElement)jse.executeScript("document.evaluate('xpath here')") . Check the syntax of evaluate. It also takes some more arguments.
|
|
May 2, 2017 at 14:38 | answer | added | Vrushali Haldankar | timeline score: 0 | |
Sep 22, 2016 at 18:11 | answer | added | C T | timeline score: 0 | |
Aug 25, 2015 at 6:24 | answer | added | Shubham Jain | timeline score: 0 | |
Sep 2, 2014 at 21:40 | answer | added | tiennen07 | timeline score: 0 | |
Jun 29, 2014 at 16:10 | history | edited | dzieciou | CC BY-SA 3.0 |
edited body
|
Jun 29, 2014 at 16:08 | comment | added | dzieciou |
Cannot it be done simpler, without JavaScript? E.g., driver.findElement(By.css("input[value='Cancel']")).click()
|
|
Apr 30, 2014 at 15:01 | comment | added | Yash | Similar to Anuragh27's question- Are you sure the "btnContr" class name is unique? | |
Jan 1, 2014 at 7:41 | comment | added | Anuragh27crony | Is this the only Input tag inside that Div or does it contain other Input elements too? | |
Dec 31, 2013 at 12:28 | history | edited | Kate Paulk | CC BY-SA 3.0 |
Added code callouts to HTML, XPath and written code
|
Dec 31, 2013 at 9:00 | answer | added | Marielle | timeline score: 1 | |
Dec 31, 2013 at 4:23 | review | First posts | |||
Dec 31, 2013 at 12:28 | |||||
Dec 31, 2013 at 4:04 | history | asked | user6633 | CC BY-SA 3.0 |