WebElement daytext = driver.findElement(By.id("day")) //identifing the 'day' dropdown available on facebook login page. Radio_male.click() //selected male radio field as well as un-selected female radio field. WebElement radio_male= driver.findElement(By.id("u_0_a")) //Identified the male radio field. WebElement radio_female= driver.findElement(By.id("u_0_9")) //Identified the female radio field. ndKeys("********") //Entered password in the field. WebElement password= driver.findElement(By.id("pass")) //Identified the password field. WebElement username = driver.findElement(By.id("email")) //Identified the username text in the field. tProperty("", "F:\\software\\chromedriver_win32\\chromedriver.exe") ĭriver.get("") //launch facebook application.ĭriver.manage().window().maximize() //maximizing browser. Since we will use it at three different places for dropdowns below. Public static Select select //Making scope of select as global.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |