Re: [wtr-general] Watir + Rspec + POM a good combination?

2014-06-27 Thread Avinash Duggirala
Thanks for the replies. But I need some start up suggestions in this regard 1. Is there any standard folder structure to follow while implementing Watir web-driver + R-Spec framework ? 2. Need some inputs regarding execution flow for this combination. Regards, Avinash On Saturday, June 21, 2

Re: [wtr-general] Watir + Rspec + POM a good combination?

2014-06-21 Thread Jarmo Pertman
Don't forget the easiest one called test-page - https://github.com/jarmo/test-page Jarmo Pertman - IT does really matter - http://itreallymatters.net On Friday, June 20, 2014 11:28:53 PM UTC+3, Rafael Lima wrote: > > I know of two gems that you can use for Page Objects : Taza and Page > Obj

Re: [wtr-general] Watir + Rspec + POM a good combination?

2014-06-20 Thread Rafael Lima
I know of two gems that you can use for Page Objects : Taza and Page Object. On Monday, June 16, 2014, Avinash Duggirala wrote: > Hi all, > > I am new to Watir. I have explored to create a project with combination of > Watir Webdriver + Rspec Framework + POM. > > I need suggestions whether choos

[wtr-general] Watir + Rspec + POM a good combination?

2014-06-20 Thread Avinash Duggirala
Hi all, I am new to Watir. I have explored to create a project with combination of Watir Webdriver + Rspec Framework + POM. I need suggestions whether choosing this combination is a good option or not?While exploring I could not find any example project in this combination. I got examples for

[wtr-general] Watir-Web driver has performance issue as compared with Watir

2014-05-15 Thread kamal nalla
Hi, We are using AWETEST Framework in our current project and we are planning to migrate our scripts from Watir to Watir Web driver. We have updated one script and executed it with Watir Web driver. The time it has taken for executing the script in Watir Web driver is almost 4 times higher

