<button class="Button__ButtonWithStyles-y45r97-0 styles__StyledButton-sc-1cl7zs9-0 hhxwTy" data-test="shipItButton">Ship it</button>
driver.findElement(By.xpath("//button[@class='Button__ButtonWithStyles-y45r97-0']")).click();
driver.findElement(By.className("Button__ButtonWithStyles-y45r97-0")).click();
driver.findElement(By.id("Ship it")).click();
driver.findElement(By.name("Ship it")).click();
org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element:
[data-test='shipItButton'
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/89c2c5d6-444f-469a-9501-56ab2bea724ao%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/36de49fc-2ceb-4908-bbfa-2ac2068b892ao%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANw7MiXqqRKYStpi1x73phgqshBdwFs4typm-_aZs3K40G%3Dhwg%40mail.gmail.com.
driver.findElement(By.xpath(//button[text()='Ship it'])).click()
<div class="Col-favj32-0 hsLYrj h-padding-l-tiny h-padding-r-tiny"><button data-test="espModalContent-declineCoverageButton" type="button" class="Button-bwu3xu-0 gHLRCa h-margin-t-tight">Decline coverage</button></div>
driver.findElement(By.xpath("//button[text() = 'Decline coverage']")).click();
driver.findElement(By.xpath("//button[@data-test='Decline coverage']")).click();
driver.findElement(By.className("Button-bwu3xu-0")).click();
System.out.println("clicked");
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/f10737c5-0f4d-4972-8dee-3fed412329b7o%40googlegroups.com.
--
To unsubscribe from this group and stop receiving emails from it, send an email to seleniu...@googlegroups.com.