Re: [wtr-general] Re: can you run the scripts on Win10\ chrome? Used to be working a while ago

2018-06-28 Thread c w
This is the error

c:\automation>ruby try.rb
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/common/service.rb:142:in
`connect_until_stable': unable to connect to chromedriver 127.0.0.1:9515
(Selenium::WebDriver::Error::WebDriverError)
from
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/common/service.rb:72:in
`block in start'
from
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/common/socket_lock.rb:39:in
`locked'
from
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/common/service.rb:69:in
`start'
from
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/chrome/driver.rb:43:in
`initialize'
from
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/common/driver.rb:44:in
`new'
from
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/common/driver.rb:44:in
`for'
from
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver.rb:86:in
`for'
from
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/watir-6.11.0/lib/watir/browser.rb:48:in
`initialize'
from try.rb:7:in `new'
from try.rb:7:in `'

On Thu, Jun 28, 2018 at 8:46 AM, c w  wrote:

> Please tell me what ruby version you use.
>
> I upgraded the webdriver well all gems but I still get the error.
>
> I have no idea what to do in order to run on chrome.
>
> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.
> 13.0/lib/selenium/webdriver/common/service.rb:142:in
> `connect_until_stable': unable to connect to chromedriver 127.0.0.1:9515
> (Selenium::WebDriver::Error::WebDriverError)
> from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.
> 13.0/lib/selenium/webdriver/common/service.rb:72:in `block in start'
> from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.
> 13.0/lib/selenium/webdriver/common/socket_lock.rb:39:in `locked'
> from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.
> 13.0/lib/selenium/webdriver/common/service.rb:69:in `start'
>
> On Thu, Jun 28, 2018 at 1:36 AM, Justin Ko  wrote:
>
>> The question regarding Chrom is still valid. Can anyone drive the chrome
>>> and goto an url on win 10?
>>>
>>
>> Chrome works for me on Windows 10 Pro using:
>> - Watir 6.11
>> - Selenium-WebDriver 3.13
>> - Chrome 67
>> - Chromedriver 2.4
>>
>> Justin
>>
>> --
>> --
>> 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.


Re: [wtr-general] Re: can you run the scripts on Win10\ chrome? Used to be working a while ago

2018-06-28 Thread c w
Please tell me what ruby version you use.

I upgraded the webdriver well all gems but I still get the error.

I have no idea what to do in order to run on chrome.

C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/common/service.rb:142:in
`connect_until_stable': unable to connect to chromedriver 127.0.0.1:9515
(Selenium::WebDriver::Error::WebDriverError)
from
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/common/service.rb:72:in
`block in start'
from
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/common/socket_lock.rb:39:in
`locked'
from
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/common/service.rb:69:in
`start'

On Thu, Jun 28, 2018 at 1:36 AM, Justin Ko  wrote:

> The question regarding Chrom is still valid. Can anyone drive the chrome
>> and goto an url on win 10?
>>
>
> Chrome works for me on Windows 10 Pro using:
> - Watir 6.11
> - Selenium-WebDriver 3.13
> - Chrome 67
> - Chromedriver 2.4
>
> Justin
>
> --
> --
> 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.


Re: [wtr-general] Re: can you run the scripts on Win10\ chrome? Used to be working a while ago

2018-06-26 Thread c w
Excellent! Thank you! I made it working.


The question regarding Chrom is still valid. Can anyone drive the chrome
and goto an url on win 10?

On Mon, Jun 25, 2018 at 3:49 PM, rajagopalan madasami <
rajagopalanmadas...@gmail.com> wrote:

> This means your element is not visible.
>
> On Tue 26 Jun, 2018, 1:17 AM c w,  wrote:
>
>> The problem is that I cannot move forward as I get this error
>>
>> element located, but timed out after 30 seconds, waiting for
>> #"//*[@id=\"Given_Names\"]",
>> :tag_name=>"a"}> to be present (Watir::Exception::UnknownObjectException)
>>   ./features/support/pages/peopleDependentBeneficiaryPage.rb:31:in
>> `set_dep_given_namesz'
>>
>>
>> Because of this I was thinking to try another browser...
>>
>> And advise is greatly appreciated!
>>
>> On Mon, Jun 25, 2018 at 3:20 PM, c w  wrote:
>>
>>> Hi all,
>>>
>>> I try to use chrome instead of firefox,
>>> but I am getting
>>>
>>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.
>>> 12.0/lib/selenium/webdriver/common/service.rb:142:in
>>> `connect_until_stable': unable to connect to chromedriver 127.0.0.1:9515
>>> (Selenium::WebDriver::Error::WebDriverError)
>>> from
>>>
>>>
>>>
>>> I try to use this basic try,rb  test file for fast testing. In firefox
>>> works but is not in Chrome.
>>>
>>> ruby try.rb
>>>
>>>
>>> require 'watir'
>>> require 'webdrivers'
>>>
>>>  #@browser = Watir::Browser.new :firefox
>>>   @browser =  Watir::Browser.new :chrome
>>>
>>>   @browser.goto "https://www.google.com/;
>>>
>>>
>>> I am using Win 10
>>> My browser version is :
>>> Version 67.0.3396.99 (
>>> and I use chrome driver 2.40
>>>
>>> I have it on class path as well I use the gem webdrivers.
>>>
>>> So can you run the scripts on Win 10 on chrome?
>>>
>>>
>>> Thank you!
>>>
>>>
>>>
>> --
>> --
>> 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.
>

-- 
-- 
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: can you run the scripts on Win10\ chrome? Used to be working a while ago

2018-06-25 Thread c w
The problem is that I cannot move forward as I get this error

element located, but timed out after 30 seconds, waiting for
#"//*[@id=\"Given_Names\"]",
:tag_name=>"a"}> to be present (Watir::Exception::UnknownObjectException)
  ./features/support/pages/peopleDependentBeneficiaryPage.rb:31:in
`set_dep_given_namesz'


Because of this I was thinking to try another browser...

And advise is greatly appreciated!

On Mon, Jun 25, 2018 at 3:20 PM, c w  wrote:

