[wtr-general] Re: Trouble Locating elements using PageObject

2018-07-10 Thread NaviHan
Hi Justin That worked like a charm. PageObject gem is amazing :-) On Tuesday, 3 July 2018 21:48:19 UTC+10, NaviHan wrote: > > This is my first post here. Apologies if there is a mistake. > > I have a section of a page as attached in the pic. > > > The html code for the section is as follows > Ent

[wtr-general] Re: Trouble Locating elements using PageObject

2018-07-10 Thread Justin Ko
Hi, Accessing the spans within minimum_spend_threshold_error would be similar to what you did with nav_div_elements: page.minimum_spend_threshold_error_element.span_elements[0].html #=> "" page.minimum_spend_threshold_error_element.span_elements[1].html #=> "Sorry, your Perks Payday Voucher wil