[wtr-general] Re: Watir+Webdriver/Cucumber + Appium on Sauce Labs

2015-10-01 Thread Dan
If you're not testing a native app you don't need appium, so maybe that will simplify your search? On Monday, September 28, 2015 at 4:01:35 PM UTC-4, Farooq wrote: > > For more clarification and recommendations, I'm looking for the best way > to test the a mobile web app, NOT looking to test a

[wtr-general] Re: attach files to gmail when compose email, using mac OSC

2015-08-17 Thread Dan
Not sure if you're just practicing against Gmail, which I think is actually against the terms of service, but you're really not going to want to try and automate sending email through the GUI. You'd be much better off using a gem such as the one below: https://github.com/gmailgem/gmail On

[wtr-general] Re: Checking class equality in browser

2015-03-13 Thread Dan
Posting the error you get would help. You don't need the for i or the each. Just the below should do it: b.divs(:class = _again).each { |div| puts div.text } On Thursday, March 12, 2015 at 5:30:27 AM UTC-4, Vish wrote: Hey guys, I'm trying to get all divs in a page with class = _again and

[wtr-general] Re: newbie to watir-webdriver....

2015-02-19 Thread Dan
I would check out https://leanpub.com/cucumber_and_cheese if you're just getting started. On Wednesday, February 18, 2015 at 1:05:18 AM UTC-5, rocky wrote: Hi all, I am just stated to learn watir-webdriver,could anyone share sample framework code which will help me alot. Advance

[wtr-general] Re: recommended version of ruby/gem/driver

2015-02-04 Thread Dan
frame and iframe are different elements now, so you might want to check that. It used be that frame found frame and iframe, but no longer. On Wednesday, February 4, 2015 at 5:22:26 AM UTC-5, t.ton...@gmail.com wrote: Hi all, I used to use watir for testing 2 years ago. Recently I wanted to

[wtr-general] Clicking OK in a Save As dialog

2015-01-05 Thread Dan Sharp
on a mac, using Firefox, if the matters). But I can't automate it. Any help? Thanks! -Dan -- -- 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

[wtr-general] Re: Watir - Unable to capture Span Element Text value

2015-01-03 Thread Dan
Give this a try. From your description it sounds like you're looking for the text and not the value. You might also be running into a timing issue here. puts @browser.span(:id = *lblTitleHolder*).when_present.text On Friday, December 26, 2014 5:29:52 PM UTC-5, Ma St wrote: I am attempting

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

2014-10-21 Thread Dan
If you're testing from the presentation layer, it doesn't matter what's behind the scenes on the server. WATIR is a great way to test websites. On Monday, October 20, 2014 5:14:10 PM UTC-4, christina wrote: Hi, I have a question, has anyone experience with

[wtr-general] Re: Watir Webdriver Safari : A modal dialog was opened. The SafariDriver does not support interacting with modal dialogs

2014-07-22 Thread Dan
Your test continues after you get this error right? You might need to wrap the $driver.alert.ok in a rescue block if not, but selenium will do exactly what it says below for Safari and dismiss any alerts it sees automatically. On Monday, July 21, 2014 4:13:43 PM UTC-4, Dimitri Reynaga wrote:

[wtr-general] Re: Watir Webdriver Safari : A modal dialog was opened. The SafariDriver does not support interacting with modal dialogs

2014-07-22 Thread Dan
Ok. You have a couple of options then. $driver.alert.ok rescue nil or probably better $driver.alert.ok if b.alert.exists? On Tuesday, July 22, 2014 6:08:08 PM UTC-4, Dimitri Reynaga wrote: No, it stops completely unfortunately. On Tuesday, July 22, 2014 7:16:24 AM UTC-7, Dan wrote

[wtr-general] Re: running watir webdriver scripts on Virtualbox

2014-06-28 Thread Dan
You might be able to use selenium grid for this? Start up a grid server and then a node on the virtual box instance and connect it to the grid. On Thursday, June 26, 2014 1:49:34 PM UTC-4, Joe Fl wrote: Hi Everyone, I need some guidance. I have a mac and installed Virtualbox with Windows7

[wtr-general] Re: Sophisticated request, catch elements in array

