Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
In this section, we will understand how to interact with Radio Buttons. We can select a radio button
option using the 'click' method and unselect using the same 'click' method.
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
//Puts an Implicit wait, Will wait for 10 seconds before throwing exception
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
//Launch website
driver.navigate().to("http://www.calculator.net/mortgage-payoff-calculator.html");
driver.manage().window().maximize();
Output
Upon execution, the radio button is selected and the output of the commands are displayed in the
console.