selenium webdriver 建行软键盘输入密码

driver.get("https://ibsbjstar.ccb.com.cn/app/V5/CN/STY1/login.jsp");
        driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
        driver.manage().timeouts().pageLoadTimeout(60, TimeUnit.SECONDS);
        driver.manage().window().maximize();
         
        driver.switchTo().frame("fclogin");
        WebElement softKeyPad = driver.findElement(By.id("img_id"));
        softKeyPad.click();
        WebElement t=driver.findElement(By.xpath("//input[@value='t']"));
        WebElement e=driver.findElement(By.xpath("//input[@value='e']"));
        WebElement s=driver.findElement(By.xpath("//input[@value='s']"));
        t.click();
        e.click();
        s.click();
        t.click();
        WebElement confirmButton=driver.findElement(By.name("button12"));
        confirmButton.click();

 

posted @ 2016-03-24 23:02  to be crazy  阅读(2515)  评论(1编辑  收藏  举报