2014-05-23 Thread Dan
You can do something like : browser.div(:id = folder-tree).spans(:class = fancytree-title) On Friday, May 23, 2014 8:29:23 AM UTC-4, QOExcel wrote: Hi ALL!! I have a page with elements, i can find some of them: span(:get_folder_names, :xpath =

[wtr-general] Re: Code stops working when executing on 2 simultaneous browsers

2014-04-03 Thread Dan
You really need to watch your variable scope when you try to thread thing like this. I've run multiple browsers at the same time without issue. Can you post an example of your code so we can help? On Wednesday, April 2, 2014 5:23:11 PM UTC-4, gunit888 wrote: I'm working on a script using

Re: [wtr-general] Clicking an empty Div with Watir

2014-03-21 Thread Dan
Using sleeps is a bad idea. There's plenty of wait methods available that do a much better job. See here http://watirwebdriver.com/waiting/. On Friday, March 21, 2014 5:10:08 AM UTC-4, jazze...@gmail.com wrote: Hi, add -- sleep 10 after browser.element(:class,

[wtr-general] Re: Firefox for OS X version 28 does not work with Watir-Webdriver

2014-03-20 Thread Dan
Sounds like you need to update your selenium-webdriver gem. However, I don't see an update being pushed for that yet. The selenium team is usually very quick with these updates, so it'll probably just be a couple of days. You can watch http://docs.seleniumhq.org/download/ for updates. On

Re: [wtr-general] simple way for this xpath?

2014-03-13 Thread Dan
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

[wtr-general] Re: Cannot reach a nested menu

2014-03-03 Thread Dan
I think you need to do something like the below. # Click tst to make the menu appear a.span(:text = 'tst').click # This will intelligently wait for the new menu item to be available and then click on it. a.span(:text = Activar).when_present.click On Wednesday, February 26, 2014 9:30:51 PM

[wtr-general] Control selenium logging with webdriver

2014-02-22 Thread Dan
So, here's the situation. I'm trying to integrate a cloud grid provider into my framework, but I've discovered that the selenium command logs have the clear text value for everything. This includes the password, which isn't going to make my security team happy and frankly I'm not comfortable

[wtr-general] Re: Has anyone used the Module: Watir::PerformanceHelper

2014-02-13 Thread Dan
I've used it, but it doesn't seem to be maintained anymore. IIRC I stopped using it because it stop working due to various breaking browser updates, but I just tried it now and it seems to be ok with Firefox and Chrome at least, so maybe I'm not remembering correctly? I don't think it works

[wtr-general] Re: How to get control on overlay pop up window

2014-02-11 Thread Dan
You need to determine if it's a javascript dialog or not. Can you inspect it with one of the developer tools or not? Can you share the relevant html code? Dan On Thursday, February 6, 2014 12:56:40 AM UTC-5, ARGHYA CHAKRABORTY wrote: Hi There is a button in an webpage , clicking

[wtr-general] Waiting for a element to load fails after upgrading to ruby 1.9

2014-01-28 Thread Dan
My question would be why simply using one of the wait methods like when_present isn't working for you? -- -- 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

[wtr-general] page-objects returning other page objects?

2014-01-27 Thread Dan
Hi, I'm wondering if people have opinions one way or the other on page-objects returning other page objects? Anyone have any experience of the pitfalls between one or the other? There was a good article about it here http://watirmelon.com/2012/05/29/page-objects-returning-page-objects/ . --

[wtr-general] Re: page-objects returning other page objects?

2014-01-27 Thread Dan
Seems Cheezy makes mentionhttp://www.cheezyworld.com/2010/11/13/ui-tests-part-two/of returning page objects as well. On Monday, January 27, 2014 4:09:18 PM UTC-5, Dan wrote: Hi, I'm wondering if people have opinions one way or the other on page-objects returning other page objects

[wtr-general] Re: Watirwebdriver - Click on drop down value is not visible until I scroll down the list

2014-01-23 Thread Dan
You want something like this. b.option(:text = tags).select On Thursday, January 23, 2014 11:43:31 AM UTC-5, watir webdriver wrote: @browser.select_list(:class = exp_left_hand).optgroup(:class = identifier).select tags *Error :expected Hash or (:how, 'what'), got [tags] (ArgumentError)*

[wtr-general] Re: Question about running in IRB

2014-01-22 Thread Dan
Not if he's using watir-classic. You might want to look at this page. http://support.microsoft.com/kb/106167 -- -- 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

[wtr-general] Re: script in chrome

2014-01-21 Thread Dan
You have to be more specific about it not working. We need logs, stacktraces, etc. to be able to help diagnose your issue. On Tuesday, January 21, 2014 5:23:30 AM UTC-5, Priti Fhuse wrote: browser = Watir::Browser.new :chrome not works on my machine On Thursday, January 16, 2014 12:02:06 AM

[wtr-general] Re: Control system window in Firefox with RAutomation.

2014-01-20 Thread Dan
There's a much easier way to upload a file. Find your file_field element and simply use the file_field method. For example: b.file_field(:id = my_file).set local_file On Monday, January 20, 2014 7:06:13 AM UTC-5, FMQO GDRIVE wrote: On XP and Chrome this code works well, but on XP and

[wtr-general] Re: Control system window in Firefox with RAutomation.

2014-01-20 Thread Dan
, Open).set(\\test.txt) Error Watir::Exception::UnknownObjectException: unable to locate element, using {:name=Open, :tag_name=input, :type=file} On Monday, January 20, 2014 7:14:48 PM UTC+4, Dan wrote: There's a much easier way to upload a file. Find your file_field element and simply

