[wtr-general] Re: Privacy Policy

2019-07-19 Thread Chuck van der Linden
WATIR is a code library, not a website or online service.. it doesn't have a privacy policy. There's nothing to keep private, you don't log in, you don't have an account, you don't share personal info with the library or even the watir.com website. The closest you get to that kind of

[wtr-general] Re: Click succeeds but action as the result of that click is not triggered

2019-07-19 Thread Chuck van der Linden
On Sunday, June 16, 2019 at 5:47:51 AM UTC-7, rajagopalan madasami wrote: > > Hi Titus, > > I have raised this issue in Geckodriver, but I want to ask you whether > this kind of problem can be resolved from programming level in WATIR > > Here is the link > >

[wtr-general] Re: How to write and regular expression in WATIR?

2019-07-19 Thread Chuck van der Linden
On Saturday, June 22, 2019 at 9:52:28 AM UTC-7, rajagopalan madasami wrote: > > Consider the below code > > b.element(name: /hello|username/).send_keys 'testid' > > > `/hello|username/` represents the or operator, that means it searches the > name which is hello or username, how do I write

Re: [wtr-general] Re: visible_text is deprecated

2017-12-14 Thread Chuck van der Linden
On Wednesday, December 13, 2017 at 10:23:58 AM UTC-8, rajagopalanmadas...@gmail.com wrote: > > It's not possible to locate element without xpath in some places, xpath is > pretty important and also unlike watir-classic, new WATIR which uses > selenium-webdriver does the exceptional job with

Re: [wtr-general] Re: visible_text is deprecated

2017-12-13 Thread Chuck van der Linden
On Tuesday, December 12, 2017 at 9:56:46 AM UTC-8, rajagopalan madasami wrote: > > I am using watir over selenium for two reasons, one reason is waiting > timings are maintained by local language binding but selenium is > maintaining timing from driver level , since selenium uses the timing

[wtr-general] Re: visible_text is deprecated

2017-12-12 Thread Chuck van der Linden
use Watir as opposed to Selenium, given your preferences, still exists. On Tuesday, December 12, 2017 at 9:17:10 AM UTC-8, Chuck van der Linden wrote: > > > > On Monday, December 11, 2017 at 10:29:52 PM UTC-8, > rajagopalanmadas...@gmail.com wrote: >> >> Can you pl

[wtr-general] Re: visible_text is deprecated

2017-12-12 Thread Chuck van der Linden
On Monday, December 11, 2017 at 10:29:52 PM UTC-8, rajagopalanmadas...@gmail.com wrote: > > Can you please pay a little attention to the ongoing conversation? The > conversation is not about using element() or using link() function, the > conversation is about performance issue while I use

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

2017-12-11 Thread Chuck van der Linden
On Monday, December 11, 2017 at 1:15:38 AM UTC-8, 江南 wrote: > > Thanks for all your information they are very helpful. > > I do understand the concept of Cucumber. > > I'm working directly with a Developer, I personally have not come up with > this idea but my Developer has asked me about

[wtr-general] Re: visible_text is deprecated

2017-12-11 Thread Chuck van der Linden
On Sunday, December 10, 2017 at 9:03:18 AM UTC-8, rajagopalan madasami wrote: > > It is known that using :visible_text will not have the same performance. > It has to iterate over elements, where as the Selenium ones would not. The > benefit of :visible_text is that we can apply it across all

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

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

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

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

[wtr-general] Re: Chrome Headless Browser

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

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

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

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

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

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

2017-12-07 Thread Chuck van der Linden
On Wednesday, December 6, 2017 at 10:19:09 AM UTC-8, Arik Jones wrote: > > You could create a browser session in `features/support/env.rb` and assign > it to an instance variable > and then use that session in your feature files. Its basically a global > hook, but you'll need to end that session

Re: [wtr-general] Re: Removal of :name attribute from divs and spans

2017-11-22 Thread Chuck van der Linden
On Tuesday, November 21, 2017 at 8:45:45 AM UTC-8, Titus Fortner wrote: > > we're actually looking to relax the strict requirements in an upcoming > release, so this might not be an issue soon. > > On Nov 21, 2017 10:13 AM, "Super Kevy" wrote: > >> Check W3Shools

[wtr-general] Re: Log file for test results

2017-11-06 Thread Chuck van der Linden
On Saturday, November 4, 2017 at 11:16:43 AM UTC-7, Aqua wrote: > > Hi All, > > I am new to Watir and Ruby. I am trying to create a Log file to capture > log messages to > 1. validate successful google search and > 2. unsuccessful google search attempt > > I am using Eclipse IDE for executing