> Hi all,
>
> I try to use chrome instead of firefox,
> but I am getting
>
> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.
> 12.0/lib/selenium/webdriver/common/service.rb:142:in
> `connect_until_stable': unable to connect to chromedriver 127.0.0.1:9515
> (Selenium::WebDriver::Error::WebDriverError)
> from
>
>
>
> I try to use this basic try,rb  test file for fast testing. In firefox
> works but is not in Chrome.
>
> ruby try.rb
>
>
> require 'watir'
> require 'webdrivers'
>
>  #@browser = Watir::Browser.new :firefox
>   @browser =  Watir::Browser.new :chrome
>
>   @browser.goto "https://www.google.com/;
>
>
> I am using Win 10
> My browser version is :
> Version 67.0.3396.99 (
> and I use chrome driver 2.40
>
> I have it on class path as well I use the gem webdrivers.
>
> So can you run the scripts on Win 10 on chrome?
>
>
> Thank you!
>
>
>

-- 
-- 
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] can you run the scripts on Win10\ chrome? Used to be working a while ago

2018-06-25 Thread c w
Hi all,

I try to use chrome instead of firefox,
but I am getting

C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.12.0/lib/selenium/webdriver/common/service.rb:142:in
`connect_until_stable': unable to connect to chromedriver 127.0.0.1:9515
(Selenium::WebDriver::Error::WebDriverError)
from



I try to use this basic try,rb  test file for fast testing. In firefox
works but is not in Chrome.

ruby try.rb


require 'watir'
require 'webdrivers'

 #@browser = Watir::Browser.new :firefox
  @browser =  Watir::Browser.new :chrome

  @browser.goto "https://www.google.com/;


I am using Win 10
My browser version is :
Version 67.0.3396.99 (
and I use chrome driver 2.40

I have it on class path as well I use the gem webdrivers.

So can you run the scripts on Win 10 on chrome?


Thank you!

-- 
-- 
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: how can I click an

2018-06-25 Thread c w
Happy week all!


Thank you!

1. If I use:  is not working

@browser.a(id: "Employee_ID").click!

  timed out after 30 seconds, waiting for true condition on
#"//*[@id=\"infotab_11\"]/table/tbody/tr[3]/td[2]/span/div/form/div/div[1]/div[1]/input",
:tag_name=>"input"}> (Watir::Wait::TimeoutError)
  ./features/support/pages/peopleAdminPage.rb:35:in `set_given_names'
  ./features/support/pages/peopleAdminPage.rb:225:in `add_employee'
  ./features/step_definitions/adminPeopleSteps.rb:17:in `/^I add an
employee$/'
  features/features/qaeeAddEEAndDep.feature:20:in `Then I add an
employee'


2. If I use xpath is working


@browser.link(:xpath, '//*[@id="Employee_ID"]').click!
or
@browser.link(:xpath, '//*[@id="Employee_ID"]').click



So I go with xpath.


Please tell me if there is any difference between click and click!

or it doesn't matter what we use.

Thank you!


On Fri, Jun 22, 2018 at 8:20 PM, Justin Ko  wrote:

> @rajagopalan, I don't know enough about the internal workings of
> JavaScript or Webdriver to be sure. But my guess would be:
>
>- Browsers do not fully support click events for  elements -
>eg https://stackoverflow.com/q/3487263/1200545
>- As a result WebDriver has defined special logic simulating a click,
>which includes interacting with the select element - see definition
>https://www.w3.org/TR/webdriver/#element-click
><https://www.w3.org/TR/webdriver/#element-click>
>
> Justin
>
>
> On Friday, June 22, 2018 at 3:39:05 PM UTC-4, rajagopalan madasami wrote:
>>
>> Hi Justin, have you ever try to click option using JavaScript click, it
>> is not choosing as selenium click towards the option would choose the
>> option . But button click remain the same for both, do know why it is ?
>>
>> On 23-Jun-2018 1:06 AM, "Justin Ko"  wrote:
>>
>> Do you try using the :id locator? It looks like you might have crossed
>> your attributes/values - ie the attempts are checking the "fielddisplayname"
>> attribute, but looking for the id value.
>>
>> Try:
>>
>> @browser.a(id: "Employee_ID").click
>>
>> If #click isn't working, you could also try #click!
>>
>> @browser.a(id: "Employee_ID").click!
>>
>> - Justin
>>
>>
>> On Friday, June 22, 2018 at 12:36:22 PM UTC-4, christina wrote:
>>
>>> Is not ok because all other attributes have the same link.
>>>
>>> I have to identify in a unique way.
>>>
>>> Please let me know how Thank you!
>>>
>>> On Fri, Jun 22, 2018 at 11:31 AM, c w  wrote:
>>>
>>>> That worked:
>>>>
>>>> @browser.link(:class, "peoplefield editable editable-click
>>>> editable-empty").fire_event:click
>>>>
>>>>
>>>>
>>>> -- Forwarded message --
>>>> From: c w 
>>>> Date: Fri, Jun 22, 2018 at 11:03 AM
>>>> Subject: how can I click an >>> go on edit mode for a field
>>>> To: watir-...@googlegroups.com
>>>>
>>>>
>>>>
>>>> Hi all,
>>>>
>>>> Please help me and Thank you!
>>>> In order to edit these attribute I have to click on the "empty" which
>>>> is a javascript:;
>>>>
>>>> Please can one tell me how can I click on the Employee_id field to
>>>> edit...
>>>> If I will be able to do this tho others should be similar.
>>>>
>>>> I have try few things but these are not working:
>>>> @browser.a(fielddisplayname: "Employee_ID").click
>>>>   @browser.a(fielddisplayname: "Employee_ID").fire_event:click
>>>>   @browser.a(:class, ' peoplefield editable editable-click
>>>> editable-empty').click
>>>>
>>>>   @browser.a(fielddisplayname: "Employee_ID").fire_event('onclick')
>>>> @browser.link(:xpath, "//a[@onclick='javascript:;']").click
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>> --
>> --
>> 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-...@googlegroups.com
>> http://groups.google.com/group/watir-general
>> watir-genera...@googlegroups.com
>> ---
>> You received this mess

[wtr-general]

2018-06-15 Thread c w
Hi all,


I have to automate something like
1. i have to go and login to an admin portal and read is a configurator
lets say
profile page is on
2. after this i have to go and login to the client url and check if the
profile page shows and check other stuff
3. go back to the admin url and id the profile was on i have to uncheck it,
save
4. i have to go back to the client url and check if the profile page is no
longer visible


What would be the correct approach to move back and forth to these 2 url
and do stuff.

-- 
-- 
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] text include assertion

2018-06-13 Thread c w
Hi all!

This should be so simple but not sure why it fails.

I have this

@browser.text.include? "English"


and it returns fals. This is correct. Can one help me how do I do an
assertion to pass or fail?

I try:


expect(@browser.text.include?("English")).to be false



But at run I get
 Then English French Language Option should not show
  undefined method `expect' for #
  Did you mean?  exec (NoMethodError)
  ./features/support/pages/loginClientPage.rb:13:in
`login_language_option_not_exist'
  ./features/step_definitions/clientSteps.rb:13:in `/^English French
Language Option should not show$/'
  features/features/client.feature:6:in `Then English French Language
Option should not show'

Thank you!

-- 
-- 
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] can we use watir for automation native mobile\desktop apps

