[wtr-general] Re: Using .nil? to check the presence of an element

2019-04-15 Thread NaviHan
I have attached the html of the two line items on cart The issue:- *How do we check the presence of a button which can only be identified by a custom attribute when the button itself is not there.* On Monday, 15 April 2019 16:03:51 UTC+10, NaviHan wrote: > > The shopping cart has two products,

[wtr-general] Re: Using .nil? to check the presence of an element

2019-04-15 Thread NaviHan
Move to wishlist Remove In the above html, if I represent the button *name="dwfrm_cart_shipments_i0_items_i1_deleteProduct"* as *buttons(:remove_line_items, :name => /deleteProduct/)* then can I reach the other button with *data-variationgroup="2002690-02" *using the