[wtr-general] Re: link and link_text not working in Watir 6?

2017-10-25 Thread Chuck van der Linden
On Wednesday, October 25, 2017 at 12:30:36 AM UTC-7, rajagopalanmadas...@gmail.com wrote: > > Please reject my last mail, I was wrong about b.link(link_text: > 'something').click > > Read this one, I have explained the advantage of link: over xpath: > b.element(text: 'something').click > > > It

[wtr-general] Re: link and link_text not working in Watir 6?

2017-10-24 Thread Chuck van der Linden
two thumbs up on the below admonishment/advice. On Tuesday, October 24, 2017 at 7:52:36 AM UTC-7, Titus Fortner wrote: > > If you want to use Watir without its powerful element location API, and > use only the element method and only Selenium locators, you are more than > welcome to do that.

[wtr-general] Re: How to not overwrite current html report?

2017-10-18 Thread Chuck van der Linden
On Wednesday, October 18, 2017 at 8:27:57 AM UTC-7, 江南 wrote: > > Hi, > > I am using Watir Ruby and in my cucumber.yml file I have this line of code > to produce the report: > > default: --no-source --color --format pretty --format html --out results.html > > > > But this code overwrites the

Re: [wtr-general] Re: How to identify the index of an element by text

2016-07-20 Thread Chuck van der Linden
On Tuesday, July 19, 2016 at 6:44:36 PM UTC-7, Titus Fortner wrote: > > The pattern that I'm assuming Soori is asking about is one I often use for > lists. Say I have a list of addresses and I want to delete one. > > I'll do something like this: > > def delete_address(address) > index =

Re: [wtr-general] Re: Passing value to is not working

2016-07-19 Thread Chuck van der Linden
On Friday, June 10, 2016 at 9:51:07 AM UTC-7, sivam wrote: > > How to set native events false on IE using watir. This could be one of the > reason. > On Jun 9, 2016 4:13 PM, "Mathusudhanan R" wrote: > > I tried placing first line "click event" on do while loop with some >

[wtr-general] Re: cannot load such file — Config/Data/data_form.yml (LoadError)

2016-07-19 Thread Chuck van der Linden
On Monday, July 11, 2016 at 8:31:30 AM UTC-7, Ajay Reddy wrote: > > Hi All, > > I am getting this "cannot load such file — Config/Data/data_form.yml > (LoadError)", I need your help to fix this issuse. > > > require "./TestData" > require 'yaml'class CardSubmission < Application > include

[wtr-general] Re: Errno::ENOENT: No such file or directory - config\data/default.yml

2016-07-19 Thread Chuck van der Linden
On Tuesday, July 12, 2016 at 2:29:28 PM UTC-7, Ajay Reddy wrote: > > Hi All, > > Can any one help me with this issue. > > > > > > Thank You, > Ajay. > >> Can any one help me with this issue. as asked? No. Nobody here can help you as it is unclear what your issue is beyond the title.

[wtr-general] Re: XLSX file format error: File reports/excel_result.xlsx not found (Zip::Error)

2016-07-19 Thread Chuck van der Linden
On Sunday, July 17, 2016 at 5:40:42 PM UTC-7, Ajay Reddy wrote: > > Hi All, > I am generating excel report. > > Here is my code: > module WriteReport > require 'spreadsheet' > require 'rubyXL' > require 'time' > > def self.get_blank_row > workbook = RubyXL::Parser.parse($result_xl) >

[wtr-general] Re: How to identify the index of an element by text

2016-07-19 Thread Chuck van der Linden
On Monday, July 18, 2016 at 2:05:06 PM UTC-7, Soori wrote: > > I have a scenario where there is a grid of elements with same class name. > I need to identify the element position using index. > > For example: > > > > text1 > text3 > text4 > text23 > text6 > text88 > text3 > > > > > in the

[wtr-general] Re: How to identify the index of an element by text

2016-07-19 Thread Chuck van der Linden
On Monday, July 18, 2016 at 2:05:06 PM UTC-7, Soori wrote: > > I have a scenario where there is a grid of elements with same class name. > I need to identify the element position using index. > > For example: > > > > text1 > text3 > text4 > text23 > text6 > text88 > text3 > > > > > in the

[wtr-general] Re: Watir-webdriver throws 'not clickable' error even when element is visible, present

