Problem:
Solution :
public class Demo { public static void main(String[] args) { WebDriver driver = new FirefoxDriver(); driver.manage().window().maximize(); driver.get("https://www.verizonwireless.com/my-verizon/"); //Switch to the frame in which the Username, Password and SigIn button options are avaiable driver.switchTo().frame(0); driver.findElement(By.id("IDToken1")).sendKeys("SampleUsername"); driver.findElement(By.id("IDToken2")).sendKeys("SamplePassword"); driver.findElement(By.id("login-submit")).click(); } }
No comments:
Post a Comment