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

2019-01-31 Thread Lakshya Kapoor
You are welcome! The order of execution will always be: iteration 1 -> Before Hook Scenario Steps After Hook iteration 2 -> Before Hook Scenario Steps After Hook iteration 3 -> Before Hook Scenario Steps After Hook This is also a good practice, so that your Scenarios always start from a

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

2019-01-31 Thread NaviHan
Thanks Lakshya for the detailed explanation. So if I want to execute a scenario 3 times, here is the order of execution iteration 1 -> Before Hook Scenario Steps After Hook iteration 2 -> Before Hook Scenario Steps After Hook iteration 3 -> Before Hook Scenario Steps After Hook Or is it

Re: [wtr-general] WATIR can be used for AngularJS?

2019-01-31 Thread Joe Fleck
It came in helpful for a few objects in our angular app but I was able to use watir for most of it. On Thu, Jan 31, 2019, 1:49 PM rajagopalan madasami < rajagopalanmadas...@gmail.com wrote: > Ok thank you > > On Fri, 1 Feb, 2019, 12:01 AM Titus Fortner >> This gem used to be a bigger deal becaus

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

2019-01-31 Thread NaviHan
Thanks Justin for creating a feature request. What I have done is I have created a file name monkeypatch.rb and put the code you have given in there. Changed the script to use and it passed. expect(on(MyAccountPage).reward_history?).to be_falsey Could you please confirm if this is the right way

Re: [wtr-general] WATIR can be used for AngularJS?

2019-01-31 Thread rajagopalan madasami
Ok thank you On Fri, 1 Feb, 2019, 12:01 AM Titus Fortner This gem used to be a bigger deal because Watir required attribute values > to be defined directly. Now that we've opened this up more, all that you > get from watir_angular is to be able to inject the automatic waiting calls > that are fou

Re: [wtr-general] Re: Error

2019-01-31 Thread rajagopalan madasami
Hi, I have raised this bug in chrome driver here. You may have a look at here. https://bugs.chromium.org/p/chromedriver/issues/detail?id=2734 On Thu, 31 Jan, 2019, 11:51 PM Titus Fortner I'm not sure if you got this figured out, this is the best I have as an > answer, though it looks like it mig

Re: [wtr-general] WATIR can be used for AngularJS?

2019-01-31 Thread Titus Fortner
This gem used to be a bigger deal because Watir required attribute values to be defined directly. Now that we've opened this up more, all that you get from watir_angular is to be able to inject the automatic waiting calls that are found in Protractor. This may or may not be useful depending on

[wtr-general] Re: Setting Firefox Download folder

2019-01-31 Thread Titus Fortner
Yeah, I don't think profiles are working ideally in Firefox right now, I'm still investigating some of that right now. You want to pass this in as a `prefs` value: Not asking should be default? So I think it should be this: Watir::Browser.new(:firefox, options: {prefs: {"browser.download.folde

[wtr-general] Re: Error

2019-01-31 Thread Titus Fortner
I'm not sure if you got this figured out, this is the best I have as an answer, though it looks like it might have been headless issue: https://stackoverflow.com/questions/52281367/cache-is-not-initialized-cannot-retrieveentry-error-for-selenium-chromedriver-w On Friday, December 28, 2018 at 6

[wtr-general] Re: What happened to "cheezy"

2019-01-31 Thread Titus Fortner
He's been keeping busy. He changed companies a couple times, and is teaching a BDD workshop in Toronto next month: https://www.industriallogic.com/canada/ He's posted some things here: https://www.linkedin.com/in/jeffmorgan5/detail/recent-activity/ There are probably more conversations going on

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

2019-01-31 Thread Lakshya Kapoor
Since we can't edit our posts, here is a quick update to my answer: Technically, the correct execution order is Around hook > Before hook > Scenario > After hook. -- -- Before posting, please read https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.

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

2019-01-31 Thread Lakshya Kapoor
Also, I would recommend joining the Cucumber channels on Slack (https://cucumber.io/support#slack) if you have more questions. -- -- Before posting, please read https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group. In short: search before you ask, be

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

2019-01-31 Thread Lakshya Kapoor
Sorry, I assumed otherwise because you posted in the Watir group :). I haven't used the Around hook before, so I decided to figure it out and explain it here. Hopefully someone more experienced can chime in if my answer is incomplete or incorrect. So, it appears that the Around hook is specifi

Re: [wtr-general] WATIR can be used for AngularJS?

2019-01-31 Thread rajagopalan madasami
Hi, thank you very much . On Tue, 29 Jan, 2019, 8:45 PM Joe Fleck Hi, > > Yes, there is watir_angular. > > https://github.com/titusfortner/watir_angular > > Joe > > On Tue, Jan 29, 2019, 10:10 AM >> Hi Titus, >> >> Is it possible to automate AngularJs application using WATIR? Any gem is >> avail

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

2019-01-31 Thread Justin Ko
You are correct that #reward_history? calls #exists?. There is no auto-generated method for #present?. It is rather unfortunate. Checking presence is probably more common than checking existence. As a backwards incompatible change, it'll take some time to change. If you want, you could monkey-

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

2019-01-31 Thread NaviHan
I have an element defined as div(:reward_history, :class => 'reward-history-header') The page-object gem generated four methods for this element which are 'reward_history', 'reward_history_element', and 'reward_history?' The fourth method 'reward_history?' check if the element exists in the

Re: [wtr-general] What happened to "cheezy"

2019-01-31 Thread rajagopalan madasami
Why don't you prefer to create your own page object model? Its easy right ? On Thu, 31 Jan, 2019, 4:27 PM NaviHan Just curious , whats Jeff Morgan doing these days? There has been no posts > on his website cheezyworld since March 2017. > Missing his articles on Test Automation. > > Is there anyon

[wtr-general] What happened to "cheezy"

2019-01-31 Thread NaviHan
Just curious , whats Jeff Morgan doing these days? There has been no posts on his website cheezyworld since March 2017. Missing his articles on Test Automation. Is there anyone Automation Gurus we can follow for day to day reading? -- -- Before posting, please read https://github.com/watir/wa