2016-04-22 Thread Chuck van der Linden
On Tuesday, April 19, 2016 at 4:08:52 AM UTC-7, Awesome Possum wrote: > > Hence the question are 1) Why does Watir throw an exception 'Element not > clickable' even when the element is visible and present? See ruby code ( I > have picked a random company website for an example) and the results

[wtr-general] Re: Watir-Webdriver and Docker

2016-03-20 Thread Chuck van der Linden
On Friday, January 29, 2016 at 2:42:52 AM UTC-8, tkp wrote: > > *Aim : *Dockerizing Watir-Webdriver tests > > *Environment:* > OS : Ubuntu 14.04 > Browser : FF 43 > Docker : v1.7.1 > > *Issue:* > Currently it is observed that opening a browser instance and navigating to > a website is very

[wtr-general] Re: Standalone app testing?

2016-03-19 Thread Chuck van der Linden
On Saturday, March 5, 2016 at 5:11:29 AM UTC-8, 4xga...@gmail.com wrote: > > I am investigating Watir and would like to know if I can use it to test > standalone apps. (Example: I want to learn by 'testing' the Windows > calculator.) > I searched 'GUI' and 'Standalone' with no hits... > On

[wtr-general] Re: Watir ignores the maximum character length on a text field.

2016-03-19 Thread Chuck van der Linden
On Monday, March 14, 2016 at 4:35:22 PM UTC-7, Damien Wood wrote: > > Hi, > > I have an Angular front end and I am using Watir to test. > > One of the text fields 'First Name' has a max character length of 32. > > When I try entering something with 33 characters manually, as you would > expect,

[wtr-general] Re: Telerik reports contents validation using watir

2016-03-19 Thread Chuck van der Linden
On Wednesday, February 10, 2016 at 10:47:22 AM UTC-8, Kiran Darekar wrote: > > Hi, > We are using telerik reporting tool. I tried to locate various elements > but telerik is encrypting element's attributes & it is different every time > when we load the reports. > Can somebody help me to create

[wtr-general] Re: Html Reports in Watir

2016-03-19 Thread Chuck van der Linden
I suggest asking a new question, and providing relevant code, rather than necro'ing a 7 year old thread. On Thursday, February 4, 2016 at 2:23:02 PM UTC-8, Ajay Sithagari wrote: > > Hi, > How to display the "DATE AND TIME" inside the report. > > Thanks, > > On Thursday, June 26, 2008 at

[wtr-general] Re: Persistent authentication http/https

2015-12-15 Thread Chuck van der Linden
have you considered that any site that requests credentials NOT over HTTPS is a security risk to have those credentials stolen? I'd file as a bug that you are not immediately redirected to HTTPS when it requests credentials. as to having it happen automatically.. you could construct a method

