I have task - write test for the page https://cloud.google.com/products/calculator
In the Chrome test work without problem. In the Firefox I get Exception NoSuchFrame.
driver.switchTo().frame(0);
driver.switchTo().frame("myFrame");
Webelement numberOfInstances = new WebDriverWait(driver, 15)
.until(ExpectedConditions.visibilityOf(element));
numberOfInstances.sendKeys("4");
After I correct code on that
driver.switchTo().frame(0);
new WebDriverWait(driver, 10)
.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt("myFrame"));
Webelement numberOfInstances = new WebDriverWait(driver, 15)
.until(ExpectedConditions.visibilityOf(element));
numberOfInstances.sendKeys("4");
And now I get other exception: TypeError: can't access dead object
Aucun commentaire:
Enregistrer un commentaire