Using contains text in page.execute_script
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
0
I am trying to click a div that contains "Some text". How can I do that using page.execute_script What I tried: page.execute_script("$div:contains('Some text')).click()")
rspec capybara
share | improve this question
asked Nov 22 '18 at 0:27
A J A J
557 2 7 21
...