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

    • <bdo id='vdLjN'></bdo><ul id='vdLjN'></ul>

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

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

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

        量角器切換到上一個選項卡

        protractor switch to previous tab(量角器切換到上一個選項卡)

                <tbody id='XXC20'></tbody>

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

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

                  本文介紹了量角器切換到上一個選項卡的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  打開一個新標簽(第二個)后,我試圖切換到第一個標簽.

                  After opening a new tab (second) I'm trying to switch to the first tab.

                       common.clickOpenNewSession(); //it opens the new tab
                  
                   browser.getAllWindowHandles().then(function (handles) {
                      var secondWindowHandle = handles[1];
                      var firstWindowHandle = handles[0];
                      browser.switchTo().window(secondWindowHandle).then(function () { //the focus moves on new tab
                          browser.sleep(3000);
                          expect(browser.driver.getCurrentUrl()).toContain("url");
                  //do some actions
                  
                      });
                  //below it doesn't work. I try to go back on previous tab without closing the second tab
                      browser.actions().sendKeys(protractor.Key.CONTROL).sendKeys(protractor.Key.TAB).perform();
                      browser.sleep(4000);
                      browser.driver.switchTo().window(firstWindowHandle);
                      browser.setLocation('http://google.com');
                  });
                  

                  推薦答案

                  問題是你試圖通過使用 ctrl + tab 轉到上一個選項卡,而不是使用窗口句柄切換回來.這在 WebDriver 中不受支持,因為使用 ctrl + tab 是一種系統操作,不能在您的瀏覽器上為所有操作系統/瀏覽器模擬.只需再次使用 browser.switchTo().

                  The problem is that you're trying to go to the previous tab by using ctrl + tab, instead of using the window handles to switch back. This is not supported in WebDriver, because using ctrl + tab is a system operation, and can't be emulated on your browser for all OS/browsers. Just use browser.switchTo() again.

                  這篇關于量角器切換到上一個選項卡的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                  JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                  XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發技術分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                  Restrictions of XMLHttpRequest#39;s getResponseHeader()?(XMLHttpRequest 的 getResponseHeader() 的限制?)
                  • <bdo id='BrGqo'></bdo><ul id='BrGqo'></ul>
                      <tfoot id='BrGqo'></tfoot>
                        <tbody id='BrGqo'></tbody>

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

                            <i id='BrGqo'><tr id='BrGqo'><dt id='BrGqo'><q id='BrGqo'><span id='BrGqo'><b id='BrGqo'><form id='BrGqo'><ins id='BrGqo'></ins><ul id='BrGqo'></ul><sub id='BrGqo'></sub></form><legend id='BrGqo'></legend><bdo id='BrGqo'><pre id='BrGqo'><center id='BrGqo'></center></pre></bdo></b><th id='BrGqo'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='BrGqo'><tfoot id='BrGqo'></tfoot><dl id='BrGqo'><fieldset id='BrGqo'></fieldset></dl></div>
                          1. <legend id='BrGqo'><style id='BrGqo'><dir id='BrGqo'><q id='BrGqo'></q></dir></style></legend>
                            主站蜘蛛池模板: www国产成人免费观看视频,深夜成人网 | 男女羞羞视频免费 | 玖玖国产精品视频 | 成人在线观看中文字幕 | 欧美日韩亚洲一区二区 | 亚洲一区二区三区视频在线 | 国产精品高潮呻吟久久久久 | 国产精品欧美一区二区三区 | 91精品国产91久久久久久 | 色综合天天天天做夜夜夜夜做 | 精品欧美一区二区精品久久久 | 久久综合狠狠综合久久综合88 | www.日本国产 | 人干人人 | 欧美性大战xxxxx久久久 | 日韩一区二区三区在线视频 | 一级黄色片在线免费观看 | 本道综合精品 | 一区二区三区在线免费观看 | 在线看片国产 | 99精品欧美一区二区蜜桃免费 | 国产成人精品久久二区二区 | 久久aⅴ乱码一区二区三区 91综合网 | 亚洲综合婷婷 | 日韩在线观看视频一区 | 久久国产免费 | 亚洲精品视频三区 | 精品国产一区一区二区三亚瑟 | 欧美成人免费 | 亚洲网站在线观看 | 欧美日韩一区二区三区不卡视频 | 亚洲三区视频 | 欧美aaaa视频 | 国产激情偷乱视频一区二区三区 | 在线中文字幕av | 特级生活片 | 激情一区二区三区 | 国产免费一二三区 | 久草在线| 日韩三区 | 福利片一区二区 |