phantomjs

    0熱度

    1回答

    嗨,大家好,我正在使用phantomjs來進行自動化測試。這裏是我的代碼: capabilities = Selenium::WebDriver::Remote::Capabilities.phantomjs("phantomjs.page.settings.userAgent" => "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHT

    0熱度

    1回答

    我基本上是寫一個小型的網頁抓取代碼。最初,我去了NodeJS + Request + Cheerio颳去網站,但後來我意識到Cheerio只適用於靜態網頁,而不適用於那些使用JS加載DOM對象的網頁。 那麼我去了ScraperJS,因爲它有Static_Dynamic ContentScraper。 我已經設置了這裏指定的所有依賴關係:https://github.com/ruipgil/scra

    1熱度

    1回答

    你好,我想更新phantomJS,爲我的水豚測試。這是在我的流浪環境。 我現在的版本是 1.9.2 試圖與 sudo npm -g install phantomjs-prebuilt 更新,但是當我鍵入 phantomjs -v got same 1.9.2 然後我試圖安裝寶石紅寶石 gem install phantomjs 個,並進入env.rb文件 require 'phan

    1熱度

    1回答

    我已經嘗試了很多,但我沒有得到任何解決方案,我怎麼能處理page.onError,代碼如下 - DesiredCapabilities desiredCapabilities = new DesiredCapabilities(); desiredCapabilities.setJavascriptEnabled(true); desiredCapabilities.setCapability

    1熱度

    1回答

    所以這是我試圖使用的控制器的代碼。 class ScraperController < ApplicationController def getinformation require 'watir-webdriver' require 'phantomjs' @browser = Watir::Browser.new:phantomjs

    0熱度

    1回答

    您好我有錯誤,我capybara測試ENV unknown error: jQuery is not defined (Session info: chrome=43.0.2357.125) 我認爲這是關係到AJAX等待功能 def wait_for_ajax Timeout.timeout(Capybara.default_wait_time) do ele

    0熱度

    1回答

    Poltergeist接受blacklist和whitelist,同時配置它作爲水豚的驅動程序。該文檔指出: Poltergeist支持URL黑名單,它允許您阻止腳本在指定的域上運行。 雖然這是偉大的,它並不能幫助我的問題,我想從被請求阻止某些資產/加載,因爲它引起我的特拉維斯-CI的問題,其中這些資產正在返回500服務器錯誤並導致我的測試失敗,即使它們應該是綠色的。 URI就應該阻止爲: ['/

    0熱度

    1回答

    我使用MUP部署流星應用程式: 搬運工圖片:abernix/meteord:鹼使用ongoworks :spiderable用於phantomjs /搬運工兼容性 Spiderable在當地的開發環境中運行良好。 試圖 $捲曲http://hostname?_escaped_fragment_= 內部服務器錯誤 何時,在MUP日誌我得到的錯誤,我看到: spiderable: phantomjs

    0熱度

    1回答

    我需要phantomJS在點擊按鈕後等待某個時間才能獲得結果。這個結果存儲在一個div標籤中。我想用這個結果做點什麼。 我明白了JavaScript沒有睡眠()和其它語言一樣 我試着用,睡眠 $("#idrun").click(); sleep(100000); 的 setTimeout(function() { var b = $("#idresult").text();

    0熱度

    1回答

    考慮代碼node-phantom: page.evaluate(function() { return document.getElementById('foo').innerHTML; }).then(function(html){ console.log(html); }); 的功能可按在HTML頁面中直接執行,所以加入一個這樣的參數: someExternalVa