WebDriver driver = new ChromeDriver(); //implicit wait driver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS); //explicit wait - wait given a timeout time WebDriverWait webDriverWait = new WebDriverWait(driver, MAX_WAIT_TIME); webDriverWait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(GRID_TITLE_XPATH))); //fluent wait - wait given a timeout time and polling interval public WebElement fluentWait(final By locator) { Waitwait = new FluentWait (driver) .withTimeout(30, TimeUnit.SECONDS) .pollingEvery(2, TimeUnit.SECONDS) .ignoring(org.openqa.selenium.NoSuchElementException.class); //Can also use functions from ExpectedConditions class such as ExpectedConditions.visibilityOfElementLocated(By locator) WebElement element = wait.until(new Function () { public WebElement apply(WebDriver driver) { return driver.findElement(locator); } }); return element; }; WebElement e = fluentWait(By.xpath(GRID_TITLE_XPATH));
So I'm a huge fan of angry birds and while playing the game I thought hey I want to make some birds to break things. So here are some of the birds I created (with the exception of the first one). Let me know what you guys think. If you would like to study the drawing feel free to download the Inkscape SVG file. Right click then hit save link as: newbirds.svg All rights reserve to the original artists.
Comments
Post a Comment