Xebium icon indicating copy to clipboard operation
Xebium copied to clipboard

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

Open yujiayujia6 opened this issue 11 years ago • 6 comments

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

yujiayujia6 avatar Jun 27 '14 02:06 yujiayujia6

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

raboof avatar Jun 27 '14 07:06 raboof

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

yujiayujia6 avatar Jun 27 '14 08:06 yujiayujia6

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?

raboof avatar Jun 27 '14 09:06 raboof

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();

yujiayujia6 avatar Jun 27 '14 10:06 yujiayujia6

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

eskape avatar Jun 28 '14 08:06 eskape

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.

raboof avatar Jun 28 '14 12:06 raboof