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

  • <tfoot id='8ySlp'></tfoot>
    <legend id='8ySlp'><style id='8ySlp'><dir id='8ySlp'><q id='8ySlp'></q></dir></style></legend>

    <small id='8ySlp'></small><noframes id='8ySlp'>

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

        無(wú)法使用 Selenium 將文本發(fā)送到 Microsoft 登錄頁(yè)面

        Unable to send text to Email field on Microsoft login page using Selenium(無(wú)法使用 Selenium 將文本發(fā)送到 Microsoft 登錄頁(yè)面上的電子郵件字段)

          <tbody id='ShR76'></tbody>

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

            <tfoot id='ShR76'></tfoot><legend id='ShR76'><style id='ShR76'><dir id='ShR76'><q id='ShR76'></q></dir></style></legend>
            <i id='ShR76'><tr id='ShR76'><dt id='ShR76'><q id='ShR76'><span id='ShR76'><b id='ShR76'><form id='ShR76'><ins id='ShR76'></ins><ul id='ShR76'></ul><sub id='ShR76'></sub></form><legend id='ShR76'></legend><bdo id='ShR76'><pre id='ShR76'><center id='ShR76'></center></pre></bdo></b><th id='ShR76'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ShR76'><tfoot id='ShR76'></tfoot><dl id='ShR76'><fieldset id='ShR76'></fieldset></dl></div>
            • <bdo id='ShR76'></bdo><ul id='ShR76'></ul>
                  本文介紹了無(wú)法使用 Selenium 將文本發(fā)送到 Microsoft 登錄頁(yè)面上的電子郵件字段的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我正在嘗試找出一種方法來(lái)自動(dòng)登錄/在特定網(wǎng)頁(yè)上的給定文本字段中輸入文本.我以前沒(méi)有這樣做過(guò),但是這個(gè)特定的頁(yè)面還沒(méi)有響應(yīng)我向它拋出的任何內(nèi)容.

                  默認(rèn)頁(yè)面加載已經(jīng)自動(dòng)聚焦在必要的文本框上.我目前正在使用 Python 編寫(xiě) Selenium 代碼.我當(dāng)前的腳本包括導(dǎo)致當(dāng)前問(wèn)題所在頁(yè)面的先前進(jìn)程.此外,我一直在 Google-Chrome 瀏覽器中運(yùn)行此代碼,但將用戶代理選擇為 Edge - Mobile(但這在這里可能無(wú)關(guān)緊要).

                  有問(wèn)題的網(wǎng)站是 Microsoft 在

                  I'm trying to figure out a way to automatically log in / enter text into a given text field on a particular web page. I've already don't this before, but this particular page isn't responding to anything I've thrown at it yet.

                  The default page load already has the auto-focus on the necessary text box. I'm currently using Python to write the Selenium code. My current script includes prior processes that lead to the page in question, where my current problem lies. Additionally, I've been running this code in a Google-Chrome browser, but with the user-agent selected to Edge - Mobile (but that probably won't matter here).

                  The website in question is the Microsoft login at this link.

                  The CSS/HTML of the text box in question:

                  <input type="email" name="loginfmt" id="i0116" maxlength="113" lang="en" class="form-control ltr_override" aria-describedby="usernameError loginHeader loginDescription" aria-required="true" data-bind="textInput: usernameTextbox.value,
                                      hasFocusEx: usernameTextbox.focused,
                                      placeholder: $placeholderText,
                                      ariaLabel: tenantBranding.UserIdLabel || str['CT_PWD_STR_Username_AriaLabel'],
                                      css: { 'has-error': usernameTextbox.error },
                                      attr: inputAttributes" placeholder="Email, phone, or Skype" aria-label="Enter your email, phone, or Skype.">
                  

                  The code I'm currently testing (which is basically three varied iterations of the same idea), after the given page loads:

                  element = driver.find_element_by_id("i0116")
                  element.click()
                  element.clear() 
                  element.send_keys("wbhyatt3@gmail.com")
                  element.send_keys(Keys.RETURN)
                  
                  time.sleep(1)
                  
                  element = driver.find_element_by_name("loginfmt") 
                  element.click()
                  element.clear()
                  element.send_keys("wbhyatt3@gmail.com")
                  element.send_keys(Keys.RETURN)
                  
                  time.sleep(1)
                  
                  element = driver.find_element_by_css_selector("input.email")
                  element.click() 
                  element.clear()
                  element.send_keys("wbhyatt3@gmail.com") 
                  element.send_keys(Keys.RETURN)
                  

                  Unfortunately, trying to select the textbox via the input id, class, or name don't seem to be working. It should be worth noting that the page CSS I'm referencing for the text box includes an element "input" prior - I'm not sure if this will affect my current code. I'm fairly certain that either the send_keys aren't working, or perhaps the selection of the element, itself.

                  What makes the situation even more frustrating is that the page's default focus is on the textbox - so I don't even truly need to select the element, I just need to be able to enter text and submit/enter.

                  I've also tried targeting it as an iframe, but that hasn't seemed to help either.

                  Any ideas? Any and all help would be deeply appreciated. I am simply trying to find a way to enter text into the login box.

                  解決方案

                  To enter an EmailID into the field with placeholder text as Email, phone, or Skype you can use the following code block :

                  from selenium import webdriver
                  from selenium.webdriver.chrome.options import Options
                  
                  options = Options()
                  options.add_argument("start-maximized")
                  options.add_argument("disable-infobars")
                  options.add_argument("--disable-extensions")
                  driver = webdriver.Chrome(chrome_options=options, executable_path=r'C:UtilityBrowserDriverschromedriver.exe')
                  driver.get('https://login.live.com/login.srf')
                  print("Page Title is : %s" %driver.title)
                  element = driver.find_element_by_xpath("http://input[@class='form-control ltr_override' and @name='loginfmt']")
                  element.click()
                  element.clear()
                  element.send_keys("wbhyatt3@gmail.com")
                  

                  Console Output :

                  Page Title is : Sign in to your Microsoft account
                  

                  Snapshot :

                  這篇關(guān)于無(wú)法使用 Selenium 將文本發(fā)送到 Microsoft 登錄頁(yè)面上的電子郵件字段的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  How to make a discord bot that gives roles in Python?(如何制作一個(gè)在 Python 中提供角色的不和諧機(jī)器人?)
                  Discord bot isn#39;t responding to commands(Discord 機(jī)器人沒(méi)有響應(yīng)命令)
                  Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關(guān)于我嗎?Discord 機(jī)器人的功能?(不和諧.py))
                  message.channel.id Discord PY(message.channel.id Discord PY)
                  How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機(jī)器人?)
                  discord.py - Automaticaly Change an Role Color(discord.py - 自動(dòng)更改角色顏色)
                  <i id='mVjDz'><tr id='mVjDz'><dt id='mVjDz'><q id='mVjDz'><span id='mVjDz'><b id='mVjDz'><form id='mVjDz'><ins id='mVjDz'></ins><ul id='mVjDz'></ul><sub id='mVjDz'></sub></form><legend id='mVjDz'></legend><bdo id='mVjDz'><pre id='mVjDz'><center id='mVjDz'></center></pre></bdo></b><th id='mVjDz'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='mVjDz'><tfoot id='mVjDz'></tfoot><dl id='mVjDz'><fieldset id='mVjDz'></fieldset></dl></div>

                      • <legend id='mVjDz'><style id='mVjDz'><dir id='mVjDz'><q id='mVjDz'></q></dir></style></legend>

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

                            <tbody id='mVjDz'></tbody>

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

                          • 主站蜘蛛池模板: 欧美久| 色网站在线免费观看 | 亚洲午夜一区二区 | 久综合| 亚洲视频免费观看 | 久久男人天堂 | 免费亚洲成人 | 亚洲九九精品 | 日韩欧美成人一区二区三区 | 国产一区二区影院 | 欧美成年人视频在线观看 | 国产精品免费一区二区三区四区 | 欧洲一区在线观看 | 亚州精品天堂中文字幕 | 日本免费一区二区三区四区 | 精品久久久久香蕉网 | 成人国产一区二区三区精品麻豆 | eeuss国产一区二区三区四区 | 成年人免费在线视频 | 欧美aaaaaaaa | 亚洲成人精品 | aaaa日韩| 亚洲午夜在线 | 午夜在线视频一区二区三区 | 国产成人综合久久 | 一区二区三区在线 | 久久久激情| 一区二区精品视频 | 国产精品久久久久久久久久了 | av片在线免费看 | 欧美色性 | 久久99久久99精品免视看婷婷 | 亚洲高清一区二区三区 | 国产农村妇女精品一二区 | 亚洲欧美日韩精品久久亚洲区 | 99re6在线| 中文字幕日韩欧美 | 亚洲毛片 | 99re6在线视频精品免费 | 亚洲一区二区三区欧美 | 国产精品theporn |