第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

在Java中使用Selenium WebDriver登錄Gmail

在Java中使用Selenium WebDriver登錄Gmail

冉冉說(shuō) 2019-10-04 15:32:52
import java.util.concurrent.TimeUnit;import org.openqa.selenium.By;import org.openqa.selenium.WebDriver;import org.openqa.selenium.WebElement;import org.openqa.selenium.firefox.FirefoxDriver;import org.openqa.selenium.support.ui.ExpectedConditions;import org.openqa.selenium.support.ui.WebDriverWait;public class NewGmail {    public static void main(String[] args) {            WebDriver driver = new FirefoxDriver();            driver.manage().window().maximize();            String url = "https://accounts.google.com/signin";            driver.get(url);            driver.findElement(By.id("identifierId")).sendKeys("cp8805");             //driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);                  WebDriverWait wait=new WebDriverWait(driver, 20);                           driver.findElement(By.xpath("//span[@class='RveJvd snByac']")).click();                     driver.manage().timeouts().implicitlyWait(40, TimeUnit.SECONDS);                    driver.findElement(By.xpath("//input[@class='whsOnd zHQkBf']")).sendKeys("xxxxxx");                         driver.findElement(By.xpath("//span[@class='RveJvd snByac']")).click();     }  }郵件ID后,我的密碼也會(huì)寫在ID框選項(xiàng)中,并且服務(wù)器重定向到下一個(gè)密碼頁(yè)面。我想問(wèn)一下我該怎么做,以便僅在密碼頁(yè)面中輸入我的密碼。
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 394 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)