Capybara returns hidden elements when using Poltergeist? -


i'm using following capybara query:

all(:xpath, '//table[@class="myclass"]//tr) 

my table contains 2 entries:

<tr class="class1" style="visibility: hidden;"> <tr class="class2"> 

the code above bit simplified compared original, serves example. when running capybara against chrome or firefox, query results 1 element (class2). when running same code against poltergeist, i'm getting both elements. tried play around explicitly telling capybara ignore hidden elements, i'm still getting hidden one. i'm missing here something?

this has been fixed poltergeist team: https://github.com/teampoltergeist/poltergeist/issues/618#issuecomment-150139228


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -