selenium webdriver 建行軟鍵盤(pán)輸入密碼
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("http://input[@value='t']"));
WebElement e=driver.findElement(By.xpath("http://input[@value='e']"));
WebElement s=driver.findElement(By.xpath("http://input[@value='s']"));
t.click();
e.click();
s.click();
t.click();
WebElement confirmButton=driver.findElement(By.name("button12"));
confirmButton.click();
轉(zhuǎn)載請(qǐng)注明出處:http://www.rzrgm.cn/tobecrazy/

浙公網(wǎng)安備 33010602011771號(hào)