[wtr-general] Re: unable to locate element using {browser.element(:tag_name='td', :id='dijit_MenuItem_16_text')

2015-07-21 Thread Chuck van der Linden
So specifying the entire path to get to an element tends to create brittle code, one error in the 'chain' or one change to the page and you are sunk secondly, in general it is best to use the method for the element type you want, this ensures that proper methods will be present in the returned

[wtr-general] Re: Fetch number from a JavaScript function on the page

2015-07-21 Thread Chuck van der Linden
On Wednesday, June 10, 2015 at 10:08:48 AM UTC-7, kristofBLR wrote: Hello. I am trying to create a parser, that will scrape info about iphone warranty status. I have an URL - https://selfsolve.apple.com/agreementWarrantyDynamic.do

[wtr-general] Re: Chrome headless testing with watir-webdriver

2015-07-21 Thread Chuck van der Linden
On Thursday, June 18, 2015 at 5:33:52 PM UTC-7, RM wrote: Hello, I have 'headless' gem installed and is running fine with watir-webdriver (it use the default firefox headless). would like to know if anyone has successfully done headless testing with chrome and watir-webdriver? Any help

[wtr-general] Re: Fetch number from a JavaScript function on the page

2015-07-21 Thread Chuck van der Linden
On Wednesday, June 10, 2015 at 10:08:48 AM UTC-7, kristofBLR wrote: Hello. I am trying to create a parser, that will scrape info about iphone warranty status. I have an URL - https://selfsolve.apple.com/agreementWarrantyDynamic.do and i need to fill the form with an IMEI and press Continue

[wtr-general] Re: Button Element not visible in watir

2015-07-21 Thread Chuck van der Linden
On Tuesday, July 21, 2015 at 5:24:04 AM UTC-7, Mahesh Mesta wrote: I'm using watir to perform automated testing for an application and trying to click on a submit button once I select options for select list and fill up the form.However on clicking the button, it throws element not found

[wtr-general] Re: Tutorial for Minitest with Watir Web driver for testing Web App

2015-07-21 Thread Chuck van der Linden
On Thursday, July 9, 2015 at 10:02:43 AM UTC-7, VIDYA SAGAR POGIRI wrote: Hello , I m doing automation testing for a .net web app using ruby i'm more interested to use minitest with watir-web driver.So kindly send me any references or tutorials regarding this and thanks a lot for helping in

Re: [wtr-general] Drag n Drop not working for me with Firefox version25

2015-03-19 Thread Chuck van der Linden
Why use such an old version of Firefox? Unless you are in a very unique situation aprox zero real world users will be using a Firefox from 2013. Most home users will be on a very current version such as 35 or 36, most corporate users on the same, or the ESR release (31, moving to 38 in 2-5

[wtr-general] Can I catch console errors using watir webdriver

2015-03-18 Thread Chuck van der Linden
If you can get a little help from your developers this is doable see http://watirmelon.com/2012/12/19/using-webdriver-to-automatically-check-for-javascript-errors-on-every-page/ for one approach -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be

[wtr-general] Re: Check datatypes

2015-03-03 Thread Chuck van der Linden
On Monday, March 2, 2015 at 10:35:27 PM UTC-8, Ping-0t wrote: Hello Guys, Can someone help me with this: require 'rubygems' require 'watir' require 'test/unit' require 'win32ole' gem test-unit class View_OrderDetails Test::Unit::TestCase $sales_order_no = SO1 # $fields

[wtr-general] Re: Did a Firefox update just break Watir Webdriver?

2015-03-03 Thread Chuck van der Linden
On Tuesday, March 3, 2015 at 12:22:12 AM UTC-8, Philip Undisclosed wrote: Wondering if others are seeing this or if it's specific to my configuration. irb(main):003:0 b = Watir::Browser.new :firefox Selenium::WebDriver::Error::WebDriverError: unable to obtain stable firefox connection in

[wtr-general] Re: Can't get the content generated by ajax response

2015-03-03 Thread Chuck van der Linden
On Tuesday, March 3, 2015 at 12:28:05 AM UTC-8, Gao Boswell wrote: I have a spider that want to crawl some data of a movie site, but I found that these data was generated through ajax after the page loaded,and my code is: require 'nokogiri' require 'watir-webdriver' browser =

[wtr-general] Re: Getting the line number of the error of the web application we are testing using watir. Is it possible?

2015-02-20 Thread Chuck van der Linden
if you can get cooperation from your developers there are some tactics where by you can get information about any JS errors. I do something like that, and for all failing tests one of the things the code does is check to see if there was a JS error that occured, and report the details if

[wtr-general] Re: watir-webdriver using ruby on skype...hope it will useful to everyone

2015-02-20 Thread Chuck van der Linden
Most of us have day jobs and would not be able to just respond to skype requests at the drop of a hat. On Wednesday, February 18, 2015 at 12:10:32 AM UTC-8, rocky wrote: Dear all, Sharing knowledge on skype,who are all interest send your skype id so that we can solve watir-webdriver

Re: [wtr-general] Re: How to display content of text file in the browser using watir?

2015-02-20 Thread Chuck van der Linden
On Tuesday, February 17, 2015 at 4:18:31 AM UTC-8, Hopper wrote: +1 for Cucumber. For a while now I've been looking for something that would output simple HTML reports with embedded screenshots for failures. Crucially, I wanted something simple and quick to implement. I had previously

[wtr-general] Re: Unexpected output..

2015-02-20 Thread Chuck van der Linden
On Thursday, February 19, 2015 at 10:50:18 PM UTC-8, Ping-0t wrote: Hello Guys, Again I am having trouble about my testing? I got this warnings in the inspect element console when I try to execute my codes [below]. Use of getPreventDefault() is deprecated. Use defaultPrevented instead.

[wtr-general] Re: MooTools 1.5.1: Unable to get property 'prototype' of undefined or null reference

2015-02-20 Thread Chuck van der Linden
um where does Watir factor into the question below? On Thursday, February 19, 2015 at 10:01:55 AM UTC-8, Michael wrote: Hello, Recently in IE 11.0.9600.17280 on Windows 7 I have been getting this error: Unable to get property 'prototype' of undefined or null reference The undefied or null

[wtr-general] Re: How to write a test script for login and logout in ruby in a firefox browser

2015-02-20 Thread Chuck van der Linden
On Wednesday, February 18, 2015 at 10:11:03 AM UTC-8, Hifi wrote: How to write a test script for login and logout in ruby in a firefox browser Try this http://lmgtfy.com/?q=login+test+script+example+watir -- -- Before posting, please read http://watir.com/support. In short: search

[wtr-general] Re: Ruby Watir to get specific html element of a page

2015-02-20 Thread Chuck van der Linden
On Tuesday, February 17, 2015 at 5:51:17 PM UTC-8, Nice Faith wrote: I have this line of codes: if @browser.text_field(:id = street).exists? puts street exist puts @browser.text_field(:id = street).html else puts street does not exist end and the result is:

[wtr-general] Re: watir-webdriver using ruby on skype...hope it will useful to everyone

2015-02-20 Thread Chuck van der Linden
(sorry hit early)..Those of us that can respond rapidly and don't mind doing so are usually on IRC https://github.com/watir/watir/wiki/IRC-Channel On Friday, February 20, 2015 at 12:15:27 AM UTC-8, Chuck van der Linden wrote: Most of us have day jobs and would not be able to just

[wtr-general] Re: Ruby Watir to get specific html element of a page

2015-02-17 Thread Chuck van der Linden
On Tuesday, February 17, 2015 at 1:32:36 AM UTC-8, Nice Faith wrote: Ahmf. the web element is present..But when I try to print/put it it doesn't work. can you provide us with the URL to the page you are working with? what does 'it doesn't work' mean? did you get an error, Can you

[wtr-general] Re: verify if checkbox is checked

2015-02-17 Thread Chuck van der Linden
On Wednesday, January 28, 2015 at 7:27:23 AM UTC-8, Super Kevy wrote: Based on this syntax try: label class=custom-checkbox checked data-bind=css: { checked: isDependent() }, click: toggleAsDependent spanDependent to an existing member?/span input type=checkbox/ i/ /label

[wtr-general] Re: Is it possible to locate/set checkbox shadowed by Label For element

2015-02-17 Thread Chuck van der Linden
On Thursday, January 8, 2015 at 12:26:20 AM UTC-8, mc060200778 wrote: HI, I want to set following checkbox but it is shadowed by Label For element. So i can't execute b.checkbox().set method... it is giving an error. How do i set checbox in this case? input type=checkbox

[wtr-general] Re: Watir does not supply credentials to IE

2015-02-17 Thread Chuck van der Linden
On Saturday, January 24, 2015 at 2:55:32 PM UTC-8, Bhuvan Sundar wrote: Hi All, I am new to Ruby.Just beginner.Started with below procedure 1. installed Ruby 1.9.3 version on windows 7 2.installed watir-webdriver had written code for gmail login on chrome.Here my problem is unable to

[wtr-general] Re: Need to to scroll to bottom of list so remainder of items display and watir-webdriver can interact with them

2015-02-16 Thread Chuck van der Linden
See this answer http://stackoverflow.com/a/28556067/409820 to a recent SO posting by someone with a similar issue. I was able to scroll an example of that control by using .drag_and_drop_by on the div with the 'slimScrollBox' class On Monday, June 9, 2014 at 12:00:28 PM UTC-7, Joe Fl wrote:

[wtr-general] Re: Ruby Watir to get specific html element of a page

2015-02-16 Thread Chuck van der Linden
On Monday, February 16, 2015 at 10:31:04 PM UTC-8, Nice Faith wrote: Hai Guys. I am just trying to explore or learn Watir. I have already try this one: puts browser.text and it works. I would like to ask if it is possible to display or print only the specific element or html tags. For

[wtr-general] Re: Does watir checks inputs datatype?

2015-02-16 Thread Chuck van der Linden
On Tuesday, February 10, 2015 at 9:21:45 PM UTC-8, Ping-0t wrote: Hello Again guys, I am just wondering if watir checks inputs datatype? I keep on searching here since this morning but until now I cannot find the answer. Someone knows? Because I need to know for my task.. Thanks again

[wtr-general] Re: Validating a drop down value which is disabled

2015-02-16 Thread Chuck van der Linden
On Monday, February 2, 2015 at 2:35:24 PM UTC-8, praneetha pagidimarri wrote: Hi, I've to validate the value of a disabled dropdown on a page. I used an instance variable to read all the values and used as .text to validate against the page values. Fields which are in enable mode and are

[wtr-general] Re: Is it possible that slow internet connection can affect an automation testing?

2015-02-16 Thread Chuck van der Linden
On Monday, February 16, 2015 at 9:53:41 PM UTC-8, Ping-0t wrote: Hello again Guys.. I was wondering because yesterday I run my codes successfully but when I execute this code today, It gives me an error[pasted below]. And as far as I remember I didn't touch my codes because I copied one

Re: [wtr-general] Re: How to display content of text file in the browser using watir?

2015-02-16 Thread Chuck van der Linden
On Monday, February 16, 2015 at 6:38:47 PM UTC-8, Joe Fl wrote: Hi, Here is a discussion about using CLReport which is disguised here in the group. https://groups.google.com/forum/#!searchin/watir-general/Clreport/watir-general/TYJzYeLmC2c/36vWuMQ5WHMJ you can build a nice report and

[wtr-general] If else not working

2015-02-16 Thread Chuck van der Linden
What error? I see a warning, but no error. Of course your script tests nothing, there are no validations in the script, no assertions. Just an if statement which itself really has no condition because nothing is being checked. Your if amounts to ' if object' where your object is a

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

2014-01-21 Thread Chuck van der Linden
On Thursday, January 9, 2014 3:52:53 PM UTC-8, Sanjeev Singh wrote: This is so nice of you Chuck. This really worked. Both the codes to click on the button also worked. Just one thing I am unsure about is the behavior of the Firefox browser. When I run the below 3 lines of code, I get the

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 dom

[wtr-general] Re: problems with watir and win32ole

2014-01-08 Thread Chuck van der Linden
On Monday, January 6, 2014 6:47:30 AM UTC-8, marcwest...@gmail.com wrote: I have an issue where when I require 'win32ole' in a script I then get an error when trying to deal with a modal dialog. When I remove require 'win32ole' the error goes away. The error I am getting is...

[wtr-general] Re: Logging HTTP traffic via a proxy while running webdriver tests?

2014-01-08 Thread Chuck van der Linden
, but obviously that's not going to work. If you have code you could share, that would be wonderful and save me a lot of trial and error On Tuesday, January 7, 2014 2:31:45 PM UTC-5, Chuck van der Linden wrote: This stackoverflow is very similar, and has no answer so far http://stackoverflow.com

[wtr-general] Re: NoMethodError: undefined method 'show_all_objects' for #Watir::Browser:0x28..............

2014-01-08 Thread Chuck van der Linden
On Tuesday, January 7, 2014 10:48:45 PM UTC-8, Sanjeev Singh wrote: Hi All, I am getting the below error when I type the below code irb require watir ie = Watir::Browser.new :ie ie.goto http://www.google.com; #till this point it works fine ie.show_all_objects gives the error

[wtr-general] Re: test coverage

2014-01-08 Thread Chuck van der Linden
sure, monitor the server code with some kind of coverage tool while the tests execute. please note that 'code coverage' is a terrible metric for anything to do with the quality of your testing. It is for example entirely possible to write 'tests' that will never detect a single error or

[wtr-general] Re: test is taking a long time in webdriver v classic

2014-01-08 Thread Chuck van der Linden
With the way you have things, I think it is having to relocate the row and cells each time it goes through the loop While it does not answer the slowness question, maybe it would be faster to build a collection of cells for each of the proper rows, (so that is done once) and then work directly

[wtr-general] Re: Major delay with watir script execution. Possible newbie error.

2014-01-08 Thread Chuck van der Linden
On Sunday, December 29, 2013 11:36:23 PM UTC-8, Colin Milyoni wrote: Hi folks, I'm new to both ruby and to watir, so I apologize in advance if this is a massive rookie mistake. Assistance of any level is greatly appreciated. My problem is that I am running into a gigantic delay when

[wtr-general] Re: How to test infinite scrolling on web page

2014-01-08 Thread Chuck van der Linden
On Friday, December 20, 2013 1:53:20 AM UTC-8, Anisha wrote: Hi, I am using watir-webdriver. The application that I am testing has infinite scrolling implemented. It is more or less like 1000 results present but dis[played 10 at a time and next 10 results appear on scrolling the page, so

[wtr-general] Re: watir syntax for span class=LinkClassAvailability

2014-01-07 Thread Chuck van der Linden
On Sunday, December 29, 2013 3:55:48 AM UTC-8, 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 span class=LinkClassAvailability in watir 2 2nd question how to use loops in testwise re the second

Re: [wtr-general] Re: watir, watir-webdriver, watir-classic: history and current state?

2014-01-07 Thread Chuck van der Linden
On Monday, December 30, 2013 7:53:06 AM UTC-8, Željko Filipin wrote: On Wed, Dec 25, 2013 at 6:18 PM, Jarmo Pertman jar...@gmail.comjavascript: wrote: It's more or less the same. +1 Željko Agreed. The big differences between the two are - Cross browser support - watir has

Re: [wtr-general] Anyone else having trouble with latest chromedriver for mac?

2013-08-07 Thread Chuck van der Linden
On Tuesday, August 6, 2013 2:56:32 AM UTC-7, Željko Filipin wrote: On Sat, Aug 3, 2013 at 12:15 AM, Chuck van der Linden cvande...@climate.com javascript: wrote: Is anyone else that tends to work with a mac and Chrome having problems with the latest chromedriver? after installing it all

Re: [wtr-general] Project Structure for cucumber+watir

2013-08-07 Thread Chuck van der Linden
On Monday, August 5, 2013 11:06:11 AM UTC-7, Chuck van der Linden wrote: On Wednesday, July 3, 2013 12:36:16 AM UTC-7, Željko Filipin wrote: On Wed, Jul 3, 2013 at 8:08 AM, Vincy C vinc...@gmail.com wrote: Can anyone tell me the project structure for cucumber+watir project in Net beans

[wtr-general] Re: I would love to say to watir to use hidemyass vpn pro

2013-08-07 Thread Chuck van der Linden
On Tuesday, August 6, 2013 8:50:53 AM UTC-7, dada wrote: I would love to say to watir to use hidemyass vpn pro and connect for that test to particulair country. I searched and found that can be done with proxy, but cant find working version, can someone give me some working examples.

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

[wtr-general] Re: Click a particular X and Y co-ordinates in the browser pane by using watir webdriver

2013-08-07 Thread Chuck van der Linden
On Thursday, August 1, 2013 10:40:46 PM UTC-7, Srinivas Desai wrote: Hi All, I need to know how can we click on a particular x and y co-ordinates in the browser pane by using watir web driver. I already have x,y co-ordinates with me, i just need to click. Please let me know how it can be

[wtr-general] Re: After FF update on Ubuntu execute_script is not working

2013-08-07 Thread Chuck van der Linden
strange that after a gem update you are getting errors from the 2.33 version of webdriver when 2.34 is the latest.. are you using bundler? if so did you try running 'bundle update' ? On Wednesday, August 7, 2013 5:25:17 AM UTC-7, Tadeu Panato wrote: this morning I update the FF (23) in

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

2013-08-05 Thread Chuck van der Linden
On Monday, July 22, 2013 8:31:42 AM UTC-7, Alex Shtayer wrote: 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 =

Re: [wtr-general] Unable to access the elements in a page.

2013-08-05 Thread Chuck van der Linden
On Monday, July 22, 2013 2:22:07 AM UTC-7, Željko Filipin wrote: On Mon, Jul 22, 2013 at 10:24 AM, Sachin Uplaonkar up.s...@gmail.comjavascript: wrote: irb(main):008:0 b.text.include? suplaonk Selenium::WebDriver::Error:: **NoSuchElementError: Unable to find element with tag name ==

[wtr-general] Re: require Watir Vs Include Watir

2013-08-05 Thread Chuck van der Linden
On Monday, August 5, 2013 3:08:11 AM UTC-7, Nikhil Nerkar wrote: Thanks. Another similar question I have... What is the difference between require *watir * require *water-classic *? Watir is a wrapper around watir-classic (the original IE only version) and watir-webdriver (the new version

Re: [wtr-general] Cannot open excel

2013-08-05 Thread Chuck van der Linden
On Monday, August 5, 2013 9:24:22 AM UTC-7, Oscar.Rieken wrote: 1. Don't try to automate against gmail there a bunch of posts explaining why. I'll just say it changes a lot. you never really know what you are getting. 2. Opening an Excel document has nothing to do with watir. for the

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

[wtr-general] Re: Help with ul class values

2013-08-05 Thread Chuck van der Linden
On Saturday, June 29, 2013 10:29:28 AM UTC-7, Fred Cassirer wrote: Hi, I have some page source that looks like: div class=battery ul class=battery-level-list data-battery-level=5.71535li class=green1/li li class=green1/li

[wtr-general] Re: require Watir Vs Include Watir

2013-08-02 Thread Chuck van der Linden
google 'ruby require vs include' they are very different, and for most users, unless you are doing something very specific, you want to use require. On Friday, August 2, 2013 6:22:15 AM UTC-7, Nikhil Nerkar wrote: Hia silly question :) What is the difference between require watir

[wtr-general] Re: Adobe Air and watir web driver

2013-08-02 Thread Chuck van der Linden
That would do it On Tuesday, July 23, 2013 8:15:07 AM UTC-7, fabian@gmail.com wrote: It's not because of Adobe Air. It's because the form is within an iframe... fabian El martes, 23 de julio de 2013 10:57:01 UTC-3, fabian@gmail.comescribió: Hi Guys, Anyone had problems with

[wtr-general] Re: Testing Methodology with Watir

2013-08-02 Thread Chuck van der Linden
On Monday, July 22, 2013 11:05:38 PM UTC-7, Jorge Gastaldi wrote: This is something that must be somewhere on the net, but I couldn't find. I have used Watir for some scripts, small things. But I think that could be very nice to use it at work as an integral part of the

[wtr-general] Anyone else having trouble with latest chromedriver for mac?

2013-08-02 Thread Chuck van der Linden
Is anyone else that tends to work with a mac and Chrome having problems with the latest chromedriver? after installing it all my scripts started failing. Rolling back to the older version got things working again. Details: I have a script that is working pretty well and is generally very

[wtr-general] Re: watir-classic 3.2.0 - issue with file_field in IE9

2013-08-02 Thread Chuck van der Linden
On Tuesday, July 30, 2013 5:09:49 AM UTC-7, tkp wrote: Currently, I am facing this issue too. But I have been running the same version of Watir (3.0.0) since the past 1 year but never encountered this. But now I can see this on all the installations of IE-9. Is there any workaround for the

[wtr-general] Re: Any fast ways to parse a table

2013-08-02 Thread Chuck van der Linden
I doubt it would beat the speed of nokogiri, but I have to wonder, if you were to assemble the row contents as a string or regex, lets call it 'expected', and then simply look for the row via .row(:text = expected). how fast would that be? On Monday, July 15, 2013 8:51:09 AM UTC-7, Super

[wtr-general] Re: Cannot identify button element by value?

2013-05-17 Thread Chuck van der Linden
, Chuck van der Linden wrote: See this SO issue for HTML sample, code samples tried in IRB http://stackoverflow.com/questions/16574999/watir-webdriver-unable-to-identify-button-by-value the short of it. I've got HTML like button type=button class=btn fb-user-type name=fbRadios value

[wtr-general] Re: Parse HTML from database in Watir?

2013-05-17 Thread Chuck van der Linden
On Wednesday, May 15, 2013 7:03:22 PM UTC-7, Lonny Eachus wrote: This is a rather urgent issue. I have some whole-page HTML in a database. I would like to get this HTML into Watir for parsing. How can I tell Watir to load this HTML into the DOM? I know I could write the data to a

[wtr-general] Re: click_no_wait not working

2013-05-17 Thread Chuck van der Linden
On Thursday, May 16, 2013 4:34:56 AM UTC-7, Marc Westwood wrote: I'm having some problems with click_no_wait. I have a button which when clicked displays a modaldialog. I am using click_no_wait when clicking the button the button turns yellow but I am not getting the modal dialog

Re: [wtr-general] Re: Need to get the count of sections within a specific div

2013-05-17 Thread Chuck van der Linden
On Thursday, May 16, 2013 6:46:09 AM UTC-7, Oscar.Rieken wrote: I think one day we will maybe stop doing other peoples work for them. to me this seems like too simple and with no examples of what they tried. why use your own brain when someone else's is available? OTOH if we insist on such

[wtr-general] Re: Problem with screenshot.save method

2013-05-17 Thread Chuck van der Linden
On Friday, May 17, 2013 3:13:58 AM UTC-7, LuisE wrote: Hello, I use @browser.screenshot.save file for when I have a problem, but when I use it and I have a Timeout Exception it doesn't work well, because it was waiting for page load totally(This page never load because It has a problem).

[wtr-general] Re: Watir webdriver - How to click on last td in table ?

2013-05-17 Thread Chuck van der Linden
.. still seems weird) On Thursday, May 16, 2013 4:19:35 AM UTC+7, Chuck van der Linden wrote: On Thursday, May 9, 2013 6:23:38 PM UTC-7, Ankita@Adslot wrote: If the number of rows is static, would make sense to use xpath and locate the last row with it and then click on image of the last

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

2013-05-17 Thread Chuck van der Linden
On Friday, May 17, 2013 10:45:54 AM UTC-7, Dan wrote: You may need a when_present because if that list is being populated via some other selection or ajax it might not be there when you're trying to select it. @browser.select_list(:name = siteName).when_present.select ccfashion +1

  1   2   3   4   5   6   7   8   9   10   >