xebia / Xebium

Xebium provides Selenium (webdriver) bindings for FitNesse, with Selenium-IDE support
http://xebia.github.com/Xebium/
Apache License 2.0
76 stars 62 forks source link

Xebium iexplore got error message "JavaScript error (WARNING: The server did not provide any stacktrace information)" #131

Open yujiayujia6 opened 10 years ago

yujiayujia6 commented 10 years ago

fitnesse table is |script |selenium driver fixture | |start browser|iexplore|on url |http://nzakl20sv273:9081/ | |do |open |on |/iBuilderBRC_Test | |ensure |do |assertVisible |on|id=username | |ensure |do |waitForVisible|on|!-id=password-!|with|fgd | |ensure |do |type |on|id=username |with|CSOTL_3001| |ensure |do |type |on|id=password |with|CSOTL_3001| |ensure |do |clickAndWait |on|css=input.submit |

steps |script |selenium driver fixture | |start browser|iexplore|on url |http://nzakl20sv273:9081/ | |do |open |on |/iBuilderBRC_Test | |ensure |do |assertVisible |on|id=username | |ensure |do |waitForVisible|on|!-id=password-!|with|fgd | are passed

get error message for steps |ensure |do |type |on|id=username |with|CSOTL_3001| |ensure |do |type |on|id=password |with|CSOTL_3001| |ensure |do |clickAndWait |on|css=input.submit |

error message is "EXCEPTION:java.lang.AssertionError: com.thoughtworks.selenium.SeleniumException: JavaScript error (WARNING: The server did not provide any stacktrace information) " use Firefox no any problem for above table. can anyone tell me why I will get this error message untitled

raboof commented 10 years ago

Do you also see a javascript error when you perform these actions manually from IE?

yujiayujia6 commented 10 years ago

No, we do manual test for this system many times, before we try to do automation testing. Thank you for replay.

raboof commented 10 years ago

Well, the fact that you've done manual testing (and that it works functionally) doesn't mean there's no javascript errors in the console. Have you checked?

yujiayujia6 commented 10 years ago

I also use following code in eclipse to test all actions are passed and no javascript error in console.

WebDriver driver; driver = new InternetExplorerDriver; driver.findElement(By.id("username")).sendKeys("CSOTL_3001"); driver.findElement(By.id("password ")).sendKeys("CSOTL_3001"); driver.findElement(By.id("submit ")).click();

eskape commented 10 years ago

This is (probably) one of the reasons why we're moving to "full" webdriver implementation. Work in progress. Thanks for sharing another example.

raboof commented 10 years ago

As @eskape correctly mentions, depending on what's actually going wrong it could be that this issue does not occur when using the 'fast selenium emulation' implementation which is now the default in newly built 0.13-SNAPSHOT versions.

If you're feeling adventurous you're welcome to build that one and try if it helps. This might well introduce some other issues, but I'd be happy to work with you to help resolve those.