Im trying to test that i can use a copy URL button, open a new window and paste the url. Currently i cant seem to work out how to do it. This is my code so far, the copy_url button basically copies the url:
copy_url_button.click();
WebDriverWait wait = new WebDriverWait(Drivers.getDriver(), 10);
wait.until(ExpectedConditions.visibilityOf(link_copied_text_element));
ArrayList<String> tabs = new ArrayList<String>
(Drivers.getDriver().getWindowHandles());
Drivers.getDriver().switchTo().window(tabs.get(1));
Aucun commentaire:
Enregistrer un commentaire