How to deal with JavaScript Error: "e is null" when try to click on browser pop-up in Firefox -


When using warning methods Seleniam- webdriver, I suffered a JavaScript error: "E Blank"

code:

  browser = Watir :: Browser.new: Firefox browser.alert.ok; Sleep 5  

Error:

  selenium WebDriver :: :: Error :: Unknown: [JavaScript error: "E null" {file: "File : ///var/folders/f4/rz3xgqkj22zdyldyzrnyx4v40000gn/T/webdriver-profile20l4073l-47367-tyngix/extensions/fxdriver@googlecodekcom/components/command_processorkjs "line: 7716}] [JavaScript error:" e is empty "{file:" file: ///var/folders/f4/rz3xgqkj22zdyldyzrnyx4v40000gn/T/webdriver-profile20l4073l-47367-tyngix/extensions/fxdriver@googlecodekcom/components/command_processorkjs "line: 7716}] 'when calling method: [nsICommandProcessor :: execute]  

environment:

  • 'Seleniam- webdriver', '2.42.0'
  • Firefox 31.0
  • Mac 10.9
  • Ruby 2.0

Any advice would be greatly appreciated. Thanks!

After the text "itemprop =" text ">

alerts me because of my javascript. An Ajax Date Picker which partially presents the intestine. Although this is something that should be corrected in the application, in the mean time, I can handle it with:

  driver.findElement (By.xpath ("// duration") ) Try {.click (); } Hold (Unhandal Alert Exposure UAE) {driver.switchTo.alert (). Accept (); Click on driver.findElement (By.xpath ("// duration")) (). }  

I also want to point out that I'm using WebDriver, so the syntax can be different.


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -