久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <tfoot id='Ph45M'></tfoot>
      <bdo id='Ph45M'></bdo><ul id='Ph45M'></ul>

    <small id='Ph45M'></small><noframes id='Ph45M'>

      <legend id='Ph45M'><style id='Ph45M'><dir id='Ph45M'><q id='Ph45M'></q></dir></style></legend>

      1. <i id='Ph45M'><tr id='Ph45M'><dt id='Ph45M'><q id='Ph45M'><span id='Ph45M'><b id='Ph45M'><form id='Ph45M'><ins id='Ph45M'></ins><ul id='Ph45M'></ul><sub id='Ph45M'></sub></form><legend id='Ph45M'></legend><bdo id='Ph45M'><pre id='Ph45M'><center id='Ph45M'></center></pre></bdo></b><th id='Ph45M'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Ph45M'><tfoot id='Ph45M'></tfoot><dl id='Ph45M'><fieldset id='Ph45M'></fieldset></dl></div>

      2. 為什么我的測試拋出異常 - 無法在 webdriver 中定位

        Why my test is throwing Exception-Unable to locate element in webdriver?(為什么我的測試拋出異常 - 無法在 webdriver 中定位元素?)
      3. <i id='kWfSv'><tr id='kWfSv'><dt id='kWfSv'><q id='kWfSv'><span id='kWfSv'><b id='kWfSv'><form id='kWfSv'><ins id='kWfSv'></ins><ul id='kWfSv'></ul><sub id='kWfSv'></sub></form><legend id='kWfSv'></legend><bdo id='kWfSv'><pre id='kWfSv'><center id='kWfSv'></center></pre></bdo></b><th id='kWfSv'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='kWfSv'><tfoot id='kWfSv'></tfoot><dl id='kWfSv'><fieldset id='kWfSv'></fieldset></dl></div>
          <legend id='kWfSv'><style id='kWfSv'><dir id='kWfSv'><q id='kWfSv'></q></dir></style></legend>

          <small id='kWfSv'></small><noframes id='kWfSv'>

            <bdo id='kWfSv'></bdo><ul id='kWfSv'></ul>

                  <tbody id='kWfSv'></tbody>
                1. <tfoot id='kWfSv'></tfoot>
                2. 本文介紹了為什么我的測試拋出異常 - 無法在 webdriver 中定位元素?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  package testproject;
                  
                  import org.openqa.selenium.By;
                  import org.openqa.selenium.WebDriver;
                  import org.openqa.selenium.WebElement;
                  import org.openqa.selenium.firefox.*;
                    public class mytestclass {
                      public static void main(String[] args) {
                         WebDriver Driver = new FirefoxDriver();
                          Driver.get("https://www.gmail.com/");
                           WebElement wb= Driver.findElement(By.name("Email"));
                           wb.sendKeys("sweta");
                           WebElement wb1= Driver.findElement(By.name("Passwd"));
                           wb1.sendKeys("123456");
                           WebElement wb2= Driver.findElement(By.id("signIn"));
                           wb2.click();
                           WebElement wb3= Driver.findElement(By.xpath(".//*[@id='gb']/div[1]/div[1]/div[2]/div[5]/div[1]/a"));
                           wb3.click();
                           WebElement wb4= Driver.findElement(By.id("gb_71"));
                           wb4.click();
                     }
                  }
                  

                  當我執行此代碼時,一切都很好,直到我希望單擊登錄按鈕.我得到了例外,它說線程main" org.openqa.selenium.NoSuchElementException 中的異常:無法定位元素:{method":xpath",selector":.//*[@id='gb']/div[1]/div[1]/div[2]/div[5]/div[1]/a"} 但是當我嘗試使用 fierbug 定位它時,它工作正常.在上述代碼中,我更改了電子郵件 ID 和密碼以確保電子郵件安全.

                  When i am executing this code everything is going fine till the point where i want the sign in button to be clicked. I am getting exception which says that Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"xpath","selector":".//*[@id='gb']/div[1]/div[1]/div[2]/div[5]/div[1]/a"} but when i am trying to locate it using fierbug its working fine. In the above mentioned code i changed the email id and password to keep the email safe.

                  我已經在 stakwave 上發布了另一個程序的問題,所以如果你可以的話,請看看這個鏈接 -webdriver 無法點擊 firefox 中的超鏈接

                  I was facing problem with one more program which i already posted on stakwave so if u can then please have a look at this link-webdriver is not able to click on a hyperlink in firefox

                  推薦答案

                  我遇到了類似的問題,設置超時后問題解決.

                  I faced similar problem, issue resolved after setting timeout.

                  Webdriver driver = new FirefoxDriver();
                  driver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);
                  

                  不知道超時在這里的作用是什么.

                  Not sure whats the role of timeout here though.

                  這篇關于為什么我的測試拋出異常 - 無法在 webdriver 中定位元素?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數溢出?)
                  Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關系嗎?)
                  How to convert Integer to int?(如何將整數轉換為整數?)
                  How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內創建一個隨機打亂數字的 int 數組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠將 0xff000000 存儲為 int?)
                  <tfoot id='wLwgb'></tfoot>

                          • <bdo id='wLwgb'></bdo><ul id='wLwgb'></ul>
                              <tbody id='wLwgb'></tbody>
                          • <small id='wLwgb'></small><noframes id='wLwgb'>

                            <i id='wLwgb'><tr id='wLwgb'><dt id='wLwgb'><q id='wLwgb'><span id='wLwgb'><b id='wLwgb'><form id='wLwgb'><ins id='wLwgb'></ins><ul id='wLwgb'></ul><sub id='wLwgb'></sub></form><legend id='wLwgb'></legend><bdo id='wLwgb'><pre id='wLwgb'><center id='wLwgb'></center></pre></bdo></b><th id='wLwgb'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='wLwgb'><tfoot id='wLwgb'></tfoot><dl id='wLwgb'><fieldset id='wLwgb'></fieldset></dl></div>
                          • <legend id='wLwgb'><style id='wLwgb'><dir id='wLwgb'><q id='wLwgb'></q></dir></style></legend>

                          • 主站蜘蛛池模板: 九九导航 | 日本亚洲精品成人欧美一区 | 国内精品免费久久久久软件老师 | 日本不卡免费新一二三区 | 国产999精品久久久 午夜天堂精品久久久久 | 中文字幕二区三区 | 中文字幕不卡在线观看 | 国产精品久久久久久亚洲调教 | 午夜一区二区三区 | 久久国产亚洲精品 | 欧美一级毛片在线播放 | 欧美精品久久久久久久久久 | 日韩av免费在线电影 | 日韩和的一区二区 | 日韩av三区 | 正在播放国产精品 | 日本不卡视频在线播放 | 青青草综合网 | 午夜在线视频一区二区三区 | 日韩成人在线播放 | 国产黄色麻豆视频 | 欧产日产国产精品99 | 欧美 日韩 国产 成人 在线 | 日韩成人性视频 | 国户精品久久久久久久久久久不卡 | 亚洲综合在线视频 | 精品日韩一区二区 | 成人欧美一区二区三区在线观看 | 国产精品视频观看 | 国产午夜av片 | 久久精品一区二区 | 久久网站黄| 2一3sex性hd | 欧美黑人又粗大 | 国产精品日女人 | av在线免费观看网址 | 国产大片黄色 | 99re99| 久久一区二区三区四区 | 精品国产一区二区三区久久久久久 | 欧美日韩一区二区在线播放 |