I'm currently working on a automation test script to navigate around the adidas website. I'm having issues clicking on a few buttons including scrollbar button and checkout button. Please look at example below
I tried solutions such as
WebElement clickSize = (WebElement) (new WebDriverWait(driver, 10)).until(ExpectedConditions.presenceOfElementLocated(clickOnSize)); clickSize.click();
and
driver.findElement(By.xpath("//*[@id=\"app\"]/div/div[1]/div[2]/div/div[3]/div/div[2]/div/div[3]/div/div[5]/form/div[6]/button")).click();
but the console is outputting:
org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with
I was wondering if there is any other solutions available that can be use to find the elements to click.
Thanks
Aucun commentaire:
Enregistrer un commentaire