Use this url--http://www.indiangiftsportal.com/product_info.php?products_id=kaju-kalash-shivaaz,
then click add To cart
, it will show you one popup window in that am not getting how to click that ""skip" button.
Any ideas?
Use this url--http://www.indiangiftsportal.com/product_info.php?products_id=kaju-kalash-shivaaz,
then click add To cart
, it will show you one popup window in that am not getting how to click that ""skip" button.
Any ideas?
If the problem is not being able to click on the element because it's not visible you can use this method:
public static void scrollToElement(WebElement element, WebDriver driver) {
JavascriptExecutor jse = (JavascriptExecutor) driver;
jse.executeScript("arguments[0].scrollIntoView(true);", element);
}
WebElement el = driver.findElement(By.cssSelector(".close"));
this.scrollToElement(el,driver);
Hope this helps
Check this solution-
WebDriver driver = new FirefoxDriver();
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
driver.get("http://www.indiangiftsportal.com/product_info.php?products_id=kaju-kalash-shivaaz");
driver.findElement(By.cssSelector("div#clickme input")).click();
driver.findElement(By.cssSelector("a.close")).click();
Hope this helps !