久久久久久久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 - 模擬人類光標移動的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

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

                  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.

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

                  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 不使用操作系統(tǒng)輸入;它通過http協(xié)議直接與瀏覽器通信.如果您想模擬像真實"鼠標輸入一樣的通信,您必須使用使用基于操作系統(tǒng)的框架的自動化解決方案.如果是 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

                  這篇關(guān)于Selenium WebDriver/Java - 模擬人類光標移動的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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)建一個隨機打亂數(shù)字的 int 數(shù)組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠?qū)?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>
                            主站蜘蛛池模板: 黄色av网站在线观看 | 老司机深夜福利网站 | 欧美精品网站 | 91 视频网站| 一区二区手机在线 | 性色av一区 | 国产精品久久久久久久久久 | 欧美福利网站 | 久久男人 | 男人亚洲天堂 | 久久久国产精品 | 婷婷精品 | 日日操夜夜操天天操 | 久久91精品国产一区二区 | 国产中文字幕在线观看 | 欧美日韩在线一区二区 | 亚洲欧美一区二区三区1000 | 男女啪啪高潮无遮挡免费动态 | 在线视频日韩 | a级大毛片 | 亚洲成av片人久久久 | 一区二区三区四区av | 精品国产伦一区二区三区观看说明 | hitomi一区二区三区精品 | 天天躁人人躁人人躁狂躁 | 欧美一区二区在线播放 | 国产精品久久久久av | 欧美 日韩 综合 | 男女视频免费 | 亚洲国产精品久久 | 中文字幕亚洲欧美日韩在线不卡 | 亚洲视频一区在线 | 成人午夜精品一区二区三区 | 亚洲国产高清高潮精品美女 | 欧美日韩在线一区二区 | 亚洲一区二区在线播放 | 天天色影视综合 | 伊人操| 久久精品国产一区二区三区 | 午夜欧美 | 黄色片网此 |