I'm using the following Capybara query:
all(:xpath, '//table[@class="myClass"]//tr)
My table contains two entries:
<tr class="class1" style="visibility: hidden;">
<tr class="class2">
The code above is a bit simplified compared to the original, but It serves the example. When running Capybara against Chrome or Firefox, the query results one element (class2). When running the same code against Poltergeist, I'm getting both elements. I tried to play around with explicitly telling Capybara to ignore hidden elements, but I'm still getting the hidden one. Am I'm missing here something?
This has been fixed by the Poltergeist team: https://github.com/teampoltergeist/poltergeist/issues/618#issuecomment-150139228