[wtr-general] Re: Trouble reading the text from Popup , Using Watir and Pageobject

2018-08-05 Thread Titus Fortner
`#wait_until` waits for a truthy condition; `#wait_while` waits for a falsey condition. On Sunday, August 5, 2018 at 6:22:42 PM UTC-7, NaviHan wrote: > > Thanks Titus > > Just wondering the difference between wait_until and wait_while. Do they > bot do the same thing? > > On Friday, 3 August 20

[wtr-general] Re: Trouble reading the text from Popup , Using Watir and Pageobject

2018-08-05 Thread NaviHan
Thanks Titus Just wondering the difference between wait_until and wait_while. Do they bot do the same thing? On Friday, 3 August 2018 15:12:45 UTC+10, NaviHan wrote: > > I have a functionality where I click an a link from an email a voucher > gets added to the shopping cart and a pop up appears

[wtr-general] Re: Trouble reading the text from Popup , Using Watir and Pageobject

2018-08-05 Thread Titus Fortner
Yeah, ideally you shouldn't need to use the class directly since the methods are included in the element class. The errors are better when you do the code I suggested. As far as the `#to_proc` syntax, it's discussed in our watir 6 faq. http://watir.com/watir-6-faq/#I -- -- Before posting, pl

[wtr-general] Re: Trouble reading the text from Popup , Using Watir and Pageobject

2018-08-05 Thread NaviHan
Hi Titus This actually works. Im yet to configure the script in Jenkins and verify because due to some reason the initial code worked sometimes on local but failed in Jenkis on all instances @rewards_popup_txt = Watir::Wait.until{cta_description_element}.text" Im eager to know what is the dif