Upload a File Using Selenium WebDriver

Web application testing is not only about the on-screen functionality but also involves interacting with external resources, such as images, documents and other media. To upload a file using Selenium, the file path is needed to be set in the input element control before submitting the form. On the form the control to inspect should […]

Switch Windows Using Selenium WebDriver

Some web applications open a new window in order to section specific data entry or view. Selenium can switch windows via the window handle. The following is an example and must be configured for a specific website under test. // Store the current window handle String winHandleBefore = driver.getWindowHandle(); // Perform the click operation that […]