ghostdriver

    0熱度

    1回答

    我正在使用PhantomJSDriver截取很多網址的截圖。 問題是一些URL發生超時。 我檢查了那些失敗的網址,我意識到這些網址需要很長時間才能「完全」加載。 我不能只是擴展pageLoadTimeout,因爲它會花費太多的時間來處理所有的網址。 所以,我寧願讓PhantomJSDriver不要等到頁面完全加載。 PhantomJSDriver能否在X秒後截取屏幕截圖,無論它是否完全加載? 感謝

    0熱度

    2回答

    我想用phantomJS和ghostdriver截取頁面的截圖。 這裏是我的代碼: import java.io.File; import java.net.URL; import org.apache.commons.io.FileUtils; import org.openqa.selenium.By; import org.openqa.selenium.OutputType;

    1熱度

    1回答

    嗨,我使用ghostdriver for selenium。我正在嘗試登錄谷歌AdWords,但出於某種原因,我遇到了極端的問題。 這裏是我的代碼: Dim driver As New PhantomJSDriver Dim options = New PhantomJSOptions() options.AddAdditionalCapability("phantomjs.p

    1熱度

    2回答

    我一直在使用Firefox +硒刮。但是,我決定切換到Phantomjs,因爲它應該更快。 我現在有問題在使用Phantomjs + ghostdriver + selenium和python時添加cookie。爲了解決這個問題,我一直在尋找解決方案,但我找不到合適的解決方案。 下面是使用的代碼。 from selenium import webdriver from selenium.webd

    0熱度

    2回答

    我有點絕望在這裏。 幾天來,我一直在嘗試創建一個可以通過我們的網站並檢查Javascript錯誤的網絡抓取工具。 最大的問題是我只知道Java,而且似乎GhostDriver不再被維護。 Ghostdriver的人指的是JbrowserDriver。然而,JBrowserDriver沒有選擇從控制檯收集Javascript錯誤。 然後我嘗試HTMLUnit,這是渴望拋出錯誤,而不是與JavaScr

    1熱度

    1回答

    我想用PhantomJS()在python3.4和類型 因此: from selenium import webdriver browser = webdriver.PhantomJS() 我得到了錯誤: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lo

    1熱度

    1回答

    處理使用phantomJS警告我有如下一個Java代碼,當我通過PhantomJs收到「不支持的命令異常」運行,但它工作正常,如果我通過Firefox和Chrome運行: - 注:有了phantomJs,我們可以在下面的代碼中執行到第3步。我在很多博客中搜索過,但這些答案並沒有解決我的問題。 1. cvvField.sendKeys(cvcData); 2. proceedToPayBtn.

    0熱度

    3回答

    如何執行下載網頁(args [1])的phantomJS腳本並將結果html保存到文件(args [2])中,如下所示: var system = require('system'); var page = require('webpage').create(); var fs = require('fs'); // Set the url address and the path va

    0熱度

    1回答

    我正在使用phantomJS驅動程序來自動執行一些測試。在主頁上,如果我得到一個webElement並輸出href,我可以將其複製到瀏覽器,並打開頁面,但在測試時,我做了driver.get(loginLink.getAttribute(「href」))它只是保持不變頁。 它在活網站上正常工作,但不在我們的內部分段站點上。我已經添加了 caps.setCapability(CapabilityTy

    0熱度

    1回答

    我目前在Windows平臺上運行Selenium Grid 3.4.0和phantomjs 2.1.1。 當我嘗試將phantomjs節點註冊到我中心會出現以下錯誤: K:phantomjs-2.1.1-windows/bin/phantomjs.exe --webdriver=8080 --webdriver-selenium-grid-hub=http://IP:5786 [ERROR -