[wtr-general] Regarding selecting dropdown menu

2011-10-18 Thread Naveen Kandakur
Hello, Is there any watir method to select 'drop down menu' ? and its content, i tried with select list() its not working my tags are as follows ul id=ext-gen105 class=x-tab-strip x-tab-strip-top li id=NetworkAnalysisTabPanel__ext-comp-1038 class= x-tab- strip-menuable

[wtr-general] watir-webdriver unable to detect firefox

2011-10-18 Thread tester
hi i am using ruby 1.8.6 and gems watir (1.6.7, 1.5.6) watir-webdriver (0.1.7) and i tried to execute domo program require 'watir-webdriver' browser = Watir::Browser.new :firefox browser.goto http://google.com; browser.text_field(:name = 'q').set(WebDriver rocks!)

[wtr-general] Cannot fill nested text_field in one form

2011-10-18 Thread get
Hey guys, I am realatively new to Watir. I have a simple project to fill up the user sign-up sheet. However, my code only filled the first part of the form, the user name, and then a javascipt fired up, and then it just exist without filling up the rest. It exit with out any error message.

[wtr-general] Unable to click_no_wait in modal dialog window

2011-10-18 Thread Anthony
Hi, I'm having an issue where I'm trying to execute a click_no_wait command in a webpage dialog. Within this dialog, I need to use a click_no_wait because another webpage dialog pops up which I need to automate. I can use a click command, however, this does not work as Watir is waiting for the

Re: [wtr-general] watir-webdriver unable to detect firefox

2011-10-18 Thread Jari Bakken
On Tue, Oct 18, 2011 at 7:52 AM, tester pavan247...@gmail.com wrote: hi i am using ruby 1.8.6 and gems watir (1.6.7, 1.5.6) watir-webdriver (0.1.7) Make sure you have the latest version of these gems: watir-webdriver, childprocess, selenium-webdriver. Also, you should update your Ruby

Re: [wtr-general] watir-webdriver unable to detect firefox

2011-10-18 Thread Raveendran P
Hi , It seems like 'ffi' library not installed properly. 1. Open Command prompt 2. gem install ffi 3. Run the script again HElp -- http://rubygems.org/gems/ffi If still it throws any error then 4uninstall watir-webdriver 5install watir-webdriver Thanks On Tue, Oct 18, 2011 at 11:22 AM,

Re: [wtr-general] watir-webdriver unable to detect firefox

2011-10-18 Thread Željko Filipin
On Tue, Oct 18, 2011 at 7:52 AM, tester pavan247...@gmail.com wrote: i am using ruby 1.8.6 and gems watir (1.6.7, 1.5.6) watir-webdriver (0.1.7) I would suggest that you follow this instructions to install recent versions of Ruby and Watir:

Re: [wtr-general] Regarding selecting dropdown menu

2011-10-18 Thread Željko Filipin
On Tue, Oct 18, 2011 at 8:26 AM, Naveen Kandakur naveen.kanda...@gmail.com wrote: Is there any watir method to select 'drop down menu' ? browser.select_list(:id = one).set(is fun) More information: http://wiki.openqa.org/display/WTR/Selection+Boxes Željko -- watir.com - community manager

Re: [wtr-general] Cannot fill nested text_field in one form

2011-10-18 Thread Raveendran P
Hi, I have navigated the website provided by you. The Working Code for Google Chrome ie=Watir::Browser.new :chrome ie.goto(http://contour.com/users/;) ie.link(:id,'dd1').click (To Click Sigin In Drop Box) ie.text_field(:id,'user_email').set(jazzezr...@gmail.com)

Re: [wtr-general] Regarding selecting dropdown menu

2011-10-18 Thread Naveen
HI, Following method is focusing on the element but i wanted to click on the element $ff.div(:id,NetworkAnalysisTabPanel).div(:index,1).div(:index,1).ul(:index,1).li(:index,1).link(:index,2).flash i tried the following

Re: [wtr-general] Regarding selecting dropdown menu

2011-10-18 Thread Željko Filipin
On Tue, Oct 18, 2011 at 11:52 AM, Naveen naveen.kanda...@gmail.com wrote: i tried the following but its not clicking on element. 1) read this: http://stackoverflow.com/questions/3787555/how-to-find-out-which-javascript-events-fired 2) show us relevant HTML 3) any error messages? Željko --

Re: [wtr-general] Regarding selecting dropdown menu

2011-10-18 Thread Naveen
I checked in the console by enabling the log events its showing mousemove clientX=73, clientY=113 mousemove clientX=74, clientY=113 mousemove clientX=75, clientY=113 mousemove clientX=76, clientY=113 mousedown clientX=76, clientY=113 mouseup clientX=76, clientY=113 click clientX=76, clientY=113

[wtr-general] Re: Handling a MAC Pro book File Upload window.

2011-10-18 Thread Joe DiMauro
Another thing I noticed. Due to the path ending with \criptDataFile.xls It appers that the backslash followed by the two characters cr is being interpeted as a Carridge Return. You can see this in the error message: No such file or directory - Users/josephfleck/Documents/Download Docs/

[wtr-general] Re: watir-webdriver unable to detect firefox

2011-10-18 Thread Joe DiMauro
It appears that it can't find the file specified by the first require statement. require 'watir-webdriver' Add the line require 'rubygems as the first require in your scripts. Joe -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

Re: [wtr-general] Re: Handling a MAC Pro book File Upload window.

2011-10-18 Thread Joe Fleck
Hi, Thank you all for helping. I really appreciate it. I believe the file path is correct now because the error message I am now getting has changed. Code: #Attach file @browser.file_field(:id, the_file).set(/Users/josephfleck/Documents/DownloadDocs/DataFile.xls) It doesn't object name i

