Tag Info

Hot answers tagged

2

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 ...


1

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


1

MultiScreenShot I found following useful link in Github for Multiscreenshot


1

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