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

    • <bdo id='2p3UW'></bdo><ul id='2p3UW'></ul>

    <small id='2p3UW'></small><noframes id='2p3UW'>

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

      <legend id='2p3UW'><style id='2p3UW'><dir id='2p3UW'><q id='2p3UW'></q></dir></style></legend>
      1. <tfoot id='2p3UW'></tfoot>
      2. org.openqa.selenium.ElementNotVisibleException:元素當(dāng)前不可

        org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with Command duration or timeout:(org.openqa.selenium.ElementNotVisibleException:元素當(dāng)前不可見,因此可能無法與命令持
        • <small id='iUaLS'></small><noframes id='iUaLS'>

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

                <bdo id='iUaLS'></bdo><ul id='iUaLS'></ul>
              • <legend id='iUaLS'><style id='iUaLS'><dir id='iUaLS'><q id='iUaLS'></q></dir></style></legend>
                  <tbody id='iUaLS'></tbody>

                1. <tfoot id='iUaLS'></tfoot>

                  本文介紹了org.openqa.selenium.ElementNotVisibleException:元素當(dāng)前不可見,因此可能無法與命令持續(xù)時間或超時交互:的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我的問題是硒給出了異常可見的元素.我不明白這一點(diǎn),因為當(dāng)我在我的機(jī)器上進(jìn)行構(gòu)建時!(測試建立在竹子上).

                  My problem is that selenium give the exception so visible elements. I don't understand this because when I put to build in my machine works! ( The tests build at bamboo).

                  這是一個例外:

                  org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with Command duration or timeout: 30.06 seconds Build info: version: '2.44.0', revision: '76d78cf323ce037c5f92db6c1bba601c2ac43ad8', time: '2014-10-23 13:11:40' System info: host: 'N/A', ip: 'N/A', os.name: 'Linux', os.arch: 'amd64', os.version: '3.2.0-52-virtual', java.version: '1.7.0_72' Session ID: 1757208d-d49e-4792-b053-e55e7300c233 Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, cssSelectorsEnabled=true, databaseEnabled=true, browserName=firefox, handlesAlerts=true, nativeEvents=false, webStorageEnabled=true, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=34.0}]
                  org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with
                  Command duration or timeout: 30.06 seconds

                  代碼:

                  String name;
                  String key;
                  
                  @Before
                  public void setUp() throws InterruptedException {
                  
                      driver.findElement(By.id("menu_topMenu.maintenance")).click();
                      Thread.sleep(1000);
                      driver.findElement(By.id("menu_topMenu.route")).click();
                  }
                  
                  @Test
                  public void test() throws InterruptedException {
                  
                      AddRoute addRoute = new AddRoute(driver);
                      addRoute.add();
                      name = addRoute.getName();
                      key = addRoute.getKey();
                      Thread.sleep(3000);
                      driver.findElement(By.cssSelector
                              ("#Route_btn_novo")).click();
                      driver.findElement(By.cssSelector
                              ("#Route_key > input[type="text"]")).sendKeys(key);
                      driver.findElement(By.cssSelector
                              ("#Route_description > input[type="text"]")).clear();
                      driver.findElement(By.cssSelector
                              ("#Route_description > input[type="text"]")).sendKeys(name);
                      driver.findElement(By.cssSelector
                              ("#Route_organization > div.lookUpHitArea")).click();
                      driver.findElement(By.cssSelector
                              ("#MonetUIFieldsLookupGridContainer_organization > div.slick-pane.slick-pane-top.slick-pane-left > div.slick-viewport.slick-viewport-top.slick-viewport-left > div > div:nth-child(2) > div.slick-cell.l0.r0.cell-row")).click();
                      driver.findElement(By.cssSelector
                              ("#Route_plannedCost > input")).sendKeys("10000");
                      driver.findElement(By.cssSelector
                              ("#Route_origin > div.lookUpHitArea")).click();
                      driver.findElement(By.cssSelector
                              ("#MonetUIFieldsLookupGridContainer_location > div.slick-pane.slick-pane-top.slick-pane-left > div.slick-viewport.slick-viewport-top.slick-viewport-left > div > div:nth-child(1) > div.slick-cell.l1.r1.cell-row.selected")).click();
                      driver.findElement(By.cssSelector
                              ("#Route_lastStopIsDestination > input")).click();
                      Thread.sleep(1000);
                      driver.findElement(By.cssSelector
                              ("#Route_btn_save_and_close")).click();
                      Thread.sleep(3000);
                      assertTrue("Rota existente nao validada corretamente",
                              isDisplayedByCssSelector(driver, "#form_and_grid > div > div.monetInlineAlerContainer > div"));
                  }
                  

                  }

                  我不知道該怎么辦了!

                  推薦答案

                  我不確定你的整個設(shè)置是什么樣子的.但是,一種常見的做法是在這種情況下使用 Selenium Grid.這個想法是擁有一個 selenium 集線器和多個從屬設(shè)備(根據(jù)您的需要,可能是虛擬機(jī)),并讓 CI 服務(wù)器控制從屬設(shè)備來執(zhí)行測試.您遇到的問題是因為 CI 服務(wù)器的行為不像您的本地機(jī)器那樣.該元素不可見意味著 selenium 無法與瀏覽器進(jìn)行交互,它不應(yīng)該在 CI 上進(jìn)行交互.請參閱 this 了解有關(guān)網(wǎng)格.這應(yīng)該可以幫助您入門.

                  I am not sure how your entire set up looks like. But, a common practice is to use Selenium Grid in such case. The idea is to have a selenium hub and multiple slaves(as many as you need and may be virtual machines) and have the CI server controlling the slaves to execute the tests. The issue you are having is because of CI server is not acting like your local machine is doing. The element is not visible means selenium is not able to interact with the browser which it should not on CI. See this to explore more about the grid. This should help you to get started.

                  注意:這是從 CI 執(zhí)行 selenium 測試的眾多方法之一

                  這篇關(guān)于org.openqa.selenium.ElementNotVisibleException:元素當(dāng)前不可見,因此可能無法與命令持續(xù)時間或超時交互:的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

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

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

                            <tbody id='Wekn2'></tbody>
                        1. <small id='Wekn2'></small><noframes id='Wekn2'>

                          1. 主站蜘蛛池模板: 精品国产区 | 欧美精品第一页 | 久久综合九九 | 国产成人精品免高潮在线观看 | 欧美精品乱码99久久影院 | www.se91| 日韩在线视频免费观看 | 亚洲精品视频导航 | 欧美日韩国产精品一区 | 黑人巨大精品欧美一区二区免费 | 精品免费国产 | 久久av一区二区 | 九九热精品免费 | 国产综合精品 | 日本精品视频在线观看 | 欧美激情在线播放 | 99精品久久| 午夜a v电影 | 欧美精品一区二区三区在线四季 | 午夜精品一区二区三区免费视频 | 国产美女一区二区 | 国产精品久久久久久久久久不蜜臀 | 手机在线不卡av | 精品一区二区在线观看 | 国产成人区 | 天堂一区二区三区 | 久久久人| 成人久久久 | 日韩欧美亚洲 | 蜜桃臀av一区二区三区 | 国产十日韩十欧美 | 国产精品揄拍一区二区 | 香蕉视频一区二区 | 国产在线91 | 国产一区二区激情视频 | www.99精品| 国产激情视频在线观看 | 日韩在线观看中文字幕 | 久久9久 | 欧洲国产精品视频 | 亚洲精品av在线 |