[wtr-general] Re: script in chrome

2014-01-17 Thread Dan
If you're just getting started I would begin by browsing the info on http://watirwebdriver.com/. For chrome to work you need a binary for which ever platform you're using and it needs to be available in your path. http://watirwebdriver.com/chrome/ Here's a much simpler script to get you

[wtr-general] Re: Undefined Method 'frame' for []:Array (NoMethodError)

2014-01-16 Thread Dan
/integration/processWemRequestapplication=uc1').span(:xpath, //div[@id='edit']/span[position()=7]) checkin.click end On Wednesday, January 15, 2014 11:05:10 AM UTC-5, Dan wrote: Can you show some of that code? On Wednesday, January 15, 2014 9:33:10 AM UTC-5, Matt Caldwell wrote: I suppose

[wtr-general] Re: Undefined Method 'frame' for []:Array (NoMethodError)

2014-01-15 Thread Dan
What are you passing into the method? On Wednesday, January 15, 2014 7:57:35 AM UTC-5, Matt Caldwell wrote: Update/clarification. I am using Firefox 17 as my base for this and Watir 1.9.3. On Tuesday, January 14, 2014 2:27:05 PM UTC-5, Matt Caldwell wrote: Hello all, I have been

[wtr-general] Re: Undefined Method 'frame' for []:Array (NoMethodError)

2014-01-15 Thread Dan
. On Wednesday, January 15, 2014 9:25:03 AM UTC-5, Dan wrote: What are you passing into the method? On Wednesday, January 15, 2014 7:57:35 AM UTC-5, Matt Caldwell wrote: Update/clarification. I am using Firefox 17 as my base for this and Watir 1.9.3. On Tuesday, January 14, 2014 2:27:05 PM

[wtr-general] Re: Click span doesn't work in Firefox 26.0

2014-01-14 Thread Dan
What's your selenium-webdriver version? Also, that's not really the way you want to upload files. What you really want to do is something like: $driver.file_field(:id = paymentFileFileUpload).set(myfile.txt) Using this you won't have to deal with the file upload windows. On Monday, January

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

[wtr-general] Re: watir-webdriver appium

2014-01-10 Thread Dan
, :xpath ] end end On Friday, January 10, 2014 12:47:27 PM UTC-5, Dan wrote: 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

Re: [wtr-general] Re: watir-webdriver appium

2014-01-10 Thread Dan
. On Fri, Jan 10, 2014 at 4:22 PM, Dan dfr...@gmail.com javascript:wrote: Actually, I've gotten it to work with watir-webdriver. It seems that in the element locator that :name is not a valid finder, but this is used pretty heavily in iOS. I was able to patch and add it back in. Let's

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

2014-01-08 Thread Dan
. On Wednesday, January 8, 2014 12:09:26 PM UTC-5, Chuck van der Linden wrote: On Tuesday, January 7, 2014 12:06:55 PM UTC-8, Dan wrote: I've cheated in the sense that I've used Fiddler by programmatically starting and stopping it when running tests. There looks to be a Linux build of it now. In my

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

2014-01-08 Thread Dan
Yeah. Nothing special needed to be done to the browser. On Wednesday, January 8, 2014 1:20:03 PM UTC-5, Chuck van der Linden wrote: On Wednesday, January 8, 2014 9:38:15 AM UTC-8, Dan wrote: Actually, I was confusing some work I've done with wireshark and fiddler. Wireshark has a command

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

