watir-webdriver

    1熱度

    1回答

    我在Watir webdriver中使用PhantomJs時遇到了困難。 這裏是我的代碼選擇元素時: signInButton = driver.button text: 'Sign In' signInButton.wait_until_present signInButton.exists? signInButton.click 它使用Chrome,但使用PhantomJs時不工作時

    1熱度

    1回答

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

    0熱度

    2回答

    在的Watir文檔(http://watir.com/guides/chrome/)無頭鍍鉻,它已經提到,這樣做 Watir::Browser.new :chrome, headless: true 將使我們能夠使用無頭鉻 這似乎並沒有工作。 我得到一個錯誤,如下 2.4.0 :001 > require 'watir' => true 2.4.0 :002 > Watir::Browse

    0熱度

    1回答

    使用Rspec運行GUI測試。我可以傳遞一組值並將它們用作元素的索引位置嗎? 喜歡的東西: def pin_specific_idxs(*idx) pins = foo.divs(:class => 'some-element', :index => idx).div(:class, 'another-element').button(:class, 'thingy-i-want-to-

    1熱度

    1回答

    使用的Watir-webdriver的使用Ruby 2.3.3 我需要從以下HTML <div id="response1"> <div data-id="2"> <span>XYZ</span></div> <div data-id="3"> <span>XYZ</span></div> <div data-id="4"> <span>

    0熱度

    1回答

    我正在使用watir和ruby編寫頁面對象模式UI框架。這是工作的罰款,直到我做了捆綁更新 我表示這種 username: field: text_field attribute: name value: username default: operations: - exists? - set ,以及頁對象方法生成此送入 def generate(element

    -1熱度

    1回答

    我很新的節目所以想用的Watir解決了以下問題: 我有一個網頁是滿場的,我想從== $裏面湊值。如果有幫助,裏面的值從var pageData開始。 X路徑// * [@ ID = 「innerpage」] /腳本[48] 我怎樣才能做到這一點? 感謝

    -2熱度

    2回答

    當我試圖執行我的「CMD」使用「>紅寶石TestingTraining.rb」 TestingTraining.rb 腳本TestingTraining.rb下面寫道:你在這裏可以找到。 該腳本將打開Firefox瀏覽器,並登錄到應用程序 寫在記事本++代碼.. 它顯示錯誤消息爲: C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_req

    0熱度

    1回答

    我無法使用Watir-webdriver gem從Ruby站點獲取元標記的內容值。 例如 <meta property="og:title" content="【楽天市場】ダヴ メンプラスケア クリーンコンフォート泡洗顔 つめかえ用(110mL)【unili3e102】【ダヴ(Dove)】[ダヴ 洗顔]:爽快ドラッグ">

    0熱度

    1回答

    我在我的名爲Scaleway的ubuntu遠程主機上使用Ruby,Sinatra和Redis DataBase部署了我的應用程序。 以這種方式,我安裝了所有我需要的東西,我可以訪問我的應用程序。所以,當我想用​​我的劇本,誰使用的Watir寶石(硒),它總是告訴我這個錯誤: Selenium::WebDriver::Error::WebDriverError at /show_result una