[wtr-general] Re: Is there an autogenerated method in page-object that tell if the element is present?

2019-04-16 Thread NaviHan
Hi Justin Sorry to comeback on this thread. Today I was just trying to understand this piece of code. I have also read your thread here https://stackoverflow.com/questions/36192357/is-there-a-way-to-define-a-text-field-element-type-that-does-send-key-as-default-set Im confused about the methods

[wtr-general] Re: What is the default element and page wait in Watir. Do we have to explicitly set PageObject.default_element_wait?

2019-04-16 Thread NaviHan
In fact I have printed three classes puts applied_voucher_list_element.class puts applied_voucher_list_element.element.class puts applied_voucher_list_element.wait_until(&:present?).class and got PageObject::Elements::Div Watir::Div Watir::Div How is

[wtr-general] Re: What is the default element and page wait in Watir. Do we have to explicitly set PageObject.default_element_wait?

2019-04-16 Thread NaviHan
Hi Justin Also please note the error I was getting as I mention in the original post [31m timed out after 10 seconds, waiting for true condition on #"slide-dialog-container-cart-page", :tag_name=>"div"}> (Watir::Wait::TimeoutError) [0m Watir::Div timed out after 10 seconds. The 10

[wtr-general] Re: What is the default element and page wait in Watir. Do we have to explicitly set PageObject.default_element_wait?

2019-04-16 Thread NaviHan
Hi Justin It a bit confusing... For example I have defined a PageObject element as div(:applied_voucher_list, :class => 'applied-evouchers') When I print the class of it puts applied_voucher_list_element.wait_until(&:present?).class Im getting Watir::Div I would expect this to return

[wtr-general] Re: What is the default element and page wait in Watir. Do we have to explicitly set PageObject.default_element_wait?

2019-04-16 Thread Justin Ko
Hi Navi, 1) It would depend on who is calling the method - ie a Watir::Element vs a PageObject::Element. Generally you would be working with PageObject::Element, so you would be calling the Page-Object version. The recent versions of Page-Object forward missing methods directly to the Watir