2014-01-07 Thread Dan
I've cheated in the sense that I've used Fiddler by programmatically starting and stopping it when running tests. There looks to be a Linux build of it now. In my case it was ADFS so I feel your pain. http://fiddler.wikidot.com/mono On Tuesday, January 7, 2014 2:31:45 PM UTC-5, Chuck van der

[wtr-general] Re: Dismissing javascript popups

2013-12-31 Thread Dan
Should be as simple as using what's on this page http://watirwebdriver.com/javascript-dialogs/. When you say it doesn't work, do you get an exception or does nothing happen? On Tuesday, December 31, 2013 9:12:17 AM UTC-5, Madhu Ganesh wrote: Folks, I am using Ruby 1.9.3 and Watir 5.0.0 .

[wtr-general] Rspec - group rspec descriptions

2013-12-06 Thread Dan
So, this is not a watir-webdriver question per se, but I know many people here use rspec. I'm looking to do exactly what is described as the solution in the stack overflow question below, which is to be able to group my descriptions in the html report output. What I'm really looking for is

[wtr-general] Re: getting fixnum error for :index in webdriver

2013-12-05 Thread Dan
You're passing a string instead of a number. Change $ie.span(:class = x-btn-icon refresh, :index = 3).click to $ie.span(:class = x-btn-icon refresh, :index = 3).click Dan On Thursday, December 5, 2013 4:07:26 AM UTC-5, Bhavesh wrote: Hi I just upgraded to watir webdriver. Using

[wtr-general] page-object and frames

2013-11-27 Thread Dan
I know this isn't a watir question per se, but I know a lot of members of this group use page object. I'm trying to send keys directly to a frame using page-object, but the problem is I can't get a handle to just the frame, just elements inside of it? This is one of those fckeditor kind of

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, November

Re: [wtr-general] Newbie - Requests for resources/ tutorials on Watir online

2013-10-31 Thread Dan
http://www.codecademy.com/ is good for some Ruby basics as well. On Thursday, October 31, 2013 6:36:08 AM UTC-4, Avinash Suresh wrote: Thanks a ton for your suggestions, I will check them out. Avinash On Friday, October 25, 2013 5:36:04 PM UTC+5:30, Joe Fl wrote: Hi, I have found the

[wtr-general] Re: Unable To Click Button In IE -9 Browser

2013-10-02 Thread Dan
Please see herehttps://groups.google.com/forum/#!msg/selenium-users/8jR6Fw5ndxU/Gp7g47fdDScJ . On Tuesday, October 1, 2013 10:03:56 AM UTC-4, faro...@gmail.com wrote: let me begin with my system requirements OS=win7 browser=IE 9 I am working on sample gmail(gmail login page ) application

Re: [wtr-general] Elements property

2013-10-02 Thread Dan
li_number = @browser.div(:id = cabMenu).ul.lis.length On Wednesday, October 2, 2013 10:10:06 AM UTC-4, LuisE wrote: And how do I ask only for how many li's there are? On 2 October 2013 12:54, Oscar Rieken bis...@gmail.com javascript:wrote: you are asking for elements inside of the ul,

[wtr-general] Re: Using watir, how can I read the values from a dropdown list and create an array?

2013-09-30 Thread Dan
I think it would be helpful to know what you're trying to accomplish by doing this, but you could do it like below. values = b.ul.lis.collect{|x|x.value} On Monday, September 30, 2013 8:46:06 AM UTC-4, sp22 wrote: I have html code like - div id=unique_id div class=rcbScroll rcbWidth

[wtr-general] Re: right click issue in watir webdriver

2013-09-25 Thread Dan
What did you try and what was the error if any? On Wednesday, September 25, 2013 10:10:47 AM UTC-4, Vegi Sekhar wrote: https://lh4.googleusercontent.com/-009PVjKXUfQ/UkLujcLgygI/AIY/IyL6WdmMqww/s1600/gridcell.bmp Hi am unable to perform right click operation in watir webdriver. any

[wtr-general] Re: Problem with image html tag

2013-09-25 Thread Dan
So, after you fire the mouseover what element is displayed? Usually you fire an event and some other element is then displayed and then you click on that. Your code seems to indicate that you're firing a mouseover and then clicking on the same element? On Wednesday, September 25, 2013

[wtr-general] Re: Why Watir-Webdriver is unable to identify the Element based on custom attribute

2013-09-22 Thread Dan
Post the relevant html and what you've tried please. On Friday, September 20, 2013 3:57:24 PM UTC-4, Mukul Bist wrote: Hi , I added custom attribute to a button and i am not able to identify that element based on custom attribute. Do you guys have any idea. ~Mukul -- -- Before