Re: [wtr-general] Re: Handling a MAC Pro book File Upload window.

2011-10-18 Thread Jari Bakken
Some file upload solutions lets the user click a link, which then creates a hidden file field and opens the upload dialog. The only way to deal with these types of uploads is to make the file field visible, usually by modifying its style through Browser#execute_script. This may be what you're

Re: [wtr-general] Re: Handling a MAC Pro book File Upload window.

2011-10-18 Thread Željko Filipin
On Tue, Oct 18, 2011 at 4:19 PM, Joe Fleck joeflec...@gmail.com wrote: @browser.file_field(:id, the_file).set(/Users/josephfleck/Documents/DownloadDocs/DataFile.xls) webdriver/elements/element.rb:248:in `assert_exists': unable to locate element, using {:type=file, :tag_name=input, :id=the_file}

Re: [wtr-general] Re: Handling a MAC Pro book File Upload window.

2011-10-18 Thread Joe Fleck
Hello, Got it! :-) changed the id: and it works. @browser.file_field(:id, file_attachment_attachment) Thank you all again for your help. Joe On Tue, Oct 18, 2011 at 10:19 AM, Joe Fleck joeflec...@gmail.com wrote: Hi, Thank you all for helping. I really appreciate it. I believe the file

Re: [wtr-general] Re: Handling a MAC Pro book File Upload window.

2011-10-18 Thread Joe Fleck
Hi, One last issue. How do i deal with file_fields that are hidden or disabled? Joe On Tue, Oct 18, 2011 at 10:51 AM, Joe Fleck joeflec...@gmail.com wrote: Hello, Got it! :-) changed the id: and it works. @browser.file_field(:id, file_attachment_attachment) Thank you all again for

Re: [wtr-general] Re: Handling a MAC Pro book File Upload window.

2011-10-18 Thread Joe Fleck
Hi Jari, Here is the HTML code. Will this help? legendVideo Attachment Details/legend div id=add-video class=add-video input id=video_attachment_video_file_name type=hidden name= video_attachment[video_file_name] label for=video_attachment_video_file_name input id=video_filename

[wtr-general] watir-webdriver + protected mode in XP-IE8

2011-10-18 Thread RJ
Getting following error msg: Selenium::WebDriver::Error::NoSuchDriverError: Unexpected error launching Internet Explorer. Protected Mode must be set to the same value (enabled or disabled) for all zones. but this feature is not available on XP-IE8. What to do. Thanks, RJ -- Before posting,

[wtr-general] Re: Strangeness with watir and IE or I may be missing something.

2011-10-18 Thread Chuck van der Linden
Perhaps a timing issue? did you try this only from a script, or running those steps via IRB? On Oct 17, 4:39 pm, bis bis...@gmail.com wrote: its still there just a bit odd, watir clicks on the drop down ( the one with handmade, vintage, and supplies) but it does not open it one and select

[wtr-general] Re: Strangeness with watir and IE or I may be missing something.

2011-10-18 Thread Jarmo Pertman
Did you try my provided solution instead? How did it work (or not work) for you? Jarmo Pertman - IT does really matter - http://itreallymatters.net On Oct 18, 2:39 am, bis bis...@gmail.com wrote: its still there just a bit odd, watir clicks on the drop down ( the one with handmade,

[wtr-general] Re: Regarding selecting dropdown menu

2011-10-18 Thread Chuck van der Linden
What you have below is not a true HTML 'select list' but rather a custom control that emulates a selection list via the use of an unordered (UL) list and a bunch of event driven client side javascript. Because we are likely going to be dealing with a bunch of code and HTML samples, and this venue

[wtr-general] Re: Handling a MAC Pro book File Upload window.

2011-10-18 Thread Chuck van der Linden
In general, you don't. because a normal user cannot either. Hidden values are normally returned automatically by the browser when a POST is performed when the other data is submitted, it's all under the covers stuff that user's never see, and is one of the ways that webservers keep track of

[wtr-general] Re: watir-webdriver + protected mode in XP-IE8

2011-10-18 Thread Chuck van der Linden
It's still there in IE8. whether it enables or not depends on several things, browsing local subnet sites vs internet, settings for UAC if running of Vista or Win7, and if you started IE 'as administrator' or not. What I've found sometimes solves this kind of issue is to go into the Internet

Re: [wtr-general] Re: Strangeness with watir and IE or I may be missing something.

2011-10-18 Thread bis
both the blog post has exactly what i did http://thechort.com/blog/2011/10/03/strange-issue-with-watir-and-ie/ On Tue, Oct 18, 2011 at 12:17 PM, Chuck van der Linden sqa...@gmail.com wrote: Perhaps a timing issue?  did you try this only from a script, or running those steps via IRB? On Oct

Re: [wtr-general] Re: Strangeness with watir and IE or I may be missing something.

2011-10-18 Thread bis
@Jarmo your solution deals with the text box dropdown that appears when you start typing in the box my problem is with the dropdown box to the left of that where you can change the area of the site to perform the search in. On Tue, Oct 18, 2011 at 2:04 PM, bis bis...@gmail.com wrote: both the

[wtr-general] click_no_wait does not work the second time when autoIt is used to handle the file download box

2011-10-18 Thread chaitanya
Hi every1, I am facing the problem where I call the method click_no_wait on a control which displays a File Download box. It works fine for the 1st time. i use Auto It to handle the file download box and save the file at a particular location. Now, when I try to use the click_no_wait on the same