[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 shor

Re: [wtr-general] watir-webdriver timing out, ending run of Suite (Test::Unit) instead of simply causing test failure

2014-04-10 Thread Ravindra Kadam
Hi, I occasionaly get "Timeout::Error: execution expired" issue while running a rake task which executes close to 500 test cases. I use JRuby 1.6.2, test-unti 2.4.0. Couldn't find any documentation for NOT_PASS_THROUGH_EXCEPTIONS/PASS_THROUGH_EXCEPTIONS. Any idea about their use? Thanks, R

[wtr-general] Watir-rspec still requires browser variables when executing browser methods?

2014-03-19 Thread Arjen Ruiterkamp
Hello, I am fairly new to Ruby and trying to setup some acceptance tests using the watir-rspec gem. Now https://github.com/watir/watir-rspec states: - No need to use the @browser or $browser variables when executing browser methods. However, this doesn't seem to work for me. What I've

[wtr-general] [Watir-Cucumber-FFv25]: process still alive after 90 seconds (ChildProcess::TimeoutError) when starting FF

2014-02-14 Thread Ragavan Ambighananthan
Problem: We are using Watir/Cucumber , when starting Firefox with watir, it fails with the following error "process still alive after 90 seconds (ChildProcess::TimeoutError)" This happens sporadically but really brings down the reliability of our CI pipeline. FFv25 (we are seeing this issu

[wtr-general] watir-webdriver appium

2014-01-10 Thread Dan
Hey everyone. Anyone know if there are plans to build in support for appium tests into watir-webdriver? Alister has a great post on getting started with selenium-webdriver, but support in watir-webdriver is missing currently. http://watirmelon.com/2013/11/05/using-appium-in-ruby-for-ios-autom

Re: [wtr-general] Watir responds very slowly for a big line of code

2014-01-09 Thread Chuck van der Linden
On Thursday, January 9, 2014 4:56:44 AM UTC-8, Oscar.Rieken wrote: > > you dont need all of that to locate those elements by their id. you can > probably get away with just switching to the you need frame once and then > performing the actions. on that frame. you are pretty much traversing the >

Re: [wtr-general] Watir responds very slowly for a big line of code

2014-01-09 Thread Oscar Rieken
you dont need all of that to locate those elements by their id. you can probably get away with just switching to the you need frame once and then performing the actions. on that frame. you are pretty much traversing the dom to find your element On Thu, Jan 9, 2014 at 12:10 AM, Sanjeev Singh wrote

[wtr-general] Watir responds very slowly for a big line of code

2014-01-08 Thread Sanjeev Singh
Hi All, I am trying the below code and it is really really slow to respond browser.div(:id => "context-wrapper").frame(:id => "ConcertoContext").div(:id => "cpo-folder").div(:class => "cpo-content-wrapper").div(:class => "cpo-content").frame(:id => "application-content").frame(:name => "Se

Re: [wtr-general] watir syntax for

2013-12-30 Thread Joe Fleck
Priti, I am not familiar with test wise but I think you would write the loop within Test 'm' do While End End Thanks! - Joe Fleck Sent from my iPad On Dec 30, 2013, at 10:02 AM, Joe Fleck wrote: > Hi Priti, > > @browser.span(:class=>'LinkClassAvailability') > > Thanks! > - Joe > S

Re: [wtr-general] watir syntax for

2013-12-30 Thread Joe Fleck
Hi Priti, @browser.span(:class=>'LinkClassAvailability') Thanks! - Joe Sent from my iPad On Dec 29, 2013, at 6:55 AM, Priti Fhuse wrote: > I have been stuck for 2 days in > this water using testwise tool > > I would like to know what should be the sysntax for class="LinkClassAvailability">

[wtr-general] watir syntax for

2013-12-30 Thread Priti Fhuse
I have been stuck for 2 days in this water using testwise tool I would like to know what should be the sysntax for in watir 2> 2nd question how to use loops in testwise -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@goo

Re: [wtr-general] Watir & Chrome driver

2013-12-19 Thread QOExcel
Thank you for help! It works now. The cause was old ChromeDriver in directory Ruby200\bin . This driver was earlier than 2.0 version. I copied new one 2.8 version and everything is almost right here although i have following messages in log: |[7256:7864:1219/190101:ERROR:chrome_views_delegate

Re: [wtr-general] Watir & Chrome driver

2013-12-19 Thread Željko Filipin
On Thu, Dec 19, 2013 at 2:23 PM, QOExcel wrote: > I want to launch tests with Chrome : I have recently updated instructions on how to set up everything, including Chrome: https://github.com/watir/watirbook/tree/master/installation Let me know if something still does not work even after follow

[wtr-general] Watir & Chrome driver

2013-12-19 Thread QOExcel
I want to launch tests with Chrome : I aply to chrome in hooks.rb Before do @browser = Watir::Browser.new :chrome end I launch my tests and get a lot of errors: |Started ChromeDriver (v2.1) on port 9516 [7760:3552:1219/171427:ERROR:chrome_views_delegate.cc(172)] NOT IMPLEMENTED [7760:3

[wtr-general] Watir tests initiated with teamcity only fails on windows 2003 with “Unexpected error launching Internet Explorer. IELaunchURL() returned 80070490”

2013-12-14 Thread midrol . damrigon
I am using the following software: watir 5.0.0 watir-webdriver 0.6.4 ruby 2.0.0p264 selenium iedriver 64bit 2.38.0 windows 2003 server 64bit as an agent on teamcity server 8.0.3 and all my tests with IE8 launched from teamcity fails with the following message: Selenium::WebDriver::Error::NoS

Re: [wtr-general] Watir &XPATH and sophisticated tags

2013-11-26 Thread QOExcel
There is only way to solve this, xpath : text_field(:test_newbox_1, :xpath => './/td[@class="waffle-find-replace-dialog-label"]/../../tr[2]/td[2]/input') or text_field(:test_newbox_4, :xpath => './/div[@class="modal-dialog-content"]/table/tbody/tr[1]/td[2]/input') пятница, 22 ноября 2013 г

Re: [wtr-general] Watir &XPATH and sophisticated tags

2013-11-22 Thread John Fitisoff
That's too bad. I guess that's because the gem attempts to standardize things between Watir and Selenium. Maybe Dan's suggestion? If the gem doesn't support daisy-chaining method calls you might actually have to use xpath. I took a quick look at the rdocs for the gem and it looks like there's a

Re: [wtr-general] Watir &XPATH and sophisticated tags

2013-11-22 Thread QOExcel
Sorry, for long response.. Yes. Method is available, but i can't figure out, how request can be created ... I tried : div(:test_el8, :class =>'modal-dialog-content' ).table(:name_table,:index => 0).text_fields[1] div(:test_el8, :class =>'modal-dialog-content' ).table(:index => 0).text_fields

Re: [wtr-general] Watir &XPATH and sophisticated tags

2013-11-18 Thread Dan
Another way to locate these would be by the aria-labelledby attribute which appears to be unique. See below. b.element(:css, 'input[aria-labelledby=":j6.findLabel"]').to_subtype.set("things") b.element(:css, 'input[aria-labelledby=":j6.replaceLabel"]').to_subtype.set("stuff") On Friday, Nove

Re: [wtr-general] Watir &XPATH and sophisticated tags

2013-11-15 Thread John Fitisoff
Think you could replace tbody with table, since the first table in the div has the text fields On Friday, November 15, 2013 2:42 AM, QOExcel wrote: Yes. I use 'cheesy' gem. It is pity, but this implementation doesn't work .tbody isn't understood as a method here. пятница, 15 ноября 2013

Re: [wtr-general] Watir &XPATH and sophisticated tags

2013-11-15 Thread QOExcel
Yes. I use 'cheesy' gem. It is pity, but this implementation doesn't work .tbody isn't understood as a method here. пятница, 15 ноября 2013 г., 0:05:43 UTC+4 пользователь johnssn написал: > > That last comment I made wasn't right since you're trying to get to the > text field. Maybe this instea

Re: [wtr-general] Watir &XPATH and sophisticated tags

2013-11-14 Thread John Fitisoff
That last comment I made wasn't right since you're trying to get to the text field. Maybe this instead (sorry, haven't used that library) text_field(:my_text_field, :class=>'modal-dialog-content'). tbody(:index=>0).text_field(:index=>0) On Thursday, November 14, 2013 6:55 AM, John Fitisoff

Re: [wtr-general] Watir &XPATH and sophisticated tags

2013-11-14 Thread John Fitisoff
That's a really good question. I think you're talking about the 'cheesy' gem and I think that it does some sort of normalization between watir and selenium. Maybe this will work (collections are stripped out): div(:my_div, :class=>'modal-dialog-content'). tbody(:index=>0).text_field(:index=>0)

Re: [wtr-general] Watir &XPATH and sophisticated tags

2013-11-14 Thread QOExcel
Thank you very much for your help!! I will read beforehand http://watir.com/support It works actually .. But i use Page Object style for writing code, something like this: span(:find_replace_dialog_matchcase_checkbox_3,:id => 'find-replace-regex') or button(:fi

Re: [wtr-general] Watir &XPATH and sophisticated tags

2013-11-13 Thread John Fitisoff
You almost never need to resort to xpath if you're using watir. Something like this? b.div(:class, 'modal-dialog-content').tbodys[0].text_fields[0] b.div(:class, 'modal-dialog-content').tbodys[0].text_fields[1] On Wednesday, November 13, 2013 3:55 AM, QOExcel wrote: Hello, All I have to f

[wtr-general] Watir &XPATH and sophisticated tags

2013-11-13 Thread QOExcel
Hello, All I have to find a couple locators (textboxes).They have the same so i need xpath to find definite locator : Find I can find by such request : div(:test_el1, :xpath => '//div[@class="modal-dialog-content"]') but i can't define lower elements through this request

Re: [wtr-general] Watir not working properly with IE11-Windows 8.1

2013-11-12 Thread John Fitisoff
Could it be a problem with timing? Try: Watir::wait.until(30) { self.text.match(/There is a problem with/) } if(self.text.match(/There is a problem with/)) self.link(:name, 'override').click. end Another thing you can do is install pry ('gem install pry') and then put a breakpoint in front of

[wtr-general] Watir not working properly with IE11-Windows 8.1

2013-11-12 Thread sumanth
Hi All, I am facing issue while running my scripts [which are running fine with IE10-Win8] in IE11-Windows8.1 script is coming to ssl warning page where my scripts try to click override link if the text "there is a problem with " text is present code looks something like if(self.text.match

[wtr-general] watir-webdriver exec_script failing with Firefox 24/25

2013-10-30 Thread seth f
Is watir-webdriver not compatible with Firefox 24/25? I went back to firefox 21 and my exec_script calls started working again. On FF 24/25 I couldn't even get simple exec_script('alert()') or document title changes to work. The errors that show up in the browser console are: Use of getUser

Re: [wtr-general] Watir exits with 0 on failure

2013-10-08 Thread John Fitisoff
s.com Sent: Tuesday, October 8, 2013 4:22 AM Subject: [wtr-general] Watir exits with 0 on failure Hello, I am running Watir scripts as part of a Jenkins job. I can see from my logs that although the script encounters errors, it's exit code (which I also echo after the script terminates) i

[wtr-general] Watir exits with 0 on failure

2013-10-08 Thread guy . r
Hello, I am running Watir scripts as part of a Jenkins job. I can see from my logs that although the script encounters errors, it's exit code (which I also echo after the script terminates) is 0 (aka success). I know from testing it on my local machine that Ruby's exit-code when watir fails is u

[wtr-general] watir-rails 1.0

2013-10-05 Thread Jarmo
Hi! Released watir-rails 1.0.0: * Add watir as a dependency to make it possible to use with watir-classic too. * Add specs to keep the quality high. * Documentation fixes. Check out more at https://github.com/watir/watir-rails Jarmo Pertman -- -- Before posting, please read http://watir.com/

[wtr-general] watir-rspec 1.1.0

2013-10-05 Thread Jarmo
Hi! Released watir-rspec 1.1.0: * Add --force option for watir-rspec command line interface to force the installation even if it seems to be already installed for the project. Check out more at https://github.com/watir/watir-rspec Jarmo Pertman -- -- Before posting, please read http://watir.

[wtr-general] watir-classic 4.0.0 & 4.0.1

2013-10-05 Thread Jarmo
Hi! Released watir-classic 4.0.0 & 4.0.1: == 4.0.1 * Bump win32screenshot dependency version. == 4.0.0 * Browser#add_checker also accepts block instead of a proc object. * Browser#initialize suppresses window only when actual "true" value is given as an argument. * Rename Watir::IE to Watir::B

[wtr-general] watir 5.0

2013-10-05 Thread Jarmo
Hi! Released watir 5.0.0: * Add support for watir-classic 4.0. * README improvements. Check out more at https://github.com/watir/watir Jarmo Pertman -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://g

[wtr-general] [Watir-webdriver]:Difference between pause and wait in web site testing

2013-09-30 Thread watir webdriver
I want to know what is the difference between 'pause' and 'wait' in watir-webdriver. Both wait for the page to load for the specified time interval? Thanks in-advance. -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegr

[wtr-general] [Watir webdriver] -Locating an element in "li"

2013-09-24 Thread watir webdriver
In my application,if I click on a text field it gives me a list of items among which I've to select one.Can anyone help me in sorting out the issue ? HTML: Basket1 BASKET2 BASKET3 BASKET4 BASKET5 BASKET6 BASKET7 *Step definition: *This clicks on the text_field Then(/^I click on the "(.*?)"

Re: [wtr-general] watir-rspec 1.0 released

2013-09-23 Thread Ekin Han
Great! I will try it soon. 2013/9/24 Jarmo Pertman > Yes! It supports both - watir-webdriver and watir-classic. > > Jarmo > > On Monday, September 23, 2013 3:55:37 PM UTC+3, Eason wrote: > >> great job! does it support watir-webdriver? >> >> >> 2013/9/21 Jarmo >> >>> Hi! >>> >>> Released watir

Re: [wtr-general] watir-rspec 1.0 released

2013-09-23 Thread Jarmo Pertman
Yes! It supports both - watir-webdriver and watir-classic. Jarmo On Monday, September 23, 2013 3:55:37 PM UTC+3, Eason wrote: > > great job! does it support watir-webdriver? > > > 2013/9/21 Jarmo > > >> Hi! >> >> Released watir-rspec 1.0: >> >> * add installation binary watir-rspec for easier ins

Re: [wtr-general] watir-rspec 1.0 released

2013-09-23 Thread Ekin Han
great job! does it support watir-webdriver? 2013/9/21 Jarmo > Hi! > > Released watir-rspec 1.0: > > * add installation binary watir-rspec for easier installation of the gem > * many internal changes > * README revamp > > > Installation > > Add these lines to your application's Gemfile: > > grou

[wtr-general] watir-rspec 1.0 released

2013-09-21 Thread Jarmo
Hi! Released watir-rspec 1.0: * add installation binary watir-rspec for easier installation of the gem * many internal changes * README revamp Installation Add these lines to your application's Gemfile: group :test do gem 'watir-rspec' end Or install it manually as: gem install watir-

[wtr-general] Watir Installation Issue

2013-09-16 Thread gatormim
I had the following error message occur after attempting the latest Watir installation. PLEASE HELP! /Error during installation of Watir// 1. Installed Ruby:Ruby 2.0.0-p247 (successful install) 2. Installed devkit: DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe (successful install and initia

Re: [wtr-general] Watir WebDriver Vs Selenium

2013-09-15 Thread Oscar Rieken
Don't get me wrong, I totally agree! On Sun, Sep 15, 2013 at 10:12 AM, Jarmo Pertman wrote: > Biggest difference is API. Check out following short articles: > http://watirmelon.com/2010/04/10/watir-selenium-webdriver/ > > http://watirmelon.com/2011/05/05/selenium-webdriver-vs-watir-webdriver-in

Re: [wtr-general] Watir WebDriver Vs Selenium

2013-09-15 Thread Jarmo Pertman
Biggest difference is API. Check out following short articles: http://watirmelon.com/2010/04/10/watir-selenium-webdriver/ http://watirmelon.com/2011/05/05/selenium-webdriver-vs-watir-webdriver-in-ruby/ Saying that "the only difference" is misleading, because this is THE best difference :) Jarmo

[wtr-general] Watir WebDriver Vs Selenium

2013-09-09 Thread Avihay Eyal
Hi, I'm trying to evaluate the two frameworks, and I couldn't find a recent and comprehensive comparison of the two... So, is there any reason to choose one over the other? Thanks. -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-g

Re: [wtr-general] Watir WebDriver Vs Selenium

2013-09-09 Thread Oscar Rieken
the only difference is that watir has wrappers to help you locate elements On Sun, Sep 8, 2013 at 5:57 AM, Avihay Eyal wrote: > Hi, I'm trying to evaluate the two frameworks, and I couldn't find a > recent and comprehensive comparison of the two... > > So, is there any reason to choose one over

Re: [wtr-general] [Watir-webdriver] : How to compare to results

2013-08-15 Thread watir webdriver
Thanks Panato for ur quick reply...I'll give a try On Thursday, August 15, 2013, Tadeu Panato wrote: > you receive the values in one string? > > like a = ["TS377NWT", "KM077BLK"] or a = "TS377NWT,KM077BLK" ?? > > in case is the first: > a[0].eql?(a[1]) > > if is the second case: > > a = a.spl

Re: [wtr-general] [Watir-webdriver] : How to compare to results

2013-08-15 Thread Tadeu Panato
you receive the values in one string? like a = ["TS377NWT", "KM077BLK"] or a = "TS377NWT,KM077BLK" ?? in case is the first: a[0].eql?(a[1]) if is the second case: a = a.split(",") then use the code above this is programming logic not watir-webdriver questions. Em quinta-feira, 15 de agosto

Re: [wtr-general] [Watir-webdriver] : How to compare to results

2013-08-15 Thread watir webdriver
Thanks for the reply...but here I've to verify first result set(a&b) with second result set(a&b) not a.eql?b Any suggestions? On Thursday, August 15, 2013, Tadeu Panato wrote: > .eql? > > a = "TS377NWT" > b = "KM077BLK" > > a.eql? b > > > Em quinta-feira, 15 de agosto de 2013 12h37min42s UTC-3, w

Re: [wtr-general] [Watir-webdriver] : How to compare to results

2013-08-15 Thread John Fitisoff
Just store everything in strings and then compare by == or a regexp, whichever makes more sense, then print the console output afterward? From: watir webdriver To: watir-general@googlegroups.com Sent: Thursday, August 15, 2013 8:37 AM Subject: [wtr-general

[wtr-general] [Watir-webdriver] : How to compare to results

2013-08-15 Thread watir webdriver
Is there any way to compare two sets of strings which I've printed on the command prompt. When I click on a link it opens a child window there I've to read two header texts and print them on the command prompt. (Ex : TS377NWT,KM077BLK).I've to repeat the same step one more time to get the resu

[wtr-general] [Watir-webdriver] : How to retrieve/print text from a table

2013-08-14 Thread watir webdriver
Is there any way how to print the text from the table? I've managed to verify if the text is present on the page or not but not sure how to print the text.Its a table with 20 rows. *Then(/^I should see "(.*?)" on the page$/) do |expected_result| puts (@browser.text.include? expected_result).shou

[wtr-general] [Watir webdriver] - how to verify text using OR statement in a child window

2013-08-14 Thread watir webdriver
In watir-webdriver, is it possible to verify text using OR statement in a child window? and should fail if its anything other than 'best' or 'catalog' *My step definition is as below :* * Then /^I should see either "best | catalog" on the page$/ do @browser.window(:title => "child").use do p

Re: [wtr-general] Watir - execute_script fail in FF 23 windows

2013-08-07 Thread Chuck van der Linden
Looks a lot like webdriver can't connect to the browser.. I think you are right this is a webdriver issue, I'd head to the https://groups.google.com/forum/#!forum/selenium-users as a potential forum to talk about webdriver level problems. On Tuesday, August 6, 2013 1:33:09 PM UTC-7, Tadeu P

Re: [wtr-general] Watir - execute_script fail in FF 23 windows

2013-08-06 Thread Tadeu Panato
running in FF local it not failed running in ie10i got that: *Error: test_02_local(TsCheckHome)* * Errno::ECONNREFUSED: No connection could be made because the target machine actively refused it. - connect(2)* *C:/Ruby193/lib/ruby/1.9.1/net/http.rb:763:in `initialize'* *C:/Ruby193/lib/ruby/1.9.

Re: [wtr-general] Watir - execute_script fail in FF 23 windows

2013-08-06 Thread Tadeu Panato
Yes Filipin They told to me to check the forum =/ I will setup a local windows to check and will publish here the results. thanks Em terça-feira, 6 de agosto de 2013 07h38min33s UTC-3, Željko Filipin escreveu: > > On Fri, Aug 2, 2013 at 11:29 PM, Tadeu Panato > > wrote: > >> In FF 23 on Linux

Re: [wtr-general] Watir - execute_script fail in FF 23 windows

2013-08-06 Thread Željko Filipin
On Fri, Aug 2, 2013 at 11:29 PM, Tadeu Panato wrote: > In FF 23 on Linux it works however in FF 23 on Win 7 didnt work (using > saucelabs) It could be a Firefox+Windows problem then, or Sauce Labs problem. Did you contact Sauce Labs support? Željko -- https://leanpub.com/watirbook -- -- Bef

[wtr-general] Watir - execute_script fail in FF 23 windows

2013-08-06 Thread Tadeu Panato
Hello All, how are you? I think its a bug in the webdriver but would like to check with y'all Scenario I open a page and run an script using the execute_script. In FF 23 on Linux it works however in FF 23 on Win 7 didnt work (using saucelabs). On Ie sometimes works and other not got his in FF [

Re: [wtr-general] [Watir-webdriver] - Drag and drop using watir webdriver

2013-08-05 Thread Chuck van der Linden
On Sunday, July 14, 2013 8:29:45 AM UTC-7, watir webdriver wrote: > Thanks for the reply John...I've managed to fix the issue. So for the benefit of anyone else who is trying to do this sort of thing, would you care to share with us HOW you managed to fix the issue, e.g. the code that is worki

[wtr-general] [Watir-webdriver] : How to get the size or count of same text

2013-08-02 Thread watir webdriver
Hi, In a table I've a text called 'seller' multiple times.I've managed to verify if the element is present on the page or not but couldn't able to get the count or size of it.Can anyone help? I'm using watir-webdriver with cucumber. Thanks in-advance. -- -- Before posting, please read http:/

Re: [wtr-general] [watir-webdriver] - How to verify a text on a child window

2013-07-22 Thread Željko Filipin
On Mon, Jul 22, 2013 at 5:17 PM, watir webdriver < watirwebdriver...@gmail.com> wrote: > My code is returning all the texts present in the parent window. You have to switch to the new browser window/tab. Something like this: browser.window(:title => "annoying popup").use do browser.button(:id

[wtr-general] [watir-webdriver] enablePersistentHover capability access

2013-07-22 Thread Alex Shtayer
Hi folks Does somebody know how to access capabilities from https://code.google.com/p/selenium/wiki/DesiredCapabilities page? I am able to access capabilities only from first three tables: require 'watir-webdriver' caps = Selenium::WebDriver::Remote::Capabilities.ie => #"internet explorer", :ver

[wtr-general] [watir-webdriver] - How to verify a text on a child window

2013-07-22 Thread watir webdriver
Hi there, In my app clicking a link opens a new browser where I've check if a particular text is present or not.I've implemented as below : *Cucumber Step definition:* When I click on the debug information link create page Then the debug info should show the "Product catalog" on the debug page

Re: [wtr-general] [Watir-WebDriver] Wait until the text-field values are fetched through API

2013-07-15 Thread maulik goswami
uing. > Maybe something like this > > Watir::Wait.until(60) do > br.text =~ /some regexp check/ > end > > > -- > *From:* maulik goswami > > *To:* watir-...@googlegroups.com > *Sent:* Friday, July 12, 2013 1:58 AM > *Subject:*

Re: [wtr-general] [Watir-webdriver] - Drag and drop using watir webdriver

2013-07-14 Thread John Fitisoff
Oh, good! From: watir webdriver To: "watir-general@googlegroups.com" Sent: Sunday, July 14, 2013 8:29 AM Subject: Re: [wtr-general] [Watir-webdriver] - Drag and drop using watir webdriver Thanks for the reply John...I've managed to fix

Re: [wtr-general] [Watir-webdriver] - Drag and drop using watir webdriver

2013-07-14 Thread watir webdriver
Thanks for the reply John...I've managed to fix the issue. On Wednesday, July 10, 2013, John Fitisoff wrote: > A couple of seconds seems like a long time. Maybe try the action builder > 'release' action instead of firing the event? Maybe some javascript event > isn't occurring at the right time?

Re: [wtr-general] [Watir-WebDriver] Wait until the text-field values are fetched through API

2013-07-12 Thread John Fitisoff
From: maulik goswami To: watir-general@googlegroups.com Sent: Friday, July 12, 2013 1:58 AM Subject: [wtr-general] [Watir-WebDriver] Wait until the text-field values are fetched through API I am writing the registration script where the API is being called in company registration no field w

Re: [wtr-general] [Watir-WebDriver] Wait until the text-field values are fetched through API

2013-07-12 Thread Željko Filipin
On Fri, Jul 12, 2013 at 10:58 AM, maulik goswami wrote: > Watir::Wait.until(10) {br.text_field(:id => "companyName").value.exists?} I think the problem is that here you are waiting for the text field to have any value, and I guess empty string is any value. You should probably wait until the tex

[wtr-general] [Watir-WebDriver] Wait until the text-field values are fetched through API

2013-07-12 Thread maulik goswami
I am writing the registration script where the API is being called in company registration no field which fetches all the data regarding company and fill it automatically in according text-field like name, phone no, address etc. So i want to make the script wait until all text-field vales are

Re: [wtr-general] [Watir-webdriver] - Drag and drop using watir webdriver

2013-07-11 Thread watir webdriver
Thanks for the reply John...I've managed to fix the issue. On Wednesday, July 10, 2013, John Fitisoff wrote: > A couple of seconds seems like a long time. Maybe try the action builder > 'release' action instead of firing the event? Maybe some javascript event > isn't occurring at the right time?

Re: [wtr-general] [Watir-Webdriver] How can i access Gmail

2013-07-11 Thread Dan
This isn't a watir problem, but I think many of us have experience with the gmail gem. What error do you get when you try to use the gmail gem? On Thursday, July 11, 2013 2:38:30 AM UTC-4, maulik goswami wrote: > > i need to access the mail that is being sent by my system > > On Wednesday, 10 J

Re: [wtr-general] [Watir-Webdriver] How can i access Gmail

2013-07-10 Thread maulik goswami
i need to access the mail that is being sent by my system On Wednesday, 10 July 2013 17:37:33 UTC+5:30, Oscar.Rieken wrote: > > do you need to access gmail because you work at google? or do you need to > access an email that is being sent by your system to an email address that > happens to be

Re: [wtr-general] [Watir-Webdriver] How can i access Gmail

2013-07-10 Thread Oscar Rieken
do you need to access gmail because you work at google? or do you need to access an email that is being sent by your system to an email address that happens to be a gmail acct? On Wed, Jul 10, 2013 at 6:29 AM, maulik goswami wrote: > *require "watir-webdriver"* > *require "gmail"* > *br = Watir

Re: [wtr-general] [Watir-Webdriver] How can i access Gmail

2013-07-10 Thread maulik goswami
*require "watir-webdriver"* *require "gmail"* *br = Watir::Browser.new :chrome * *br.goto "gmail.com"* *gmail = Gmail.new("email address", "password") * *gmail.inbox.count(:unread)* *gmail.inbox.click(:unread, :from => "no reply registration email").label("Confirm Verification")* I was able to si

Re: [wtr-general] [Watir-Webdriver] How can i access Gmail

2013-07-10 Thread Željko Filipin
On Wed, Jul 10, 2013 at 12:12 PM, maulik goswami wrote: > I've installed ruby *Gmail* gem and also made a sample script but it only > goes to *Gmail* website after that script stops and returns the null > value. > Please share relevant Ruby code and error messages, if any. Željko -- https://lean

[wtr-general] [Watir-Webdriver] How can i access Gmail

2013-07-10 Thread maulik goswami
I am new to Watir. As a part of my registration script i need to access the *Gmail* and need to click on verification link to move further with the steps of registration. So how can i achieve it ? I've installed ruby *Gmail* gem and also made a sample script but it only goes to *Gmail* webs

Re: [wtr-general] [Watir-webdriver] - Drag and drop using watir webdriver

2013-07-05 Thread John Fitisoff
ooglegroups.com Sent: Wednesday, July 3, 2013 6:53 AM Subject: [wtr-general] [Watir-webdriver] - Drag and drop using watir webdriver Hi there, I'm trying to drag and drop an element in webpage through the below code: Step def: When(/^I drag and drop Basket rule to the position slot

Re: [wtr-general] [Watir-webdriver] - Drag and drop using watir webdriver

2013-07-03 Thread Joe Fleck
Hi, I have notice different behavior in the drag n drop method depending on the os and browsers used. I originally developed the drag_n_drop step on a Mac/Firefox combo and will see the object being moved. Though when I run the same script on a WIN7 IE8 VM the visible object doesn't move but the

[wtr-general] [Watir-webdriver] - Drag and drop using watir webdriver

2013-07-03 Thread watir webdriver
Hi there, I'm trying to drag and drop an element in webpage through the below code: Step def: When(/^I drag and drop Basket rule to the position slot$/) do @browser.span(:class => "draggable ui-draggable").drag_and_drop_on(@browser.div(:class => "droparea ui-droppable ui-sortable")) end *The s

Re: [wtr-general] Watir project folder Structur

2013-06-19 Thread Željko Filipin
On Wed, Jun 19, 2013 at 2:35 PM, Vincy C wrote: > Can anyone tell me how to create folder structure for watir and watir > webdriver You should read this book: https://leanpub.com/cucumber_and_cheese Željko -- https://leanpub.com/watirbook -- -- Before posting, please read http://watir.com/

[wtr-general] Watir project folder Structur

2013-06-19 Thread Vincy C
Hi All, I am new guy in watir and ruby... I want to do automate my app using watir. Can anyone tell me how to create folder structure for watir and watir webdriver Thanks -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@g

[wtr-general] Watir-webdriver: can't start new session for IE9

2013-05-30 Thread Anna Voytenko
How can I start absolutely new session for IE browser? I use the following code: @browser = Watir::Browser.new :ie @browser.cookies.clear @browser.goto "http://..."; but when I run tests, I'm always seeing that IE browser starts with logged in user that was used for the previous te

[wtr-general] Watir-webdriver: hover doesn't work for FF 20

2013-05-25 Thread Anna Voytenko
Hi guys, I faced the issues related to hover method in FF20. hover works in chrome but doesn't work for FF. I've tried to do chenge profile.native_events but it didn't help; also I played with fire_event method- the same result When I run tests in FF I receive the following error in the line whe

[wtr-general] Watir-webdriver : How to select an option from the list

2013-05-17 Thread watir webdriver
Hi, In my application I've to select an option from the list.I tried as below but its not selecting the option: @browser.select_list(:name => "siteName").select "ccfashion" HTML code: burton burtoneu cathkidston ccfashion chemistdirect cloggs coggles colorway coopersofstortford cottontraders c

Re: [wtr-general] Watir-Classic 3.7.0 Released!

2013-05-14 Thread Jarmo Pertman
As its name says - it is classic. Most of the Watir-WebDriver API is derived from that original gem and currently Watir-Classic and Watir-WebDriver have almost the same API. If you're not testing against IE or need to test against different browsers, then there's no need to use Watir-Classic.

Re: [wtr-general] Watir-Classic 3.7.0 Released!

2013-05-14 Thread Željko Filipin
On Mon, May 13, 2013 at 11:58 AM, Luis Espla wrote: > what is the difference between watir-classic and watir-webdriver. watir-classic used to be watir gem. It runs only on Windows and drives only Internet Explorer. Watir webdriver works on all major operating systems and drives all major browse

Re: [wtr-general] Watir-Classic 3.7.0 Released!

2013-05-13 Thread Luis Espla
What do you use watir-classic? On 14 May 2013 05:00, Karim Rayani wrote: > Hi, > > Watir-webdriver is a modern version of the Watir API based on > Selenium (web > driver) > > -Karim > > > On Mon, May 13, 2013 at 3:28 PM, Luis Espla wrote: > >>

Re: [wtr-general] Watir-Classic 3.7.0 Released!

2013-05-13 Thread Karim Rayani
Hi, Watir-webdriver is a modern version of the Watir API based on Selenium (web driver) -Karim On Mon, May 13, 2013 at 3:28 PM, Luis Espla wrote: > Hello, > what is the difference between watir-classic and watir-webdriver. When I > do "gem lis

Re: [wtr-general] Watir-Classic 3.7.0 Released!

2013-05-13 Thread Luis Espla
Hello, what is the difference between watir-classic and watir-webdriver. When I do "gem list" I only have watir-webdriver, is it right? Best Regards On 10 May 2013 22:19, Jarmo wrote: > Good news everyone! > > I'm happy to announce that Watir-Classic 3.7.0 has been released! > > Put it into yo

[wtr-general] Watir-Classic 3.7.0 Released!

2013-05-10 Thread Jarmo
Good news everyone! I'm happy to announce that Watir-Classic 3.7.0 has been released! Put it into your Gemfile: gem "watir-classic", "~> 3.7.0" Or install it manually with: gem install watir-classic Changes: * Add #required? method for input elements. * Improve the stability of drag and dro

Re: [wtr-general] Watir-Webdriver Installation Issue

2013-05-09 Thread Željko Filipin
On Thu, May 9, 2013 at 10:47 AM, Sohail Mirza wrote: > I am trying to install Watir-Webdriver and try to work on it but getting > the following error :( In the future, please copy/paste error messages. Screen shots are not searchable. Try this: browser = Watir::Browser.new :chrome Željko --

[wtr-general] Watir-Webdriver Installation Issue

2013-05-09 Thread Sohail Mirza
Hi, I am trying to install Watir-Webdriver and try to work on it but getting the following error :( [image: Inline image 1] Any comments please. -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups

Re: [wtr-general] watir installation issues

2013-05-01 Thread Anne Mordkoff
that did it!!! Thank you! On Wed, May 1, 2013 at 2:25 PM, Dan wrote: > I think the easiest thing to do is drop the IE and/or chromedriver into > the C:\Ruby\Ruby200\bin directory and then try again. > > Dan > > > On Wednesday, May 1, 2013 1:27:13 PM UTC-4, Anne wrote: >> >> So, I'm also doing

Re: [wtr-general] watir installation issues

2013-05-01 Thread Dan
I think the easiest thing to do is drop the IE and/or chromedriver into the C:\Ruby\Ruby200\bin directory and then try again. Dan On Wednesday, May 1, 2013 1:27:13 PM UTC-4, Anne wrote: > > So, I'm also doing a fresh install on a new PC. I followed the > instructions above (although not necess

Re: [wtr-general] watir installation issues

2013-05-01 Thread Anne
So, I'm also doing a fresh install on a new PC. I followed the instructions above (although not necessarily in the same order). I put ieDriverServer in a folder called WebDrivers and added that to my PATH. This is the list of gems installed. *** LOCAL GEMS *** bigdecimal (1.2.0)

<    1   2   3   4   5   6   7   8   9   10   >