Re: [wtr-general] Cucumber and Quality Center

2013-09-20 Thread Dan
. On Thu, Sep 19, 2013 at 3:30 PM, Dan dfr...@gmail.com javascript:wrote: So we're standing up ALM now actually, which has the rest API, but I'm not sure I want to go down that road. One thing that's really drawing me to cucumber is that along with reporting the results of the test you get

[wtr-general] Re: run test scripts on three different browsers one after another?

2013-09-20 Thread Dan
,:chrome,:safari].each do |br| begin b = Watir::Browser.new br b.goto(google.com) puts b.title b.close rescue = e puts e.message next end end On Thursday, September 19, 2013 6:47:54 PM UTC-4, Ankita@Adslot wrote: Hi Dan Thanks for your reply. This does work if the script runs without any

Re: [wtr-general] Re: run test scripts on three different browsers one after another?

2013-09-20 Thread Dan Franko
did this from memory On Fri, Sep 20, 2013 at 9:08 AM, Dan dfra...@gmail.com wrote: Not sure what you're considering a failure, but you'll want to use some exception handling in that case. See below for an example. :none is not a valid browser so, it'll fail to initialize it, but keep going

Re: [wtr-general] Re: run test scripts on three different browsers one after another?

2013-09-20 Thread Dan
/90kts/watirgrid , this is originally developed for the same purpose as yours. Regards Ragavan On Friday, September 20, 2013 2:57:22 PM UTC+1, Dan wrote: Yeah, that's why I stated I wasn't sure what they were considering a failure. On Fri, Sep 20, 2013 at 9:52 AM, Oscar Rieken bis

[wtr-general] Re: run test scripts on three different browsers one after another?

2013-09-19 Thread Dan
Not sure what framework you're using or whatever, but you can do this pretty easy with a loop. Below is the basic concept. require 'watir-webdriver' browsers = [:firefox,:chrome,:safari].each do |br| b = Watir::Browser.new br b.goto(google.com) puts b.title b.close end On Wednesday, September

[wtr-general] Cucumber and Quality Center

2013-09-19 Thread Dan
I'm not sure that this is the correct forum for this, but I'm sure that someone here must have run into a similar situation. We pretty heavily use QC/ALM here along with a mixture of QTP and watir-webdriver. Currently we're using a custom framework, but I'd like to start moving to something

Re: [wtr-general] Cucumber and Quality Center

2013-09-19 Thread Dan
create automated watir test cases using cucumber, that we now essentially have two test cases that need to be maintained. I'm trying to think of a more intelligent way for them to work together. Dan On Thursday, September 19, 2013 1:39:02 PM UTC-4, Oscar.Rieken wrote: If you are going

Re: [wtr-general] Cucumber and Quality Center

2013-09-19 Thread Dan
the information from QC via the api and commit other sorts of information back to QC. If I do that though I lose the coupling between gerkins and cucumber and the rest of the framework it seems. Dan On Thursday, September 19, 2013 3:15:29 PM UTC-4, johnssn wrote: At my previous company we were using

[wtr-general] Re: Finding currently open windows

2013-08-28 Thread Dan
I'm 99% sure that this is only possible with IE and using watir and not watir-webdriver. There's an issue opened at the selenium issue tracker for webdriver, but it's been open for quite a while. https://code.google.com/p/selenium/issues/detail?id=18 On Wednesday, August 28, 2013 8:04:49 AM

[wtr-general] Re: New Chrome 29 driver and ie.link.exists? error

2013-08-23 Thread Dan
Might want to try updating the selenium-webdriver gem since it's at 2.35. Also did you get Chromedriver2 or chomedriver? I don't think chromedriver will even work at all, so you've probably got the new new. On Friday, August 23, 2013 12:08:08 PM UTC-4, Super Kevy wrote: This morning

[wtr-general] Re: rautomation send_keys failing when running on remote machine that is minimized

2013-08-19 Thread Dan
If it's a javascript popup you don't need rautomation and you shouldn't have this problem. Check out http://watirwebdriver.com/javascript-dialogs/ or http://rubydoc.info/github/watir/watir-classic/frames. On Monday, August 19, 2013 6:27:31 PM UTC-4, Champ wrote: Hello, I use rautomation

[wtr-general] Re: Cannot open excel

