New answers tagged testng
Friends, i got the resolution .To get rid this problem we can have following code required in our code: DesiredCapabilities caps = DesiredCapabilities.internetExplorer(); caps.setCapability("ignoreZoomSetting", true); caps.setCapability("nativeEvents",false); driver = new InternetExplorerDriver(caps); I believe that we all are keeping the ...
Solved Error. I was missing main class of java so it was giving me error. Just added main class and then program runs successfully.
A couple thoughts: Drivers may render pages differently depending on window size. If IE is broken using the same window size, try maximizing the browser window. You didn't say whether you actually checked the page source in your IE test to confirm that the element it claims to not be able to find is actually there. In AJAX-heavy pages, I've seen ...
you can pass the driver as argument to the methods , so no need to re create them.
I think there is problem of latency. So I will suggest you to try slowing your test scripts after first test run. Give enough time to the browser to logout completely and then read inputs for second test and then you pass them into the test scripts. The only thing here is you have to pass values only then when browser have successfully loaded the login page ...
Top 50 recent answers are included