Tag Info

Hot answers tagged


You can use WebDriverWait to synch with page load. Something like the following might help WebDriverWait wait = new WebDriverWait(driver, 15); //you can play with the time integer to wait for longer than 15 seconds.` wait.until(ExpectedConditions.titleContains("title")); //if you want to wait for a particular title to show up OR ...


Solved Error. I was missing main class of java so it was giving me error. Just added main class and then program runs successfully.


MultiScreenShot I found following useful link in Github for Multiscreenshot


You need to tell it to return the value. Change this line: String mainURL = (String) js.executeScript("productObj.mainURL"); to: String mainURL = (String) js.executeScript("return productObj.mainURL");

Only top voted, non community-wiki answers of a minimum length are eligible