2013-08-06 Thread Dan
Not sure why my original reply to this was deleted, but the problem with roo here is that you're using open and not new. A quick look at the roo documentation would clear up your issues. On Monday, August 5, 2013 10:42:30 AM UTC-4, Nikhil Nerkar wrote: I want to login to gmail using userid

[wtr-general] Re: Cannot open excel

2013-08-06 Thread Dan
This isn't a watir question, but the problem is that you don't want to use open, you want to use new. See the documentation here: https://github.com/hmcgowan/roo. Also, don't try to automate against gmail. If you need to check mail there, use the gmail gem. See this thread for a discussion

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 July

[wtr-general] Re: cannot load such file -- watir/ie (LoadError)

2013-07-10 Thread Dan
What's your script/code look like? On Wednesday, July 10, 2013 12:34:24 PM UTC-4, LiveLoveLaugh wrote: i recently had to reinstall everything on my computer and that included ruby, cucumber, and watir. in the past i had a library of scripts that worked for a very long time, however after

[wtr-general] Re: Picking out attribute values from inside a div

2013-07-01 Thread Dan
I think you want this. b.ul(:class = battery-level-list).attribute_value(data-battery-level) = 5.71535 On Sunday, June 30, 2013 10:01:24 AM UTC-4, Fred Cassirer wrote: Hi, I have been struggling with how to extract the value of data-battery-level from the code below: div class=battery

Re: [wtr-general] Selecting items from JS drop down list

2013-07-01 Thread Dan
Manually when you use this menu do you click or hover to expand it? You may want to try b.li(:id,ctl00_ChangeCustodyMenu).hover to expand the menu. On Friday, June 28, 2013 2:44:54 PM UTC-4, scra...@foray.com wrote: Hi Joe, Thanks for the help. I tried the tip you suggested, but it's

[wtr-general] Re: passing value to the div

2013-06-30 Thread Dan
Have you tried using send_keys? On Sunday, June 30, 2013 12:03:26 AM UTC-4, sivam wrote: Hi All, Below is my code.. The DIV tag specified below is editable in the webpage im having.. i want to pass some value to the tag using our WatirRuby code.. i have tried in many ways but i couldnt

[wtr-general] Re: passing value to the div

2013-06-30 Thread Dan
I don't know why you're using such an old version of watir. You should upgrade and your life will be much easer. On Sunday, June 30, 2013 11:21:22 AM UTC-4, sivam wrote: Thanks Dan.. im using watir 1.6.5. so i tried AutoItX3 and it worked fine.. but everytime while passing value to DIV

[wtr-general] Re: Radio buttons with watir-webdriver

2013-06-17 Thread Dan
Please show us the code that you tried. On Monday, June 17, 2013 11:26:19 AM UTC-4, fabian@gmail.com wrote: Guys, I have this html : input type=radio name=Server value=1 onclick=displayHiddenText();setPageChanged(true); id=Server_0 label for=Server_0Yes/label which would be the

[wtr-general] Re: Radio buttons with watir-webdriver

2013-06-17 Thread Dan
@gmail.com wrote: radio = browser.label(:for = 'Server_0').parent.radio.set radio = browser.label(:name = 'Server').parent.radio.set radio = browser.label(:text= 'Server').parent.radio :value 'Yes' etc El lunes, 17 de junio de 2013 12:32:54 UTC-3, Dan escribió: Please show us the code

Re: [wtr-general] Re: Radio buttons with watir-webdriver

2013-06-17 Thread Dan
:31 AM UTC-4, Fabian Arocena wrote: I thought b.radio was with watir, not watir-webdriver ... I'm just following the examples n the webpage On Mon, Jun 17, 2013 at 12:54 PM, Dan dfr...@gmail.com javascript:wrote: I think you might be overcomplicating things, but if you want to work back up

[wtr-general] ios-driver

2013-06-13 Thread Dan
Anyone know what the syntax should be to start a native app with watir-webdriver is? I've got no problems starting safari in a simulator, but I want to run a native app in either the simulator or a real device. Here's the instructions for java. http://freynaud.github.io/ios-driver/native.html

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

2013-06-11 Thread Dan
. Currently I push a table row into an array and match with .include? which beats a bunch of if A=B comparisons. Would it be faster to push the table into an 2-d array using the table method .to_a ? On Jun 10, 8:36 am, Dan dfra...@gmail.com wrote: I use something like the below. Find

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

