I want to use use wait_until method until visible for my element. Currently i am using Siteprism method which is as below. Which is a built in Siteprism method but looks like its not performing well as intermittently it is throwing error (Object not exist in the DOM).
@home.wait_until_btn_element_visible
So i want to use find method from capybara. Provably which is a better easiest solution. But i having trouble with defining css. As i am defining css in ruby class. I want to use that variable in to below code. How can i do that?
page.find('#blah').visible?.should be_true
I want something like this :
page.find(@home.btn_element).visible?.should be_true
Looks like it is not working rather throwing this error below:
invalid selector: An invalid or illegal selector was specified
Need help..... Or any other solution will be appreciated..