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

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

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

    <tfoot id='JQwhd'></tfoot>

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

        無法使用 selenium webdriver 的 gettext() 從文本框中讀

        Unable to read text from textbox using gettext() of selenium webdriver?(無法使用 selenium webdriver 的 gettext() 從文本框中讀取文本?)

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

          <legend id='QA6Yn'><style id='QA6Yn'><dir id='QA6Yn'><q id='QA6Yn'></q></dir></style></legend>
            <tbody id='QA6Yn'></tbody>

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

                1. 本文介紹了無法使用 selenium webdriver 的 gettext() 從文本框中讀取文本?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  選擇日期后,我無法從 ajax 日歷控件中讀取日期

                  I can't read dates from ajax calendar control after date selection

                  http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Calendar/日歷.aspx

                  我沒有收到任何錯誤,但我無法從文本框中獲取任何值.

                  I don't get any error but I can't fetch any value from textbox.

                  public static void main(String[] args) throws InterruptedException {
                  
                          WebDriver driver = new FirefoxDriver();
                          driver.get("http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Calendar/Calendar.aspx");
                          driver.manage().window().maximize();
                  
                  
                          //Default calendar: 
                          driver.findElement(By.xpath("http://*[@id='ctl00_SampleContent_Date1']")).click();
                  
                          for(int i=0;i<=5;i++){
                  
                              for(int j = 0;j<=6;j++){
                  
                                  System.out.print(driver.findElement(By.xpath("http://*[@id='ctl00_SampleContent_defaultCalendarExtender_day_"+i+"_"+j+"']")).getText()+"-");
                  
                              }
                              System.out.println();
                          }
                  
                          driver.findElement(By.xpath("http://*[@id='ctl00_SampleContent_defaultCalendarExtender_day_3_4']")).click();
                  
                          System.out.println(driver.findElement(By.xpath("http://*[@id='ctl00_SampleContent_Date1']")).getText());
                  
                  
                          //Calendar with an associated button:
                  
                          System.out.println("Calendar with an associated button:------------------------------------------------------");
                  
                          driver.findElement(By.xpath("http://*[@id='ctl00_SampleContent_Image1']")).click();
                  
                          for(int i=0;i<=5;i++){
                  
                              for(int j = 0;j<=6;j++){
                  
                                  System.out.print(driver.findElement(By.xpath("http://*[@id='ctl00_SampleContent_calendarButtonExtender_day_"+i+"_"+j+"']")).getText()+"-");
                  
                              }
                              System.out.println();
                          }
                  
                          Thread.sleep(5000L);
                          driver.findElement(By.xpath("http://*[@id='ctl00_SampleContent_Image1']")).click();
                          driver.findElement(By.xpath("http://*[@id='ctl00_SampleContent_calendarButtonExtender_day_3_3']")).click();
                  
                          System.out.println(driver.findElement(By.xpath("http://*[@id='ctl00_SampleContent_Date5']")).getText());
                  
                  
                      }
                  

                  推薦答案

                  獲取 input 文本的調用應該是:

                  The call to get the input text should be:

                  driver.findElement(By.id("ctl00_SampleContent_Date5")).getAttribute("value");
                  

                  別問我為什么,就是這樣一直是.通過鍵入 input 元素,您正在更改其 value 屬性.

                  Don't ask me why, it's just the way it always has been. By typing into an input element, you are changing its value attribute.

                  這篇關于無法使用 selenium webdriver 的 gettext() 從文本框中讀取文本?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  NETWORK_ERROR: XMLHttpRequest Exception 101(NETWORK_ERROR:XMLHttpRequest 異常 101)
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                  XmlHttpRequest onprogress interval(XmlHttpRequest onprogress 間隔)
                  How can I modify the XMLHttpRequest responsetext received by another function?(如何修改另一個函數接收到的 XMLHttpRequest 響應文本?)
                  What is the difference between XMLHttpRequest, jQuery.ajax, jQuery.post, jQuery.get(XMLHttpRequest、jQuery.ajax、jQuery.post、jQuery.get 有什么區別)
                    <tbody id='FpfeP'></tbody>

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

                        • <bdo id='FpfeP'></bdo><ul id='FpfeP'></ul>
                          • <small id='FpfeP'></small><noframes id='FpfeP'>

                            <tfoot id='FpfeP'></tfoot>
                          • 主站蜘蛛池模板: 丁香五月网久久综合 | 日韩精品一区二区三区中文字幕 | 成人二区 | 99re视频这里只有精品 | 欧美精品片 | 午夜精品久久久久久久99黑人 | 精品欧美色视频网站在线观看 | 国产在线精品一区二区 | 网站一区二区三区 | 国产在线精品一区 | 国产黄色在线观看 | 一级做a毛片 | 日韩第一区 | 成人精品国产免费网站 | av大片在线 | 视频在线一区二区 | 精国产品一区二区三区四季综 | 国产激情视频网站 | 成人网av| 欧美a区| 国产精品久久久久久久久久久免费看 | 成人欧美一区二区三区黑人孕妇 | 天堂色 | 国产精品久久久久久久久久久久冷 | 国产做a爱免费视频 | 99亚洲 | 国产一区在线看 | 欧美一区二区三区 | a在线视频 | 成人在线中文字幕 | 国产伦一区二区三区视频 | 日韩色视频| 丁香一区二区 | 日韩成人av在线 | 亚洲午夜网 | 久久精品久久久 | 国产亚洲一区二区精品 | 成人精品久久久 | 亚洲欧美日韩一区 | 中文字幕精品视频 | 欧美日韩黄 |