2013-06-10 Thread Dan
I use something like the below. Find the row you're looking for and then click on the column and element within that column. You might be able to get away with less, but this works pretty well. b.tr(:text = /the row I'm looking for/).td(:index = 5).img.click On Friday, June 7, 2013 4:36:21

Re: [wtr-general] Can't use = sign in URL.

2013-06-04 Thread Dan
I think you're going to want to look into using yaml instead of flat text files. You'll want to start by looking here. http://www.ruby-doc.org/stdlib-1.8.7/libdoc/yaml/rdoc/YAML.html#method-c-parser On Tuesday, June 4, 2013 2:26:05 PM UTC-4, JimJamie wrote: I'm using Watir with Ruby 1.86.

[wtr-general] Re: Issue with clicking on a button which opens a on click alert - works on Firefox but not on phantom.js

2013-05-23 Thread Dan
Might want to read up on how ghostdriver handles alerts? There's a lot of discussion here: https://github.com/detro/ghostdriver/issues/20 On Thursday, May 23, 2013 1:46:33 AM UTC-4, Ankita@Adslot wrote: Hi I have following code div a class=btn btn-inverse onclick=return

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

2013-05-17 Thread Dan
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 On Friday, May 17, 2013 12:07:53 PM UTC-4, watir webdriver wrote:

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

2013-05-16 Thread Dan
It doesn't look like it's just Chrome actually. I got the same results in Firefox. Looks like the stackoverflow answer addresses the issue? If I change from button type of button to input type of button it works like you would expect. b = Watir::Browser.new :firefox =

[wtr-general] Re: Waitir: Ignoring modal wait dialogs during ajax call

2013-05-10 Thread Dan
Thanks Andrew! You learn something new everyday! On Friday, May 10, 2013 11:58:31 AM UTC-4, Andrew Leaf wrote: On Thursday, May 9, 2013 8:54:19 PM UTC-5, Dan wrote: Secondly, your syntax for starting a browser is incorrect. It should be .new not .start. browser = Watir::Browser.new

[wtr-general] Tabs, PDFs, focus, and Chrome

