How can I ask the Selenium-WebDriver to wait for few seconds in Java?

Well, there are two types of wait: explicit and implicit wait. The idea of explicit wait is WebDriverWait.until(condition-that-finds-the-element); The concept of implicit wait is driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); You can get difference in details here. In such situations I’d prefer using explicit wait (fluentWait in particular): public WebElement fluentWait(final By locator) { Wait<WebDriver> wait = new FluentWait<WebDriver>(driver)… Read More How can I ask the Selenium-WebDriver to wait for few seconds in Java?

Test Automation with Java, using Selenium, Cucumber

Selenium Introduction About Selenium Selenium is a software testing framework for the web that facilitates the automation of browsers. The Selenium project produces various tools for automation testing such as Selenium IDE, Selenium Remote Control (RC), Selenium Grid and Selenium 2.0 & WebDriver. Learning all the tools will give you many different options for approaching… Read More Test Automation with Java, using Selenium, Cucumber

How do I revert all local changes in Git managed project to previous state

If you want to revert all changes AND be up-to-date with the current remote master (for example you find that the master HEAD has moved forward since you branched off it and your push is being ‘rejected’) you can use: # will fetch the latest changes on the remote git fetch # will set your… Read More How do I revert all local changes in Git managed project to previous state