IE browser consistency


HI All,

My project will work in only on IE browser. I have developed all scripts for my project will executing once it will pass and another time will fail.

In the scenario i have to switch windows around ten times has to come bake main window on that time is giving problem please some one will guide me.

Thanks in advance.


Train Asked on August 21, 2014 in Selenium WebDriver.
Add Comment
  • 3 Answer(s)
    Best answer

    Hi Srinivas,

    Most probably you are not using WAIT on your windows and time of loading windows are not always same, some time its takes few second, as Ankit has suggested above and Selenium immediately try to find the element and gets fail. Try using Implicit Wait and Expected Condition Wait or use Thread Sleep, hopefully it will resolve your issue.

    I would suggest you to go through the below two chapters on WAIT & SWITCH:

    Do not forget to mark your question as ANSWERED, if your query is resolved.

    Lakshay Sharma

    Professor Answered on August 22, 2014.
    Add Comment

    hi srinivas

    as you said “executing once it will pass and another time will fail.”  some times test cases fails due to loading issues .
    can you please share your code with us .?

    Vice Professor Answered on August 21, 2014.
    Add Comment

    Hi Ankit,

    Plsase leave your mail id. so that i will mail you the script.


    Train Answered on August 21, 2014.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.