2013-05-09 Thread Dan Meltz
Short version: new tabs in Chromeprevent old tabs from being used, fixing that means that opened tabs with PDFs in them get reused before a human can examine the PDFs. Originally it worked like this: 1. open new Chrome window to main page of the app (tab #1) 2. [do process A and then] click

[wtr-general] Re: Tabs, PDFs, focus, and Chrome

2013-05-09 Thread Dan
UTC-4, Dan Meltz wrote: Short version: new tabs in Chromeprevent old tabs from being used, fixing that means that opened tabs with PDFs in them get reused before a human can examine the PDFs. Originally it worked like this: 1. open new Chrome window to main page of the app (tab #1) 2. [do

[wtr-general] Re: Tabs, PDFs, focus, and Chrome

2013-05-09 Thread Dan
:56 AM UTC-4, Dan wrote: Seems like the best thing to do would be to disable the chrome pfd viewer so it downloads it instead of trying to open it. I think technically you should be able to pass a switch to chrome to disable the viewer programmatically, but I tried and it didn't work for me

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

2013-05-09 Thread Dan
You downloaded the wrong chromedriver. Chromedriver2 isn't quite ready. Get the chromedriver_win_26.0.1383.0.ziphttps://chromedriver.googlecode.com/files/chromedriver_win_26.0.1383.0.zip . On Thursday, May 9, 2013 7:35:37 AM UTC-4, mc060200778 wrote: even this is not working. i just learnt

[wtr-general] Re: Tabs, PDFs, focus, and Chrome

2013-05-09 Thread Dan Meltz
Dan, Thanks for the help, but I wasn't able to make that work, either. I also tried exploring using something like b = Watir::Browser.new :chrome, :switches = ['--disable-plugins'] but I had no luck with that, either. The point of the test is for a human to look at the PDFs, so I don't really

[wtr-general] Re: Waitir: Ignoring modal wait dialogs during ajax call

2013-05-09 Thread Dan
There's a few funny things about your script. You really only need to require watir or watir-webdriver. If you're using the watir gem it'll either load the watir-classic gem, if you ask it for ie, or watir-webdriver gem if you ask it for chrome or firefox. Secondly, your syntax for starting

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

[wtr-general] Re: CHROME DRIVER FOR WIN64 is needed on wiki page

2013-04-30 Thread Dan
: https://chromedriver.googlecode.com/files/chromedriver_win_26.0.1383.0.zip On Tuesday, April 30, 2013 12:17:03 PM UTC-4, agrant wrote: Thanks for responding Dan when when I load Watir/Wedriver that loads fine. Even when I load IE/FF but I only get the error in the Chromelog when I try

[wtr-general] Re: CHROME DRIVER FOR WIN64 is needed on wiki page

2013-04-23 Thread Dan
There's not 64 bit Chrome on Windows so, the 32 bit chrome driver should be fine. http://www.chromium.org/nativeclient/design-documents/native-client-in-chrome-on-64-bit-windows Those messages below are informational, are you having some problem with watir/watir-webdriver? On Monday, April

Re: [wtr-general] Using chrome-driver with watir (and not watir-webdriver?)

2013-04-19 Thread Dan
One thing to note is that once you initialize one of the browsers you're stuck with that driver that's chosen within the ruby session. Like if you do something like this: require 'watir' # Starts with the watir-classic gem/driver b = Watir::Browser.new :ie b.goto(google.com) # This will start

[wtr-general] Re: How do I set an input MULTIPLE files with Watir?

2013-04-15 Thread Dan
What about just the below? @browser.file_field(:name = original).when_present.set *my_image* On Monday, April 15, 2013 11:07:40 AM UTC-4, Karoline Leite wrote: Hi ! I'm trying to use an INPUT FILE, but I'm receiving error like unable to locate {:name=original, :tag_name=input, :type=file}

[wtr-general] Re: Drag and drop is not working after updating firefox to 20.0 -- Could not load native events component.

2013-04-10 Thread Dan
:59 AM UTC-4, Dan wrote: I don't see anything on the issue tracker that indicates a release date, but they are usually within a week or so as far as I remember. Best thing to do for now is to downgrade to 19. You can watch this page for updates as well. http://docs.seleniumhq.org/download

[wtr-general] Re: Getting rescue in rbuf_fill': Timeout::Error with watir-webdriver

2013-04-08 Thread Dan
Hi Fabian, It's a little unclear what the expectation/flow is after you click the 'Load Form' button. That button is hidden or removed by some javascript? It's possible that you're running into the http timeout as opposed to a timeout for one of the wait methods. I think what would help is

[wtr-general] Re: Getting rescue in rbuf_fill': Timeout::Error with watir-webdriver

2013-04-08 Thread Dan
in other words the error you get, and all the lines below it that show what lines of code were being executed at the time the error occured El lunes, 8 de abril de 2013 13:50:41 UTC-3, Dan escribió: Hi Fabian, It's a little unclear what the expectation/flow is after you click the 'Load

[wtr-general] Re: Drag and drop is not working after updating firefox to 20.0 -- Could not load native events component.

2013-04-05 Thread Dan
I don't see anything on the issue tracker that indicates a release date, but they are usually within a week or so as far as I remember. Best thing to do for now is to downgrade to 19. You can watch this page for updates as well. http://docs.seleniumhq.org/download/ Dan On Friday, April 5

[wtr-general] Re: selectone menu primefaces

2013-04-04 Thread Dan
It doesn't appear that it's actually a select. Something like this should work. b.label(:id, j_idt18:j_idt22_label).click b.li(:text = Option 1).click On Thursday, April 4, 2013 9:19:35 AM UTC-4, Champ wrote: I am trying to automate an application that has select menus from prime faces. For

[wtr-general] Re: Drag and drop is not working after updating firefox to 20.0 -- Could not load native events component.

2013-04-04 Thread Dan
The release notes of 2.31.0 of the selenium webdriver only indicate support for native events up to version 19. The selenium team is pretty good about releasing updates to support new versions, you just might have to wait a couple of days or downgrade to 19 in the meantime. 2.31.0

[wtr-general] Re: How to select color from color picker

2013-03-21 Thread Dan
irb. b.div(:class = color_swatch,:style = background-color: rgb(153, 204, 0); border-color: rgb(0, 0, 0);).exists? = true What version of the watir and selenium gems do you have? On Thursday, March 21, 2013 7:43:00 AM UTC-4, sk.f...@gmail.com wrote: As mentioned by Dan/Chuck,first I

[wtr-general] Re: How to select color from color picker

2013-03-20 Thread Dan
What's the problem? What have you tried so far? On Wednesday, March 20, 2013 11:47:26 AM UTC-4, sk.f...@gmail.com wrote: Hi, In my application I've come across a color picker where I've to select a particular color..I'm totally blocked here.Plz find the screenshot of the color picker...

  1   2   3   >