java - How to select a check box in selenium webdriver? -


Can anyone help me

Check boxes are available with many prices and check me Choose a particular value in the box I do not know how to select the check box value in Selenium WebDriver

This works one. It will click on the check box "General Medicine" under "Type" on the left menu ... Sample sample of public class SameneseTestBase {public [Still, void main (String] Arges) {Vebdraivr driver = new Fayrfoksdraivr (); Try {driver.get ("https://www.blueshieldca.com/fap/app/search.html"); Driver.findElement (By.id ("location")) .sendKeys ("Locans, Fresno, CA"); . Click on Driver.findElement (By.className ("findNow")) (); Thread.Sleep (1000); . Click on Driver.findElement (By.className ("continueBtn")) (); Thread.Sleep (15000); Driver.findElement (By.xpath ("// ul [@ id = 'doctortypesmodule'] / li [2] / Input")) .click (); } Hold (exception e) {e.printStackTrace (); } Finally {driver.quit (); }}}


Comments