[wtr-general] Re: Trouble undersatnding "Around" hook
Hi Titus/Justin If you could help me here understanding this... Also what is the order in which the before, after and around hooks run. I tried printing the order and as per my experimenatation the order is 1. Around 2. Before & 3. After Some of the articles I read says this order is fluctuating.. Is this true? On Friday, 29 March 2019 16:33:14 UTC+11, NaviHan wrote: > > Im trying to understand how the around hooks work > > Im sorry if the question is very basic. I cant find the implementation of > "Around" in Cucumber API docs as well (checked > > *Cucumber::RbSupport::RbDsl* > in > > *Around **do *|*scenario*, *block*| > > puts *"About to run *#{*scenario*.name} > > *" **block*.call > > puts *"Finished running *#{*scenario*.name} > > *"**end* > > > I was expecting scenario.call instead of block.call > > How does the scenario gets passed to block? > -- -- 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 nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [wtr-general] Re: Action Builder
Hi Justin, Thanks. I am aware of click with modifiers uses action builder under the hood. My requirement is, I am automating a new application in which to choose the option, I need to click the select list and the option would appear like any other select list and the I have to click the option . This is the way selection can be performed . The problem here is I can use WATIR click for select list but then when I click the option using WATIT/SELENIUM click its not choosing the option but If I click that option using action builder then it's choosing the option. Do you have any idea why this happens? And also how does this action builder click differ from selenium click? On Wed, 3 Apr, 2019, 9:45 PM Justin Ko, wrote: > There is nothing directly provided for working with the ActionBuilder. If > you need to call the ActionBuilder, you will need to access the > Selenium::WebDriver and convert the Watir::Element using #wd - eg: > > browser.driver.action.click(your_watir_element.wd).perform > > Note that there are methods that use the ActionBuilder under the covers - > eg #click with modifiers. Ideally we'd write methods for things that need > the ActionBuilder (ie no need to call it directly), so let us know if there > are common methods you need. > > Justin > > > On Wednesday, April 3, 2019 at 2:29:07 AM UTC-4, rajagopal...@gmail.com > wrote: >> >> hi, Is there any WATIR module is defined to use ActionBuilder. For an >> example, How can I do the following code in WATIR? >> >> driver.action.click(element).perform >> >> Any WATIR way of performing the above operation? >> >> -- > -- > 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 nice. > > watir-general@googlegroups.com > http://groups.google.com/group/watir-general > watir-general+unsubscr...@googlegroups.com > --- > You received this message because you are subscribed to the Google Groups > "Watir General" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to watir-general+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- 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 nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[wtr-general] Re: Action Builder
There is nothing directly provided for working with the ActionBuilder. If you need to call the ActionBuilder, you will need to access the Selenium::WebDriver and convert the Watir::Element using #wd - eg: browser.driver.action.click(your_watir_element.wd).perform Note that there are methods that use the ActionBuilder under the covers - eg #click with modifiers. Ideally we'd write methods for things that need the ActionBuilder (ie no need to call it directly), so let us know if there are common methods you need. Justin On Wednesday, April 3, 2019 at 2:29:07 AM UTC-4, rajagopal...@gmail.com wrote: > > hi, Is there any WATIR module is defined to use ActionBuilder. For an > example, How can I do the following code in WATIR? > > driver.action.click(element).perform > > Any WATIR way of performing the above operation? > > -- -- 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 nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.