2018-03-29 Thread c w
Hi all,

I went to an interview and their apps are native on mobile and desktop.

This is new to me and I am asking here the experts if can we use the
watir for automating the testing.

Please any advise, links in this regards are so appreciated.

-- 
-- 
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] Can we use Watir for cloud based web applications testing?

2018-03-26 Thread c w
I found this information and I want to share.

https://dzone.com/articles/cloud-test-automation-using-selenium

On Wed, Mar 13, 2013 at 12:52 PM, Chuck van der Linden <
cvanderlin...@climate.com> wrote:

> On Tuesday, March 12, 2013 4:16:36 AM UTC-7, Željko Filipin wrote:
>
>> On Tue, Mar 12, 2013 at 12:13 PM, Amit Kumar  wrote:
>> > I meant cloud based application, which will be run on cloud.
>> > Actually, I do not have that knowledge about cloud computing.
>>
>> What do you mean by "cloud"?
>>
>> Do you have a problem to solve, or are you just curious?
>>
>> Željko
>>
>
> I saw a tweet yesterday from someone at south by southwest that might
> explain this.  "cloud is what hipsters call the internet"
>
> --
> --
> Before posting, please read http://watir.com/support. 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/groups/opt_out.
>
>
>

-- 
-- 
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] can we use watir to automate angular applications

2018-03-07 Thread c w
Thank you so much! I truly appreciate all just in time help.

Have a very nice day and we will be in touch here!


On Wed, Mar 7, 2018 at 9:29 AM, Titus Fortner <titusfort...@gmail.com>
wrote:

> Watir is a great choice for automating responsive applications because
> it handles much of the synchronization for you.
>
> We're still working on improving our content, but the basic guides can
> be found here: http://watir.com/guides/
>
> There is an add-on gem specifically for angular applications:
> https://github.com/titusfortner/watir_angular
> It gives you more direct locators for angular elements and access to
> the same waiting scripts that Google uses in Protractor, without
> having to use Protractor.
>
> On Wed, Mar 7, 2018 at 8:51 AM, rajagopalan madasami
> <rajagopalanmadas...@gmail.com> wrote:
> > We automated once, but I don't know whether any specific api support
> WATIR
> > is giving
> >
> > On 07-Mar-2018 7:20 PM, "c w" <cristina.wa...@gmail.com> wrote:
> >>
> >> Hi all!
> >>
> >>
> >> Please let me know if we can use watir to automate angular
> applications...
> >> and responsive applications
> >>
> >> Please let me know if there are any new books on the market, links with
> >> tutorials anything.
> >>
> >> Thank you so much
> >>
> >> --
> >> --
> >> 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.
>
> --
> --
> 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] can we use watir to automate angular applications

2018-03-07 Thread c w
Hi all!


Please let me know if we can use watir to automate angular applications...
and responsive applications

Please let me know if there are any new books on the market, links with
tutorials anything.

Thank you so much

-- 
-- 
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] Help with how to access an element with this xpath

2017-06-08 Thread c w
I am looking for a shorter xpath
like
@browser.element(:css =>
'.lwc-editIcon.ng-scope.ng-isolate-scope').wait_until_present.flash
@browser.element(:css => 'lwc-editIcon.ng-scope.ng-isolate-scope').click



or

@browser.element(:xpath, '//lwc-editIcon').wait_until_present.flash

but these are not working.

And I am not sure if we can access a custom tag like md-icon'

Can we do this?


On Thu, Jun 8, 2017 at 12:23 AM, Raja gopalan <rajagopalanib...@gmail.com>
wrote:

> b.element(xpath: "placeyourxpathhere").click
>
> On Jun 8, 2017 1:45 AM, "c w" <cristina.wa...@gmail.com> wrote:
>
>> Hi,
>>
>> I need your help.
>>
>> Can one advise me how I can access the element that has the following
>> xpath into my angular app.
>>
>> /html/body[@class='lwc']/div[@class='lwc-app
>> ng-scope']/div[@class='lwc-content ng-scope']/div[@class='lyt-fullHeight
>> lyt-appMinWidth ng-scope']/section[@class='lwc-webMarketing
>> lyt-fullHeight lwc-hasSubHeader ng-scope']/div[@class='lyt-fullHeight
>> ng-scope']/div[@class='lyt-fullHeight']/lwc-scroll-container[@class='lyt-landingPageScroll
>> lwc-contentScroll lwc-pageScroll']/div[@class='l
>> wc-ScrollContainer']/div[@class='lwc-scroll']/lwc-layout-
>> container[@class='lwc-webMarketingLayout lwc-landingPageContent
>> ng-scope']/div[@class='lwc-LayoutContainer 
>> lyt-fullHeight']/div[@class='lwc-centerContainer
>> lyt-fullHeight']/section[@class='lwc-contentList lyt-fullHeight
>> ng-scope']/lwc-content-list[@class='lyt-fullWidth
>> ng-isolate-scope']/section[@class='lwc-ContentList']/lwc-swi
>> m-lane[@id='swimLane0']/div[@class='lwc-SwimLane
>> expanded']/div[@class='lwc-contentContainer']/div[@class='lwc-swimLaneItem
>> ng-scope']/lwc-swim-lane-tile[@class='ng-isolate-scope']/div[@class='lwc-SwimLaneTile
>> lwc-itemTile ui-draggable-disabled ui-draggable-handle']/div[@cla
>> ss='lwc-overlay']/div[@class='lwc-controls']/div[2]/md-icon[@class='lwc-editIcon
>> ng-scope ng-isolate-scope']
>>
>>
>>
>> Kind regards,
>> Cristina
>>
>> --
>> --
>> Before posting, please read http://watir.com/support. 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 http://watir.com/support. 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 http://watir.com/support. 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] Help with how to access an element with this xpath

2017-06-07 Thread c w
Hi,

I need your help.

Can one advise me how I can access the element that has the following xpath
into my angular app.

/html/body[@class='lwc']/div[@class='lwc-app
ng-scope']/div[@class='lwc-content ng-scope']/div[@class='lyt-fullHeight
lyt-appMinWidth ng-scope']/section[@class='lwc-webMarketing lyt-fullHeight
lwc-hasSubHeader ng-scope']/div[@class='lyt-fullHeight
ng-scope']/div[@class='lyt-fullHeight']/lwc-scroll-container[@class='lyt-landingPageScroll
lwc-contentScroll
lwc-pageScroll']/div[@class='lwc-ScrollContainer']/div[@class='lwc-scroll']/lwc-layout-container[@class='lwc-webMarketingLayout
lwc-landingPageContent ng-scope']/div[@class='lwc-LayoutContainer
lyt-fullHeight']/div[@class='lwc-centerContainer
lyt-fullHeight']/section[@class='lwc-contentList lyt-fullHeight
ng-scope']/lwc-content-list[@class='lyt-fullWidth
ng-isolate-scope']/section[@class='lwc-ContentList']/lwc-swim-lane[@id='swimLane0']/div[@class='lwc-SwimLane
expanded']/div[@class='lwc-contentContainer']/div[@class='lwc-swimLaneItem
ng-scope']/lwc-swim-lane-tile[@class='ng-isolate-scope']/div[@class='lwc-SwimLaneTile
lwc-itemTile ui-draggable-disabled
ui-draggable-handle']/div[@class='lwc-overlay']/div[@class='lwc-controls']/div[2]/md-icon[@class='lwc-editIcon
ng-scope ng-isolate-scope']



Kind regards,
Cristina

-- 
-- 
Before posting, please read http://watir.com/support. 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: Mobile automation

2017-05-03 Thread c w
And I see on
http://stackoverflow.com/questions/14501503/mobile-app-testing-in-watir

"including browsers on mobile devices"


Can one tell me exactly where I can find step by step the
documentation\book[to buy or ?? to find] of doing this.

On Wed, May 3, 2017 at 10:54 AM, c w <cristina.wa...@gmail.com> wrote:

> Hi all!
>
>
> I am interested in automation testing on mobiles: android and IOS.
>
> And what should I use.
> As I start researching and this will help me to move in the right
> direction.
>
> Can we use watir? Do we have any books I can buy and learn?
> Or please email me how to start on this.
>
>
> I appreciate this a lot. Have a wonderful day!
>
> Kind regards,
> Cristina
>
>
>

-- 
-- 
Before posting, please read http://watir.com/support. 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] Mobile automation

2017-05-03 Thread c w
Hi all!


I am interested in automation testing on mobiles: android and IOS.

And what should I use.
As I start researching and this will help me to move in the right direction.

Can we use watir? Do we have any books I can buy and learn?
Or please email me how to start on this.


I appreciate this a lot. Have a wonderful day!

Kind regards,
Cristina

-- 
-- 
Before posting, please read http://watir.com/support. 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: how to resize browser to different sizes or to maximize

2017-05-02 Thread c w
Do you know if the ruby version matter?



ruby 2.3.3p22 (2016-11-21 revision 56859) [x64-mingw32]


Please can you double check what ruby version you have.

On Tue, May 2, 2017 at 10:00 AM, Raja gopalan 
wrote:

>
> hi,
>
> The below code is working for me in Firefox!
>
> @browser.driver.manage.window.maximize
> @browser.driver.manage.window.resize_to(900,900)
>
> require 'watir' is enough now, require 'watir-webdriver' is not necessary
> now. The recent watir is not a meta gem which doesn't choose betwen
> watir-classic and watir-webdriver, it's lies on selenium-webdriver
> completely.
>
>
>
> On Tuesday, May 2, 2017 at 6:56:21 PM UTC+5:30, christina wrote:
>>
>> I believe that the problem comes for what package should I require.
>>
>> I use only
>> require "watir"
>>
>> I get an error where the window is not defined.
>>
>> Do you know what other packages should I require?
>>
>>
>> A few years ago we used to use:
>> require 'watir-webdriver'
>>
>>
>> I am still confused about changes.
>>
>>
>> [image: Inline image 1]
>>
>> On Tue, May 2, 2017 at 2:11 AM, Paul Denize  wrote:
>>
>>>  This should work
>>>
>>> @browser.driver.window.maximize
>>> @browser.driver.window.resize_to(900,900)
>>>
>>>
>>> --
>>> --
>>> Before posting, please read http://watir.com/support. In short: search
>>> before you ask, be nice.
>>>
>>> watir-...@googlegroups.com
>>> http://groups.google.com/group/watir-general
>>> watir-genera...@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-genera...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> --
> Before posting, please read http://watir.com/support. 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 http://watir.com/support. 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: how to resize browser to different sizes or to maximize

2017-05-02 Thread c w
I believe that the problem comes for what package should I require.

I use only
require "watir"

I get an error where the window is not defined.

Do you know what other packages should I require?


A few years ago we used to use:
require 'watir-webdriver'


I am still confused about changes.


[image: Inline image 1]

On Tue, May 2, 2017 at 2:11 AM, Paul Denize  wrote:

>  This should work
>
> @browser.driver.window.maximize
> @browser.driver.window.resize_to(900,900)
>
>
> --
> --
> Before posting, please read http://watir.com/support. 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 http://watir.com/support. 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] how to resize browser to different sizes or to maximize

2017-05-01 Thread c w
Windows 7
Chrome Version 57.0.2987.133 (64-bit)

I am using the latest chrome driver
*ChromeDriver 2.29
*

[image: Inline image 1]



On Mon, May 1, 2017 at 11:04 AM, Titus Fortner 
wrote:

> Which operating system are you running on? Browser version & driver
> version?
>
> --
> --
> Before posting, please read http://watir.com/support. 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 http://watir.com/support. 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] how to resize browser to different sizes or to maximize

2017-05-01 Thread c w
Hi ! I need tour help!

I use a code used to be working but with all changes it looks like is no
longer working.

I try to goole but I haven't find the answer.

I use testgen framework and really doesn't mateer. It looks like I cannot
resize the browser window to different sizez or even to maximize.

Please can one tell me what has been changed and what I should update. I
have no idea where the driver resides now.

I use this



require 'watir'
require "rubygems"

Before do
  @browser = Watir::Browser.new :chrome
puts "."
 #have to find out how to maximize the browser - it looks like the old way
no longer working
 #@browser.window.maximize   #this used to be working

@browser.driver.manage().window().maximize   # no longer working
@browser.driver.manage.window.resize_to(900,900)# not working


end

-- 
-- 
Before posting, please read http://watir.com/support. 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] angular login

2017-02-03 Thread c w
Hi all!


Please can one tell me how do i fill in the email and password when te
application is angular based



I try to use this


#this is from cucumber and cheese
require 'rubygems'
require 'watir-ng'


@browser = Selenium::WebDriver.for :chrome
@browser.navigate.to  "https://apps.vizlly.com/dms-angular/#/login;
sleep 3
@browser.text_field(:id => 'email').flash

@browser.text_field(:id => 'email').set('em...@email.com')



But I can load the page but I can't write into the text fields.
Can we access elements using model or the way protractor does?

This is the application link

https://apps.vizlly.com/dms-angular/#/login


I do appreciate.
I try to see if I can move to watir vs protractor.


Kind regards and I appreciate a lot your time!
Cristina

-- 
-- 
Before posting, please read http://watir.com/support. 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] Using Watirt test mobile websites

2017-01-26 Thread c w
Hi all!


I need your advise in what can we use to test the websites not only on
desktop but on mobile:  smartphones and android phones and tablets..

Please advise and let me know any material that I can read\buy.


Kind regards,
Cristina

-- 
-- 
Before posting, please read http://watir.com/support. 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] watir example fails

2017-01-06 Thread c w
Hi,

I am a bit frustrated as this used to be working few years ago. I try again
as I intend to try to use back watir and I have no idea why starting with
the second element scripts are failing on the watir example


Just run this:

require 'rubygems'
require 'watir'


driver = Selenium::WebDriver.for :chrome
@browser = Watir::Browser.new driver

@browser.goto 'http://bit.ly/watir-example'
@browser.text_field(:name => "entry.100").set 'Watir'
sleep 3
@browser.text_field(:name => "entry.101").set 'Watir'


I get the following:

c:\watir>ruby watir.rb
This code has slept for the duration of the default timeout waiting for an
Eleme
nt to exist. If the test is still passing, consider using Element#exists?
instea
d of rescuing UnknownObjectException
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/watir-6.1.0/lib/watir/elements/element.rb
:507:in `rescue in wait_for_exists': timed out after 30 seconds, waiting
for {:n
ame=>"entry.101", :tag_name=>"input"} to be located
(Watir::Exception::Unkno
wnObjectException)
from
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/watir-6.1.0/lib/watir/elemen
ts/element.rb:497:in `wait_for_exists'
from
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/watir-6.1.0/lib/watir/elemen
ts/element.rb:515:in `wait_for_present'
from
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/watir-6.1.0/lib/watir/elemen
ts/element.rb:533:in `wait_for_enabled'
from
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/watir-6.1.0/lib/watir/elemen
ts/element.rb:545:in `wait_for_writable'
from
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/watir-6.1.0/lib/watir/elemen
ts/element.rb:656:in `element_call'
from
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/watir-6.1.0/lib/watir/user_e
ditable.rb:11:in `set'
from watir.rb:18:in `'




I just installed the latest version of ruby Ruby23-x64

It fails if I remove the sleep as well.

>From the example only the first text field works.

Please advise.


Kind regards,
Cristina

-- 
-- 
Before posting, please read http://watir.com/support. 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: what is the chromedriver version compatible with chrome Version 55.0.2883.87 m (64-bit)

2017-01-04 Thread c w
Never mind!
I found it !

Thanks!

On Wed, Jan 4, 2017 at 4:24 PM, c w <cristina.wa...@gmail.com> wrote:

> Hi!
>
> I try to make all the enviroment working on my windows 7 pc.
>
> I have chrome
> Version 55.0.2883.87 m (64-bit)
>
>
> Does anyone know what chromedriver version should I use?
>
> Because using chrome I am getting
>
> "No connection could be made because the target machine actively refused
> it. - connect(2) for "127.0.0.1" port 9515 (Errno::ECONNREFUSED)"
>
>
> Thank you in advance!
> Cristina
>

-- 
-- 
Before posting, please read http://watir.com/support. 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] what is the chromedriver version compatible with chrome Version 55.0.2883.87 m (64-bit)

2017-01-04 Thread c w
Hi!

I try to make all the enviroment working on my windows 7 pc.

I have chrome
Version 55.0.2883.87 m (64-bit)


Does anyone know what chromedriver version should I use?

Because using chrome I am getting

"No connection could be made because the target machine actively refused
it. - connect(2) for "127.0.0.1" port 9515 (Errno::ECONNREFUSED)"


Thank you in advance!
Cristina

-- 
-- 
Before posting, please read http://watir.com/support. 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] how to click some hden menu elements

2015-09-15 Thread c w
Hi!

Can one help me. I have to select the elements from the ""..." menu and it
looks doesnt work.

1. go to http://www.granville.vfmltest.com/en/
2. maximize the browser to full screen

[image: Inline image 1]

For instance I want to select Reviews.

I try to click on "..." first but not sure why doesn't work

@dotMenu = @b.div(@class => 'main-nav-container').li(@class => 'navtab
hidden-menu-button')


And for review I Try using

@reviewsPage = @b.a(:xpath, "//a[contains(@href, 'reviews.html')]")

But it looks like they are not correct

def clickReviews
@dotMenu.flash
@dotMenu.click
   @reviewsPage.click
end

-- 
-- 
Before posting, please read http://watir.com/support. 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: how to click some hden menu elements

2015-09-15 Thread c w
Thank you but I found what was wrong!


On Tue, Sep 15, 2015 at 2:40 PM, c w <cristina.wa...@gmail.com> wrote:

> Hi!
>
> Can one help me. I have to select the elements from the ""..." menu and it
> looks doesnt work.
>
> 1. go to http://www.granville.vfmltest.com/en/
> 2. maximize the browser to full screen
>
> [image: Inline image 1]
>
> For instance I want to select Reviews.
>
> I try to click on "..." first but not sure why doesn't work
>
> @dotMenu = @b.div(@class => 'main-nav-container').li(@class => 'navtab
> hidden-menu-button')
>
>
> And for review I Try using
>
> @reviewsPage = @b.a(:xpath, "//a[contains(@href, 'reviews.html')]")
>
> But it looks like they are not correct
>
> def clickReviews
> @dotMenu.flash
> @dotMenu.click
>@reviewsPage.click
> end
>

-- 
-- 
Before posting, please read http://watir.com/support. 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] a human-friendly tool for testing and reviewing visual regressions.

2015-08-20 Thread c w
Hi all,

had anyoane know what can we user for
a human-friendly tool for testing and reviewing visual regressions.

Like comaring the screen snapshots.

There is any ruby gem doing this?

Kind regards,
~Cristina

-- 
-- 
Before posting, please read http://watir.com/support. 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] how to read the meta content

2014-12-16 Thread c w
Hi,

meta name=description content=this is variable

Hi Please can one help me an tell how can I read the Content

for meta tag.


I have to check many websites and check that the seo has a specific value.

Kind regards,
Cristina

-- 
-- 
Before posting, please read http://watir.com/support. 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] how to click on this hidden drop down menu

2014-12-05 Thread c w
Hi Joe,

is not working. I am getting the following
'
@browser.a(:href='location.html')

returns

   undefined method `a' for nil:NilClass (NoMethodError)
  ./features/support/pages/WebsitePage.rb:49:in `click_location'
  ./features/step_definitions/vizlly_steps.rb:31:in `/^click on
Location$/'
  features\web.feature:11:in `And click on Location'

Failing Scenarios:




On Fri, Dec 5, 2014 at 11:59 AM, Joe Fleck joeflec...@gmail.com wrote:

 Hi Cristina,

 did you try these?

 browser.a(:title='Location')

 or

 browser.a(:href='location.html')

 Joe

 On Fri, Dec 5, 2014 at 9:12 AM, c w cristina.wa...@gmail.com wrote:

 Hi,

 please check the attached file. Can one tell me how can I click on the
 a href=location.html

 I need to be able to click it not using text because when language
 changes the text will change.


 Kind regards,
 Cristina

 --
 --
 Before posting, please read http://watir.com/support. 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 http://watir.com/support. 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 http://watir.com/support. 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] how to click on this hidden drop down menu

2014-12-05 Thread c w
Right,

but still I get this

cristina| cristinadumitrescu.vizllyhoteldemo.com/home.html?nocache |
  unable to locate element, using {:href=location.html,
:tag_name=a} (Watir::Exception::UnknownObjectException)
  ./features/support/pages/WebsitePage.rb:58:in `click_location'
  ./features/step_definitions/vizlly_steps.rb:31:in `/^click on
Location$/'
  features\web.feature:11:in `And click on Location'

Failing Scenarios:

On Fri, Dec 5, 2014 at 1:40 PM, c w cristina.wa...@gmail.com wrote:

 Hi Joe,

 is not working. I am getting the following
 '
 @browser.a(:href='location.html')

 returns

undefined method `a' for nil:NilClass (NoMethodError)
   ./features/support/pages/WebsitePage.rb:49:in `click_location'
   ./features/step_definitions/vizlly_steps.rb:31:in `/^click on
 Location$/'
   features\web.feature:11:in `And click on Location'

 Failing Scenarios:




 On Fri, Dec 5, 2014 at 11:59 AM, Joe Fleck joeflec...@gmail.com wrote:

 Hi Cristina,

 did you try these?

 browser.a(:title='Location')

 or

 browser.a(:href='location.html')

 Joe

 On Fri, Dec 5, 2014 at 9:12 AM, c w cristina.wa...@gmail.com wrote:

 Hi,

 please check the attached file. Can one tell me how can I click on the
 a href=location.html

 I need to be able to click it not using text because when language
 changes the text will change.


 Kind regards,
 Cristina

 --
 --
 Before posting, please read http://watir.com/support. 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 http://watir.com/support. 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 http://watir.com/support. 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] Catch Javascript Errors on the Page with Watir

2014-12-01 Thread c w
Hi all,

I am looking on how to catch java script errors on a page, click etc using
watir

Can we do that?
Please advise me, any helpfull link where I can learn how to do that?

Kind regards,
Cristina

-- 
-- 
Before posting, please read http://watir.com/support. 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] watir cucumber

2014-10-22 Thread c w
Hi I have a question.

I am using testgen gem and created the project and i get the
hooks.rb which contains


require 'watir-webdriver'


Before do
  @browser = Watir::Browser.new :firefox

end


After do
  @browser.close
end


No I have no idea what i have to do to not use it. I want to run all
scenarios on the same browser.

Can one help me and telling me what do I have to do?


Kind reards,
Cristina

-- 
-- 
Before posting, please read http://watir.com/support. 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] How to select heading[s]

2014-10-20 Thread c w
Hi,

please can one advise me on what I am doing wrong.

I try to click on any header elements[I want to select one for instance]. I
have asked the dev to add for me name= “header2” for instance for span

But it looks like it doesn’t work. Can we click spans using the name?

This is a screen snapshot:

https://s3.amazonaws.com/uploads.hipchat.com/54839/774688/efrYkROYGYSqfk6/upload.png

This is the quick source code:

require 'watir-webdriver'
b = Watir::Browser.new

b.goto 
http://dev-next-app01.vfmltech.com/cube/dms-angular/src/public/vizlly/#/components

sleep 1
d = b.driver
d.switch_to.frame uiTinymce0_ifr

d.switch_to.active_element.send_keys [:control, a], :backspace
d.switch_to.active_element.click
d.switch_to.active_element.send_keys(Hello Testing RTE is
fun.!)
sleep 6
#-
# click editor's 'bullist' button
d.switch_to.active_element.send_keys [:control, a]
b.button(:name = 'format').click
sleep 6


b.span(:name = 'header2').click

I have try using index as well.


#b.span(:index , 2).click

-- 
-- 
Before posting, please read http://watir.com/support. 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: How to select heading[s]

2014-10-20 Thread c w
This is the err I get

C:\workruby tmp.rb
C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.9/lib/watir-webdriver/locators/element_locator.rb:242:in
`assert_valid_as_attribute':
 invalid attribute: :name
(Watir::Exception::MissingWayOfFindingObjectException)
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.9/lib/watir-webdriver/locators/element_locator.rb:223:in
`normalize_sele
ctor'
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.9/lib/watir-webdriver/locators/element_locator.rb:202:in
`block in norma
lized_selector'

On Mon, Oct 20, 2014 at 3:13 PM, c w cristina.wa...@gmail.com wrote:

 Hi,

 please can one advise me on what I am doing wrong.

 I try to click on any header elements[I want to select one for instance].
 I have asked the dev to add for me name= “header2” for instance for span

 But it looks like it doesn’t work. Can we click spans using the name?

 This is a screen snapshot:


 https://s3.amazonaws.com/uploads.hipchat.com/54839/774688/efrYkROYGYSqfk6/upload.png

 This is the quick source code:

 require 'watir-webdriver'
 b = Watir::Browser.new

 b.goto 
 http://dev-next-app01.vfmltech.com/cube/dms-angular/src/public/vizlly/#/components
 
 sleep 1
 d = b.driver
 d.switch_to.frame uiTinymce0_ifr

 d.switch_to.active_element.send_keys [:control, a], :backspace
 d.switch_to.active_element.click
 d.switch_to.active_element.send_keys(Hello Testing RTE is
 fun.!)
 sleep 6

 #-
 # click editor's 'bullist' button
 d.switch_to.active_element.send_keys [:control, a]
 b.button(:name = 'format').click
 sleep 6


 b.span(:name = 'header2').click

 I have try using index as well.


 #b.span(:index , 2).click


-- 
-- 
Before posting, please read http://watir.com/support. 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: How to select heading[s]

2014-10-20 Thread c w
Using the xpath works:

b.element(:xpath =
//div[@id='mceu_41']/div[@id='mceu_41-body']/div[@id='mceu_43']/span[@name='header2']).click


but I don't want to use the xpath.


On Mon, Oct 20, 2014 at 3:13 PM, c w cristina.wa...@gmail.com wrote:

 Hi,

 please can one advise me on what I am doing wrong.

 I try to click on any header elements[I want to select one for instance].
 I have asked the dev to add for me name= “header2” for instance for span

 But it looks like it doesn’t work. Can we click spans using the name?

 This is a screen snapshot:


 https://s3.amazonaws.com/uploads.hipchat.com/54839/774688/efrYkROYGYSqfk6/upload.png

 This is the quick source code:

 require 'watir-webdriver'
 b = Watir::Browser.new

 b.goto 
 http://dev-next-app01.vfmltech.com/cube/dms-angular/src/public/vizlly/#/components
 
 sleep 1
 d = b.driver
 d.switch_to.frame uiTinymce0_ifr

 d.switch_to.active_element.send_keys [:control, a], :backspace
 d.switch_to.active_element.click
 d.switch_to.active_element.send_keys(Hello Testing RTE is
 fun.!)
 sleep 6

 #-
 # click editor's 'bullist' button
 d.switch_to.active_element.send_keys [:control, a]
 b.button(:name = 'format').click
 sleep 6


 b.span(:name = 'header2').click

 I have try using index as well.


 #b.span(:index , 2).click


-- 
-- 
Before posting, please read http://watir.com/support. 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: How to select heading[s]

2014-10-20 Thread c w
Hi Derek!
Thank you so much. This works just run it:

b.element(:xpath = //span[@name='header2']).click

I just thought that maybe a simple way and not to use the entire full path.




div id=mceu_41 class=mce-container mce-panel mce-floatpanel mce-menu
mce-menu-align role=application tabindex=-1 hidefocus=1
style=border-width: 1px; z-index: 65535; left: 33px; top: 206.433px;
width: 1391px; display: none;

div id=mceu_41-body class=mce-container-body mce-stack-layout
role=menu style=width: 1391px;
div id=mceu_42 class=mce-menu-item mce-menu-item-normal
mce-first mce-stack-layout-item tabindex=-1 role=menuitem
aria-checked=false aria-pressed=false/div
div id=mceu_43 class=mce-menu-item mce-menu-item-normal
mce-stack-layout-item mce-active tabindex=-1 role=menuitem
aria-checked=true aria-pressed=true
i class=mce-ico mce-i-none/i
span id=mceu_43-text class=mce-text
style=font-family:serif;font-size:24px;font-weight:700;font-style:…ransparent;border:;border-radius:;outline:;text-shadow:none;
name=header2

Header 2

/span
/div
div id=mceu_44 class=mce-menu-item mce-menu-item-normal
mce-stack-layout-item tabindex=-1 role=menuitem aria-checked=false
aria-pressed=false/div
div id=mceu_45 class=mce-menu-item mce-menu-item-normal
mce-stack-layout-item tabindex=-1 role=menuitem aria-checked=false
aria-pressed=false/div
div id=mceu_46 class=mce-menu-item mce-menu-item-normal
mce-stack-layout-item tabindex=-1 role=menuitem aria-checked=false
aria-pressed=false/div





On Mon, Oct 20, 2014 at 4:18 PM, Derek W derekwro...@gmail.com wrote:

 What is the reason you don't want to use xpath?  If it's just because of
 the length/cryptic names used, is it possible that this would work for the
 xpath:
 //span[@name='header2']

 If not, what about the text or other properties within that span?  Can you
 take a screenshot of the span node expanded?

 On Mon, Oct 20, 2014 at 1:06 PM, c w cristina.wa...@gmail.com wrote:

 Using the xpath works:

 b.element(:xpath =
 //div[@id='mceu_41']/div[@id='mceu_41-body']/div[@id='mceu_43']/span[@name='header2']).click


 but I don't want to use the xpath.


 On Mon, Oct 20, 2014 at 3:13 PM, c w cristina.wa...@gmail.com wrote:

 Hi,

 please can one advise me on what I am doing wrong.

 I try to click on any header elements[I want to select one for
 instance]. I have asked the dev to add for me name= “header2” for instance
 for span

 But it looks like it doesn’t work. Can we click spans using the name?

 This is a screen snapshot:


 https://s3.amazonaws.com/uploads.hipchat.com/54839/774688/efrYkROYGYSqfk6/upload.png

 This is the quick source code:

 require 'watir-webdriver'
 b = Watir::Browser.new

 b.goto 
 http://dev-next-app01.vfmltech.com/cube/dms-angular/src/public/vizlly/#/components
 
 sleep 1
 d = b.driver
 d.switch_to.frame uiTinymce0_ifr

 d.switch_to.active_element.send_keys [:control, a], :backspace
 d.switch_to.active_element.click
 d.switch_to.active_element.send_keys(Hello Testing RTE is
 fun.!)
 sleep 6

 #-
 # click editor's 'bullist' button
 d.switch_to.active_element.send_keys [:control, a]
 b.button(:name = 'format').click
 sleep 6


 b.span(:name = 'header2').click

 I have try using index as well.


 #b.span(:index , 2).click


  --
 --
 Before posting, please read http://watir.com/support. 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.




 --
 Derek Wrobel
 425-243-3355

 --
 --
 Before posting, please read http://watir.com/support. 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 http://watir.com/support. 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

[wtr-general] whats the best way for automating app developed in angularjs

2014-10-20 Thread c w
Hi,

I have a question,

has anyone experience with https://docs.angularjs.org/guide/e2e-testing?


If the application is developed using angular js
is still watir the best way for automation testing?



Kind regards,
Cristina

-- 
-- 
Before posting, please read http://watir.com/support. 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] watir + FunFX

2014-04-19 Thread c w
Hi!

I am in a lookout for automation of web flex app.

Do you know if there is any great example, step by step of how to use it.
Or if there is any book?


Is watir working great with funfx? Any Example?

Kind Regards,
Cristina

-- 
-- 
Before posting, please read http://watir.com/support. 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] simple way for this xpath?

2014-03-14 Thread c w
It works great!

@browser.h3(:text = Brook).parent.parent.parent.button(:value = View
Details).click

I didn't know about this. Can you tell me where is the best place to start
reading about .parent
.child


Thank you,
Cristina


On Thu, Mar 13, 2014 at 6:44 PM, Dan dfra...@gmail.com wrote:

 I would recommend something like this actually.  If you have something
 that you know, like the name of the dog, you can work back up and down the
 tree.  Using index can be your only option sometimes, but it can be brittle.

 For example:

 b.h3(:text = Hanna).parent.parent.button(:value = View Details).click

 On Thursday, March 13, 2014 5:51:39 PM UTC-4, christina wrote:

 Hi and thank you!

 I found the way:

 @browser.button(:value = 'View Details', :index = 0).click

 works great.



 On Thu, Mar 13, 2014 at 1:58 PM, c w cristin...@gmail.com wrote:

 Thank you!

 The question is when we go here http://puppies.herokuapp.com

 how can we click in an easy way on the View Detail button for Hanna? or
 any View Detail button as we do not have an id.

 Kind Regards,
 Cristina


 On Thu, Mar 13, 2014 at 6:03 AM, Oscar Rieken bis...@gmail.com wrote:

 when you are using watir you almost never have to use xpath. you didnt
 post any html so its kind of hard to give you a simpler way to locate
 without using xpath. but I would probably try to break out just the
 container and then locate the button inside of it.


 On Wed, Mar 12, 2014 at 5:20 PM, c w cristin...@gmail.com wrote:

 Hi,

 I am using the following and works.
 However my question is if there simple way to define these xpaths?


 When /^I click the first View Details button$/ do
@browser.button(:xpath, /html/body/div[@id='
 container']/div[@id='wrapper']/div[@id='content']/div[@
 class='puppy_list'][1]/div[@class='list_line_odd']/div[@
 class='view']/form[@class='button_to']/div/input[@class='
 rounded_button']).click()
 end

 When /^I click the second View Details button$/ do
   @browser.button(:xpath, /html/body/div[@id='
 container']/div[@id='wrapper']/div[@id='content']/div[@
 class='puppy_list'][2]/div[@class='list_line_even']/div[@
 class='view']/form[@class='button_to']/div/input[@class='
 rounded_button']).click()

 end


 Kind Regards,
 Cristina

 --
 --
 Before posting, please read http://watir.com/support. In short:
 search before you ask, be nice.

 watir-...@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-genera...@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-genera...@googlegroups.com.

 For more options, visit https://groups.google.com/d/optout.


  --
 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-...@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-genera...@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-genera...@googlegroups.com.

 For more options, visit https://groups.google.com/d/optout.



  --
 --
 Before posting, please read http://watir.com/support. 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 http://watir.com/support. 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] simple way for this xpath?

2014-03-13 Thread c w
Hi,

I am using the following and works.
However my question is if there simple way to define these xpaths?


When /^I click the first View Details button$/ do
   @browser.button(:xpath,
/html/body/div[@id='container']/div[@id='wrapper']/div[@id='content']/div[@class='puppy_list'][1]/div[@class='list_line_odd']/div[@class='view']/form[@class='button_to']/div/input[@class='rounded_button']).click()
end

When /^I click the second View Details button$/ do
  @browser.button(:xpath,
/html/body/div[@id='container']/div[@id='wrapper']/div[@id='content']/div[@class='puppy_list'][2]/div[@class='list_line_even']/div[@class='view']/form[@class='button_to']/div/input[@class='rounded_button']).click()

end


Kind Regards,
Cristina

-- 
-- 
Before posting, please read http://watir.com/support. 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] simple way for this xpath?

2014-03-13 Thread c w
Thank you!

The question is when we go here http://puppies.herokuapp.com

how can we click in an easy way on the View Detail button for Hanna? or any
View Detail button as we do not have an id.

Kind Regards,
Cristina


On Thu, Mar 13, 2014 at 6:03 AM, Oscar Rieken bis...@gmail.com wrote:

 when you are using watir you almost never have to use xpath. you didnt
 post any html so its kind of hard to give you a simpler way to locate
 without using xpath. but I would probably try to break out just the
 container and then locate the button inside of it.


 On Wed, Mar 12, 2014 at 5:20 PM, c w cristina.wa...@gmail.com wrote:

 Hi,

 I am using the following and works.
 However my question is if there simple way to define these xpaths?


 When /^I click the first View Details button$/ do
@browser.button(:xpath,
 /html/body/div[@id='container']/div[@id='wrapper']/div[@id='content']/div[@class='puppy_list'][1]/div[@class='list_line_odd']/div[@class='view']/form[@class='button_to']/div/input[@class='rounded_button']).click()
 end

 When /^I click the second View Details button$/ do
   @browser.button(:xpath,
 /html/body/div[@id='container']/div[@id='wrapper']/div[@id='content']/div[@class='puppy_list'][2]/div[@class='list_line_even']/div[@class='view']/form[@class='button_to']/div/input[@class='rounded_button']).click()

 end


 Kind Regards,
 Cristina

 --
 --
 Before posting, please read http://watir.com/support. 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 http://watir.com/support. 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 http://watir.com/support. 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] simple way for this xpath?

2014-03-13 Thread c w
Hi and thank you!

I found the way:

@browser.button(:value = 'View Details', :index = 0).click

works great.



On Thu, Mar 13, 2014 at 1:58 PM, c w cristina.wa...@gmail.com wrote:

 Thank you!

 The question is when we go here http://puppies.herokuapp.com

 how can we click in an easy way on the View Detail button for Hanna? or
 any View Detail button as we do not have an id.

 Kind Regards,
 Cristina


 On Thu, Mar 13, 2014 at 6:03 AM, Oscar Rieken bis...@gmail.com wrote:

 when you are using watir you almost never have to use xpath. you didnt
 post any html so its kind of hard to give you a simpler way to locate
 without using xpath. but I would probably try to break out just the
 container and then locate the button inside of it.


 On Wed, Mar 12, 2014 at 5:20 PM, c w cristina.wa...@gmail.com wrote:

 Hi,

 I am using the following and works.
 However my question is if there simple way to define these xpaths?


 When /^I click the first View Details button$/ do
@browser.button(:xpath,
 /html/body/div[@id='container']/div[@id='wrapper']/div[@id='content']/div[@class='puppy_list'][1]/div[@class='list_line_odd']/div[@class='view']/form[@class='button_to']/div/input[@class='rounded_button']).click()
 end

 When /^I click the second View Details button$/ do
   @browser.button(:xpath,
 /html/body/div[@id='container']/div[@id='wrapper']/div[@id='content']/div[@class='puppy_list'][2]/div[@class='list_line_even']/div[@class='view']/form[@class='button_to']/div/input[@class='rounded_button']).click()

 end


 Kind Regards,
 Cristina

 --
 --
 Before posting, please read http://watir.com/support. 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 http://watir.com/support. 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 http://watir.com/support. 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.