can't find element with webkit #984
Comments
@majioa - When filling the field, you need to either use the label text (assuming you have the label with correct
|
@BroiSatse Actually it matches on either the label text, the Judging by the classes and data attribute on the HTML element shown I'm guessing it's actually being replaced by a JS widget on the page, and so the actual element is hidden. You'd need to interact with the actual elements that are visible on the page. |
@twalpole in my browsec the input fields of the form are visible... |
I've found out the problem, and it seems there is a some issue with
But it wont work when webkit parses and processes the page, however it works in regular browser, when I replaced it with the explicit form, the lost element becomes found.
Additionally, there is the problem with recursive importing, when I put the following line into a
So that is it. |
@majioa No "browser" processes scss files, they first have to be processed by whatever asset pipeline you're using into normal css which a browser can then parse. If you're having issues with scss files not being included/parsed that's an issue with your asset pipeline in the test environment and not capybara-webkit. |
ok, but that is the difference in proceedings of the scss's, in regular case (in rails), and in capybara ecosystem? |
Would it be possible to put together a small example that reproduces the issue you're seeing? It's hard for me to understand how Capybara or WebKit could be involved here, because they both read compiled CSS files and not SCSS. |
@majioa We were getting some ElementNotFound errors recently, and found that updating to QT 5.5, along with rebuilding capybara-webkit, solved the issue. Have you tried this? https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit |
@ademars94 I have |
@jferris for example there is a top level
try import from the
instead of:
Then I receive faults in parsing. |
FYI @majioa -> from their https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit Qt 5.5 is the last version of Qt that capybara-webkit will support. The Qt project has dropped the WebKit bindings from binary releases in 5.6. |
Closing due to lack of way to replicate - if one is provided we can reopen |
Note: This is for issues with Capybara. If you have a howto type question, please ask on the mailing list as requested in the README: http://groups.google.com/group/ruby-capybara
Meta
Capybara Version:
2.7.0
Driver Information (and browser if relevant):
capybara-webkit 1.11.1
qt 5.6.2
qt5-webkit-common-5.6.2-alt0.M80P.1
Expected Behavior
fill_in('email', with: @user.email)
finds the input elementActual Behavior
Capybara::ElementNotFound
Steps to reproduce
the code:
The text was updated successfully, but these errors were encountered: