phantomjs

    0熱度

    1回答

    這是我的表格,我希望獲得「Spielzeit」和「Coins」的價值。 我已經嘗試了很多像 document.querySelector("div.page Spielzeit"); document.getElementById('page').getElementsByTagName('th'); document.querySelectorAll("#page th"); 但毫無

    0熱度

    1回答

    我在C#/ Winforms應用程序中使用Selenium和PhantomJs。 我有這個代碼運行前設置PhantomJS代理: var driverService = PhantomJSDriverService.CreateDefaultService("phantomjsdriver"); Proxy proxy = new Proxy(); proxy.HttpProxy = str

    0熱度

    1回答

    我一直在試圖弄清楚如何通過Karma運行測試時執行CallPhantom函數。我發現,似乎解決兩個頁面: https://github.com/karma-runner/karma-phantomjs-launcher/issues/19 Take screenshot from Karma while running tests in PhantomJS 2? 但可悲的是,似乎我只是不能似乎得到

    0熱度

    1回答

    如果我點phantomjs此頁: <html> <body> <script> $(document).ready(function() { atesting(); }); </script> </body> </html> 與此phantomjs腳本 var page = require('webpage').create(); page.open

    0熱度

    1回答

    你好,我使用水豚測試,測試應用程序。但是,iframe不顯示自動測試。嘗試測試存儲在iframe中的條紋元素。我懷疑這與phanotmjs設置有關。嘗試添加網絡安全選項的conf Capybara.register_driver :poltergeist do |app| options = { :timeout => DEFAULT_WAIT_TIME, :de

    3熱度

    1回答

    我在React中有一個下拉組件,它用一個標籤和一些選項來呈現一個select元素。下面是我的測試是什麼樣子: import React from 'react'; import { shallow, mount } from 'enzyme'; import Dropdown from './Dropdown'; describe('Dropdown',() => { it('s

    0熱度

    1回答

    頁 目前的情況是,我使用PhantomJS和硒加載網頁,因爲主機網站的背後是CloudFlare的DDoS防護,這樣沒有我不能使用任何在此建不支持JavaScript一直行之有效一段時間,但該網站最近已經用自己的CDN來提供這些圖像,這個設置PictureBox.ImageLocation到src時會引起問題。 如果有什麼辦法讓一個<img>標籤SRC,並且將其轉換成bitmap或image能夠直

    0熱度

    1回答

    我設置一個全局變量 var URL = []; 和獲取數據: casper.then(function() { // I get 19 links from this code URL = this.evaluate(getURL); // I can see i get the first link console.log(URL[0] + '****

    0熱度

    1回答

    我有以下使用其正常工作,並在控制檯返回預期的HTML硒和鉻司機節點路徑: app.get('/google', function (req, res) { var driver = new webdriver .Builder() .forBrowser('chrome') .build(); driver.get('https://w

    0熱度

    1回答

    我使用CasperJS從網站http://www.u-movie.com.tw/page.php?page_type=now&portal=cinema&ver=tw獲取數據。 我想刪除沒有ID的<p>。 所以我儘量選擇根和刪除它,但它會顯示null is not an object 如果我僅僅只有JavaScript如何解決它不使用jQuery? 任何幫助,將不勝感激。 這裏是我的文檔的一部分: