Re: [wtr-general] Re: problem when locating the element

2019-02-01 Thread rajagopalan madasami
Sure On Sat, 2 Feb, 2019, 3:02 AM Lakshya Kapoor Awesome! You can checkout some example code and a demo here - > https://kapoorlakshya.github.io/introducing-ffmpeg-screenrecorder > > On Friday, February 1, 2019 at 10:24:00 AM UTC-8, rajagopalan madasami > wrote: >> >> Hi, I have done my framework

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

2019-02-01 Thread NaviHan
Thanks Justin.. I have two more question though. 1. How does the the method in monkey_path.b takes precedence over the method in actual page-object gem? 2. There are may intances in the application where a div element receives the click rather than a button. eg div(:expand_perks_section_icon,

[wtr-general] Re: Usage of block in hooks.rb

2019-02-01 Thread Lakshya Kapoor
There is no difference in functionality from a Hooks perspective. They both work the same way, except that the in the second one you are getting access to the Scenario details (object). Actually, you can come both the *Before *hooks to achieve the same result: Before do|scenario| @browse

Re: [wtr-general] Re: problem when locating the element

2019-02-01 Thread Lakshya Kapoor
Awesome! You can checkout some example code and a demo here - https://kapoorlakshya.github.io/introducing-ffmpeg-screenrecorder On Friday, February 1, 2019 at 10:24:00 AM UTC-8, rajagopalan madasami wrote: > > Hi, I have done my framework work, now I am going to include your recorder > into my

Re: [wtr-general] Re: problem when locating the element

2019-02-01 Thread rajagopalan madasami
Hi, I have done my framework work, now I am going to include your recorder into my project. On Tue, 6 Nov, 2018, 11:41 PM Lakshya Kapoor Perfect time to share a gem I am working on :) > > https://github.com/kapoorlakshya/ffmpeg-screenrecorder > > This should help you create a video recording of y

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

2019-02-01 Thread Justin Ko
Yes, that would work. Personally, I find "falsey" hard to type. Technically it also includes "nil", though #present? shouldn't return that. I tend to go with: expect(on(MyAccountPage).reward_history?).to eq false The monkey patch is redefining the method. It's one of those good and bad things

[wtr-general] Re: Usage of block in hooks.rb

2019-02-01 Thread NaviHan
Hi Lakshya Here is the hooks.rb used in our project.. Eventhough the the browser is assigned to instance variable @browser we still get to see all the details you mentioned. So Im not quite getting the difference between the two Before hooks require 'rubygems' require 'page-object' require 'wa