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

2011-10-17 Thread bis
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 one of the items. if you look in my original example at the beginning of this thread it does click open and select another item with watir-webdriver.

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

2011-10-17 Thread Chuck van der Linden
or escape the space with a backslash? same as you are doing for the slashes? (but Michael's solution of using double-quotes might be even easier) On Oct 17, 1:50 pm, Željko Filipin wrote: > On Mon, Oct 17, 2011 at 10:01 PM, Joe Fleck wrote: > >  No such file or directory - Users/josephfleck/Doc

[wtr-general] Re: Receiving error message when executing the same task

2011-10-17 Thread Chuck van der Linden
Glad you got it working. FYI Ruby has a very nifty method called .each that will let you do that loop in a lot cleaner and clearer way. themes_to_select = themes.chomp.split(',') themes_to_select.each do |theme| puts "Topic about to click: #{theme}" $browser.label(:

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

2011-10-17 Thread Chuck van der Linden
WOOT, hey Oscar that's great news! (and confirms that the folks at Etsy are cool folks. I'd be sure to send them a note when it's finished and encourage them to share it with their own QA folks (who knows, could be more watir converts to be had there ;-) ) OK, so after that little tee-crossing s

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

2011-10-17 Thread Michael
Where are you running this code from? The path you specified is relative to your current directory as it is missing the slash at the beginning. You also don't need all the backslashes. Backslash is an escape character that escapes the character immediately following it. In your case you're escap

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

2011-10-17 Thread Željko Filipin
On Mon, Oct 17, 2011 at 10:01 PM, Joe Fleck wrote: > No such file or directory - Users/josephfleck/Documents/Download Docs/ iptDataFile.xls Try putting the file in a folder that has no spaces, something like Users/josephfleck Željko -- Before posting, please read http://watir.com/support. In

[wtr-general] facing problem in calling a function

2011-10-17 Thread Babu
hi, require 'rubygems' require 'watir-webdriver' require 'win32ole' xl = WIN32OLE.new('Excel.Application') xl.visible = true xlbook = xl.workbooks.open('C:\Suvo\ControlFile.xls') xlsheet = xlbook.worksheets(1) xlsheet.Select count = xlsheet.Range('A1').currentRegion.Rows.count $i = 2; $num = count;

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

2011-10-17 Thread Joe Fleck
I have tried this and it keeps erroring out. here is my line of code: #Attach file @browser.file_field(:id, "the_file").set("Users/\josephfleck/\Documents/\Download Docs/\criptDataFile.xls") The error I am receiving: /Users/josephfleck/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/gems/1.8/gems/

Re: [wtr-general] Receiving error message when executing the same task

2011-10-17 Thread Joe Fleck
Hi, It seems I need to identify the div for the tab I was on and it worked perfect. Sorry for the spam. Joe On Mon, Oct 17, 2011 at 12:02 PM, Joe Fl wrote: > Hi, > > I our web app our users can check off topics when adding a shared > document, discussion, video, or image. > > I setup my scrip

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

2011-10-17 Thread bis
The email and response I got back from Etsy about using their site for Watir examples = Etsy Developer Support develo...@etsy.com to me show details 10:30 AM (4 minutes ago) Hi Oscar, Thanks for writing!  Although our TOU do specify that you can'

[wtr-general] Receiving error message when executing the same task

2011-10-17 Thread Joe Fl
Hi, I our web app our users can check off topics when adding a shared document, discussion, video, or image. I setup my script to run from a csv file. I first add a discussion and select a Topic then a Link and when I use the same code within a different method it errors out. Error message: [r

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

2011-10-17 Thread Željko Filipin
On Mon, Oct 17, 2011 at 4:53 PM, Joe Fleck wrote: > How do click the Open button? You do not have to click "browse" or "open" buttons, all you have to do is this: browser.file_field(:id, "the_file").set("image.png") Željko -- Before posting, please read http://watir.com/support. In short: sea

[wtr-general] Re: Not able to open a chrome browser

2011-10-17 Thread Babu
followed same process but getting error like C:\Suvo>ruby chrome.rb Started ChromeDriver port=3075 version=16.0.902.0 [1017/103044:ERROR:proxy_launcher.cc(557)] Failed to wait for testing channel pr esence. [1017/103044:ERROR:webdriver_automation.cc(273)] Failed to initialize connection On Oct 15

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

2011-10-17 Thread Joe Fleck
How do click the Open button? On Mon, Oct 17, 2011 at 10:49 AM, Joe Fleck wrote: > Yes, I will try that and my mistake Safari needs safariwatir. > > > On Mon, Oct 17, 2011 at 10:46 AM, Željko Filipin < > zeljko.fili...@wa-research.ch> wrote: > >> On Mon, Oct 17, 2011 at 4:31 PM, Joe Fl wrote:

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

2011-10-17 Thread Joe Fleck
Yes, I will try that and my mistake Safari needs safariwatir. On Mon, Oct 17, 2011 at 10:46 AM, Željko Filipin < zeljko.fili...@wa-research.ch> wrote: > On Mon, Oct 17, 2011 at 4:31 PM, Joe Fl wrote: > > I am using Firefox, watir-webdriver, and v 1.8.7. > > I will be running the script in Chrome

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

2011-10-17 Thread Željko Filipin
On Mon, Oct 17, 2011 at 4:31 PM, Joe Fl wrote: > I am using Firefox, watir-webdriver, and v 1.8.7. > I will be running the script in Chrome, safari, and IE. And what is the problem? Did you read this? http://wiki.openqa.org/display/WTR/File+Uploads By the way, watir-webdriver can not drive Safa

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

2011-10-17 Thread Joe Fl
I am using Firefox, watir-webdriver, and v 1.8.7. I will be running the script in Chrome, safari, and IE. On Oct 17, 10:15 am, Željko Filipin wrote: > On Mon, Oct 17, 2011 at 4:09 PM, Joe Fl wrote: > > I am trying to automate our app which allow the user to upload > > documents, images, and vid

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

2011-10-17 Thread Željko Filipin
On Mon, Oct 17, 2011 at 4:09 PM, Joe Fl wrote: > I am trying to automate our app which allow the user to upload > documents, images, and videos. Which browser are you using and which watir gem (and versions too, please)? Željko -- watir.com - community manager watir.com/book - author watirpodcas

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

2011-10-17 Thread Joe Fl
Hi, I am trying to automate our app which allow the user to upload documents, images, and videos. The user click a 'Choose File' button which launches an Upload File window. I am using a MAC Pro book so I am not sure a file_field will work. Does anyone have any ideas how I can complete this tas

[wtr-general] Re: Setting return value from elements_by_xpath

2011-10-17 Thread Matt
The reason being simply your response, to understand one over the other. Both of your responses have solved my issues, now I have no need for using xpath, so thank you again. All part of the learning process. On Oct 17, 8:07 am, Chuck van der Linden wrote: > On Oct 14, 3:19 pm, Matt wrote: > > >

[wtr-general] Re: Not able to open a chrome browser

2011-10-17 Thread Chuck van der Linden
I'm getting the vibe that you don't really understand what 'a path issue' (or for that matter the PATH environment variable) is all about. Just because the chrome exe is there, does not mean the directory it is on your path. from a command prompt type "PATH" and hit the enter key, the system shou

[wtr-general] Re: Setting return value from elements_by_xpath

2011-10-17 Thread Chuck van der Linden
On Oct 14, 3:19 pm, Matt wrote: > Excellent thank you! that worked perfectly! > For future reference is there a way to do this with xpath? > I'm sure it could be done, but the question is WHY? xpath code is ugly, hard to read and understand, prone to typo errors, fragile and brittle, and genera