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

      <tfoot id='q1cSB'></tfoot>

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

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

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

        Selenium WebDriver/Java - 模擬人類光標移動

        Selenium WebDriver / Java - Simulate Human Like Cursor Movement(Selenium WebDriver/Java - 模擬人類光標移動)

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

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

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

                  <tbody id='SZFH0'></tbody>
                1. 本文介紹了Selenium WebDriver/Java - 模擬人類光標移動的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我想在 Facebook 廣告管理器中自動執行一項簡單的任務.此任務涉及設置活動和上傳一些廣告.人類可能需要 30 分鐘才能做到這一點.然而,他們每次都在做同樣的事情.經常有錯誤.這應該是自動化的.沒有人的情感或錯誤就完成了.

                  I want to automate a simple task inside Facebook Ads Manager. This task involves setting up a campaign and uploading some ads. It can take a human 30 minutes to do this. However, they're doing the same thing every single time. Often with mistakes. It's something that should be automated. Done without human emotion or mistakes.

                  Facebook 非常敏感,我不希望它因為錯誤的原因禁止我.所以我需要感受人性.我可以在點擊之間花時間.但是,光標移動本身需要感覺人性化.出于道德目的,我只需要模擬真實的人類點擊.

                  Facebook is very sensitive and I don't want it to ban me for the wrong reasons. So I need to feel human. I can take my time between clicks. However, the cursor movement itself needs to feel human. I only need to simulate a real human click for ethical purposes.

                  假設我得到了一個想要將光標移向的元素:

                  Say I get an element I want to move my cursor towards:

                  WebDriver driver;    
                  
                  // Set file path of chrome driver
                  System.setProperty("webdriver.chrome.driver", "C:\chromedriver.exe");
                  
                  // Create object
                  ChromeDriver driver = new ChromeDriver(options);
                  
                  // Go to URL
                  driver.get("FACEBOOK URL");
                  
                  // Get element
                  driver.findElement(By.xpath("//span[contains(text(), 'Setup Campaign')]");
                  

                  像真人一樣將光標移向該元素的最佳方法是什么?

                  What is the best way to move my cursor towards this element as a real human would?

                  • 真正的人類會首先移動鼠標.不只是點擊元素

                  • A real human would first move the mouse. Not just click the element

                  他們會緩慢移動鼠標/光標.最多可能需要 500-1000 毫秒.當然不是立即.

                  They would move the mouse/cursor slowly. It could take up to say 500-1000 milliseconds. Certainly not instantly.

                  他們會以彎曲的方式移動鼠標/光標.不僅僅是100%的直線.可能,以隨機方式?那么可能需要一些隨機性元素?

                  They would move the mouse/cursor in a curved fashion. Not just in a 100% straight line. Possibly, in a random fashion? So some elements of randomness may be needed?

                  我對 Selenium 還是很陌生,因此我們將不勝感激.

                  I'm quite new to Selenium, so any input would be greatly appreciated.

                  我正在用 Java 編寫代碼 :)

                  I am writing my code in Java :)

                  推薦答案

                  WebDriver 不使用操作系統輸入;它通過http協議直接與瀏覽器通信.如果您想模擬像真實"鼠標輸入一樣的通信,您必須使用使用基于操作系統的框架的自動化解決方案.如果是 Windows,您可以使用例如:

                  WebDriver doesn't use an operating system input; it communicates directly with the browser via http protocol. If you want to simulate communication like a 'real' mouse input you have to use an automation solution that uses operating system based frameworks. In case of Windows you can use e.g.:

                  1. https://github.com/FlaUI/FlaUI(閱讀https://github.com/FlaUI/FlaUI/wiki/FAQ 了解如何將 Chrome 配置為為 FlaUI 公開 Web 控件)
                  2. https://github.com/microsoft/WinAppDriver
                  1. https://github.com/FlaUI/FlaUI (read https://github.com/FlaUI/FlaUI/wiki/FAQ to get the knowledge how to configure Chrome to expose web controls for FlaUI)
                  2. https://github.com/microsoft/WinAppDriver

                  這篇關于Selenium WebDriver/Java - 模擬人類光標移動的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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='QUyhK'></tfoot>
                    <i id='QUyhK'><tr id='QUyhK'><dt id='QUyhK'><q id='QUyhK'><span id='QUyhK'><b id='QUyhK'><form id='QUyhK'><ins id='QUyhK'></ins><ul id='QUyhK'></ul><sub id='QUyhK'></sub></form><legend id='QUyhK'></legend><bdo id='QUyhK'><pre id='QUyhK'><center id='QUyhK'></center></pre></bdo></b><th id='QUyhK'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='QUyhK'><tfoot id='QUyhK'></tfoot><dl id='QUyhK'><fieldset id='QUyhK'></fieldset></dl></div>
                      <legend id='QUyhK'><style id='QUyhK'><dir id='QUyhK'><q id='QUyhK'></q></dir></style></legend>

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

                          • <bdo id='QUyhK'></bdo><ul id='QUyhK'></ul>
                              <tbody id='QUyhK'></tbody>
                            主站蜘蛛池模板: 久久看精品| 国产女人与拘做受视频 | 久久人爽 | 精品无码久久久久久久动漫 | 在线成人www免费观看视频 | 特级一级黄色片 | 国产精品美女久久久久久不卡 | 欧美一级在线免费观看 | 免费一区二区三区 | 国产九九精品 | 一区二区伦理电影 | 亚洲人成人一区二区在线观看 | 久久久久国产精品www | 国外成人免费视频 | 免费一区 | 欧美性生活一区二区三区 | 麻豆精品国产91久久久久久 | www视频在线观看 | 日韩1区 | 欧美中文字幕一区二区三区 | 中文字幕在线播放不卡 | 一区二区三区四区电影 | 久久伊人精品一区二区三区 | 一级aaaaaa毛片免费同男同女 | 天天夜夜人人 | 国内自拍偷拍视频 | 久久精品免费 | 亚洲一级二级三级 | 九九综合九九 | 国产精品久久久久久婷婷天堂 | 亚洲欧洲一区 | 亚洲福利视频网 | 国产丝袜一区二区三区免费视频 | 中文字幕在线视频一区二区三区 | 国产网站久久 | 自拍偷拍中文字幕 | av在线一区二区三区 | 九九综合 | 精品1区 | 91免费版在线观看 | 日韩成人免费视频 |