Search code examples
javaseleniumselenium-webdriverwebdriver

Selenium Webdriver is very inconsistent during Execution of test scripts


We have a Keyword driven framework which was developed using Selenium Webdriver. While running the scripts some test cases are getting timed out in the first run. When I do the second run the same test cases which failed last time pass but this time some other test cases fail.

Can someone please advise if anything needs to be done on the Framework/Configuration part.

I am using IE9, Java 6, Selenium 2.40 on Windows 7 and IE driver from the official Selenium website.


Solution

  • Sainath,

    The Secret to run TestCases efficiently lies in the Way You wrote the TestCases.. Use of Fluent wait, Wait before the Element is Visible and Enabled and use of html ID's in Testcases makes the TCs Efficient. IE and Selenium Does not get along almost all time.. i mean,, There are so many Issues with IE and Selenium.

    The Only way to Achieve Efficiency is by Proper Handling of Exceptions and Use of Wait statements