<ruby id="h6500"><table id="h6500"></table></ruby>
    1. <ruby id="h6500"><video id="h6500"></video></ruby>
          1. <progress id="h6500"><u id="h6500"><form id="h6500"></form></u></progress>

            基于 SELENIUM 的自動(dòng)化測試架構(21)

            發(fā)表于:2017-04-11來(lái)源:gitbook作者:凌俁Linty?點(diǎn)擊數: 標簽:selenium
            @Test 注解進(jìn)行標注 * 這樣 不用main()方法 便可直接運行測試 * * @throws InterruptedException */ @Test public void test02LogIn () throws InterruptedException { WebDriver driver = this
            @Test 注解進(jìn)行標注 * 這樣 不用main()方法 便可直接運行測試 * * @throws InterruptedException */ @Test public void test02LogIn() throws InterruptedException { WebDriver driver = this.baseDriver; driver.get(this.baseUrl); Thread.sleep(2000); driver.findElement(By.id("account")).sendKeys("admin"); driver.findElement(By.id("password")).sendKeys("123456"); driver.findElement(By.id("submit")).click(); // 點(diǎn)擊登錄按鈕后,需要等待瀏覽器刷新 Thread.sleep(2000); String expectedUrl = this.baseUrl + "sys/index.html"; // driver.getCurrentUrl() -- 獲取當前的瀏覽器URL Assert.assertEquals(driver.getCurrentUrl(), expectedUrl); } /** * 測試切換語(yǔ)言 * 把系統語(yǔ)言切換成 English * 然后查詢(xún) 語(yǔ)言的按鈕 是不是變成了 English *

            原文轉自:http://gitbook.cn/books/58e54b57cfcd6fa52dcef1d2/index.html

            ...
            老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月
              <ruby id="h6500"><table id="h6500"></table></ruby>
              1. <ruby id="h6500"><video id="h6500"></video></ruby>
                    1. <progress id="h6500"><u id="h6500"><form id="h6500"></form></u></progress>