poltergeist

    0热度

    1回答

    我想用puffing-billy宝石与poltergeist,我有一些问题。我capybara_helper.rb包含下面的代码: Billy.configure do |c| c.cache = true c.cache_request_headers = false c.path_blacklist = [] c.persist_cache = true

    0热度

    1回答

    我在使用水豚选择自动填充字段时遇到问题。 我有下面的代码: def choose_autocomplete_result(text, input_id="input[data-autocomplete]") page.execute_script %Q{ $('#{input_id}').trigger("focus") } page.execute_script %Q{ $(

    0热度

    2回答

    我的HTML/ERB看起来像这样 <fieldset class="row notifications"> <legend> <hr class="dash blue inline"> <%= t :my_notifications %> </legend> <label> <%= f.check_box(:subscribed_

    2热度

    1回答

    当我用铬驱动程序运行测试 - 它通过。 当我与骚灵运行它 - 它试图使点击与格式HTML,我有错误: ActionController::UnknownFormat: ActionController::UnknownFormat controller.rb def features newspaper = Newspaper.find(params[:id]) respond_to

    0热度

    1回答

    我有一个扩大表/行的问题。我做了一些Google搜索,并没有找到任何有关这种情况的信息。 基本上我有一个5列左右的表格。点击后将展开表格并显示更多信息。在这个新信息里面有一个按钮,试图点击。 这是该行的表iself的HTML: <thead> <tbody> <tr class="odd" data-row="0" data-source="/user/01" role="row">

    2热度

    1回答

    我使用Rspec /水豚与Poltergeist作为驱动程序来编写一些大型Web应用程序的测试。 我的问题是我想记录在控制台上出现的消息,但到目前为止我一直无法这样做。 我知道的选项js_errors和phantomjs_logger,但我有一些问题,他们说: 如果我设置js_errors: false,我在phantomjs_logger指定文件保持为空; 如果我设置js_errors: tru

    0热度

    1回答

    Git this page https://ru.aliexpress.com/store/product/Original-xiaomi-Redmi-note3-snapdragon-650-4000mAh-13ML-1080P-3G-32G-5-5-screen-octa-core/1986585_32622877163.html?detailNewVersion=&categoryId=50

    0热度

    1回答

    我使用这个命令提取p标签 session.all('.entry p') 给予结果 [#<Capybara::Element tag="p" path="//HTML[1]/BODY[1]/DIV[3]/DIV[1]/SECTION[1]/DIV[1]/ARTICLE[1]/DIV[3]/P[1]">, #<Capybara::Element tag="p" path="//HTML[1]/

    0热度

    1回答

    我有一套水豚测试。默认情况下,我使用Poltergeist/PhantomJS作为我的驱动程序。其中一些测试正在针对video和audio标签进行测试。如果您还不知道PhantomJS不支持这些标签,并且看起来他们没有计划这样做。我发现的是,如果我将驱动程序设置为Selenium进行音频和视频测试,测试将通过。在我的测试中是否有任何缺点使用多个驱动程序?我觉得这是一个拙劣的解决方案,但我不知道其他

    0热度

    1回答

    我有一个ActiveRecord类,Post。 在与水豚,RSpec的和骚灵运行我的功能规格,我创建的这两个实例与FactoryGirl FactoryGirl.create(:post, topic: "Blade running") FactoryGirl.create(:post, topic: "Dreaming of electric sheep") ,我可以马上验证规范: sce