[wtr-general] Re: Running 2 cucumber feature file in one web session

2017-12-08 Thread 江南
Thanks for your suggestion. I'm testing a website and I have various data to test but I don't want to create duplicate steps in different feature files so I want to do is put the test steps e.g. Login page in one feature file and Account page in another then pull the input data from a

Re: [wtr-general] Browser instance not recognized by other modules

2017-12-08 Thread Chuck van der Linden
On Thursday, December 7, 2017 at 12:19:51 PM UTC-8, Jeff Fagot wrote: > > > So now, I would turn my question in a different angle: why is my Browser > instance @b declared in my *** ENVR.RB *** file known to my *** STEPDEF.RB > *** file? > Does it mean that Modules or Class are segregated from

[wtr-general] Re: Chrome Headless Browser

2017-12-08 Thread Chuck van der Linden
On Friday, December 8, 2017 at 9:14:42 AM UTC-8, 江南 wrote: > > Hi, > > I have tried the code below but my script just keep loading then I get > this message: Net::ReadTimeout: Net::ReadTimeout > > @browser = Watir::Browser.new :chrome, headless: true > @browser.goto "www.google.com" > > Can

[wtr-general] Re: Running 2 cucumber feature file in one web session

2017-12-08 Thread Chuck van der Linden
On Friday, December 8, 2017 at 1:54:15 AM UTC-8, 江南 wrote: > > Thanks for your suggestion. > > I'm testing a website and I have various data to test but I don't want to > create duplicate steps in different feature files so I want to do is put > the test steps e.g. Login page in one feature

Re: [wtr-general] Browser instance not recognized by other modules

2017-12-08 Thread Chuck van der Linden
On Thursday, December 7, 2017 at 12:19:51 PM UTC-8, Jeff Fagot wrote: > > Did not get a chance to dive into creating my first Class but I will do > asap. > I quite understand the concept of the Page Object (I will still need > practice to get to the understanding of where exactly should I use it

[wtr-general] Chrome Headless Browser

2017-12-08 Thread 江南
Hi, I have tried the code below but my script just keep loading then I get this message: Net::ReadTimeout: Net::ReadTimeout @browser = Watir::Browser.new :chrome, headless: true @browser.goto "www.google.com" Can someone tell me am I missing something? Thanks -- -- Before posting, please

[wtr-general] Re: Running 2 cucumber feature file in one web session

2017-12-08 Thread Chuck van der Linden
one other thing (see below On Friday, December 8, 2017 at 1:54:15 AM UTC-8, 江南 wrote: > > Thanks for your suggestion. > > I'm testing a website and I have various data to test but I don't want to > create duplicate steps in different feature files so I want to do is put > the test steps e.g.

[wtr-general] Re: Chrome Headless Browser

2017-12-08 Thread rajagopalanmadasami
This error is due to timeout for pageload, timeout to load the page was set to 60 seconds, Is your browser taking more than 60 seconds to load the google? On Friday, December 8, 2017 at 10:44:42 PM UTC+5:30, 江南 wrote: > > Hi, > > I have tried the code below but my script just keep loading then

Re: [wtr-general] Browser instance not recognized by other modules

2017-12-08 Thread Jeff Fagot
I appreciate all your comments Chuck. AS you suggested I looked at Test Factory gem and you were right, it gives good nice view of how objects can be like. => I feel like I get the Object usage knowing I'll need practice to master it. I am still undecided on whether or not I will continue with