[wtr-general] Re: How do i set selenium script time out?

2019-02-26 Thread Joe Fl
=Mac OS X 10.14.3 x86_64) I have been looking for an answer to this for a several days now and still cannot find a working solution. On Monday, February 25, 2019 at 11:03:05 PM UTC-5, Joe Fl wrote: > > Hi,. > > I need to expand the duration of the wait on the *@page.run_asset* because

[wtr-general] Re: How do i set selenium script time out?

2019-02-26 Thread Joe Fl
Any ideas or thoughts would be helpful. Thank you, Joe On Monday, February 25, 2019 at 11:03:05 PM UTC-5, Joe Fl wrote: > > Hi,. > > I need to expand the duration of the wait on the *@page.run_asset* because > it could take longer than 30secs for the process to complete. When I

[wtr-general] Re: List of items that refresh every second

2019-02-06 Thread Joe Fl
o test with the jobs? We'll need a proper > test case to be able to help you. > > On Monday, January 28, 2019 at 11:23:25 AM UTC-8, Joe Fl wrote: >> >> Hi all, >> >> I have a list of jobs being executed that show the progress of the job. >> This list refres

[wtr-general] how can I set chrome to a use a specific version?

2019-02-06 Thread Joe Fl
Hi all. I would like to set my watir spec tests to use chrome 'Version 72.0.3626.96 (Official Build) (64-bit)' and it is currently running 'Version 72.0.3626.96 (Official Build) (64-bit)'. How do I accomplish this? Here is our current setup: args = [ ] @opts =

[wtr-general] Re: drag_and_drop_by works only with the real position of mouse

2019-01-28 Thread Joe Fl
Hi. Have you tried using drag_and_drop_on instead? I assume you are working with two different objects on the screen. https://www.rubydoc.info/gems/watir-webdriver/0.9.9/Watir%2FElement:drag_and_drop_on Joe On Thursday, January 24, 2019 at 10:09:50 PM UTC-5, Vinicius Oliveira wrote: > > I'm

[wtr-general] List of items that refresh every second

2019-01-28 Thread Joe Fl
Hi all, I have a list of jobs being executed that show the progress of the job. This list refreshes every second and I am wondering if anyone automated this before. I will create then execute the job and continue look at the list of jobs until its results return. The other challenge is my

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

2015-03-16 Thread Joe Fl
Hi, I am trying to use the drap drop method for watir-webdriver. System: Windows8 Browser: Firefox version 25 Gem versions: selenium-webdriver (2.45.0) watir-webdriver (0.7.0) Code: last_dragable_concept = BrowserClass.new(@browser).get_last_drag_concept_img def

[wtr-general] Re: Unable to acces text_field inside a frame coz of some #document tag in the HTML.

2014-07-10 Thread Joe Fl
Hi Roberto, If you could provide the html and code it would help us to help you come up with resolution to your problem. Joe On Wednesday, January 23, 2013 9:38:33 AM UTC-5, Deepak Kumar wrote: Hi everyone, I am trying to access a text_field of page.HTML format is as follows html

[wtr-general] running watir webdriver scripts on Virtualbox

2014-06-26 Thread Joe Fl
Hi Everyone, I need some guidance. I have a mac and installed Virtualbox with Windows7 IE10. I would like to kick off my scripts and allow them to run against the Windows7 Virtualbox instant but not sure how to go about doing this. I have never done this before and my searches have come up

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

2014-06-09 Thread Joe Fl
Hi, I have div that has a number of checkboxes that display columns in a grid to the right. The problem is watir-webdriver can not see the one not show in the browser and i need to use those. I have the following method but it is not working as i would expect. I have tried 'slimScrollBar'

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

2014-06-09 Thread Joe Fl
Hi, The part of the application I am trying to interact with is a side bar. Thanks again, Joe On Monday, June 9, 2014 1:30:31 PM UTC-4, Joe Fl wrote: Hi, I have div that has a number of checkboxes that display columns in a grid to the right. The problem is watir-webdriver can not see

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

2014-06-09 Thread Joe Fl
, June 9, 2014 1:30:31 PM UTC-4, Joe Fl wrote: Hi, I have div that has a number of checkboxes that display columns in a grid to the right. The problem is watir-webdriver can not see the one not show in the browser and i need to use those. I have the following method but it is not working

[wtr-general] how to efficiently loop thru a table to confirm the correct data is there?

2014-06-06 Thread Joe Fl
Hi Everyone, I am putting a test together to confirm the correct data is displaying within a UI table. I found here that someone suggested using Nokogiri with watir webdriver and tried it out but i do not really understand what it is doing. Related Article:

Re: [wtr-general] Watir and Jenkins

2013-04-11 Thread Joe Fl
look at which browser their scripts are using, etc. There might be some difference there. Also look to the details of the jenkins commands that execute their scripts, if they are perhaps running as administrator, etc. On Wednesday, March 6, 2013 5:15:52 AM UTC-8, Joe Fl wrote: At this point

[wtr-general] Watir and Jenkins

2013-03-04 Thread Joe Fl
Hi, I am trying to get my scripts to run within Jenkins. We have setup a Windows8 (64) VM with jenkins to run our watir and cucumber scripts. When I try to excute them from Jenkins the browser never launches and the scripts process never ends. Gem List Microsoft Windows [Version 6.2.9200]

Re: [wtr-general] Re: Accessing a Span

2013-01-16 Thread Joe Fl
Hi, Are you looking at this in irb? Sometimes that helps to debug the issue. You can get to this point and she if watir can see the pop-up @browser.div(:class=ui-dialog-buttonpane ui-widget-content ui-helper-clearfix).present? and if returns true then it sees it. Though from the above its

[wtr-general] Re: Accessing a Span

2013-01-15 Thread Joe Fl
hi, Can you just do this.. *$ie.button(:text='Ok').click* * * *Joe * On Tuesday, January 15, 2013 9:50:57 AM UTC-7, Deepak Kumar wrote: Hi, following is the HTML code *div class=ui-dialog-buttonpane ui-widget-content ui-helper-clearfix* *button type=button class=ui-button ui-widget

[wtr-general] Re: Accessing a Span

2013-01-15 Thread Joe Fl
Hmm. Can you post your code for this? I wonder if there is timing issue. The Ok button may not be displayed by the time your script gets there to click it? Joe On Tuesday, January 15, 2013 9:50:57 AM UTC-7, Deepak Kumar wrote: Hi, following is the HTML code *div

[wtr-general] Re: Accessing a Span

2013-01-15 Thread Joe Fl
Deepak, $ie= Watir::IE.new $ie.goto(https://q2pdc2w4.edc.cingular.net:9300/v2/Login.html;) $ie.text_field(:id,Userid).set(Pos3nbi) $ie.text_field(:id,Password).set(unix11a) $ie.select_list(:id,market).select(Dallas) $ie.image(:id,Submit).click if $ie.span(:text='Ok').present?

Re: [wtr-general] Re: Accessing a Span

2013-01-15 Thread Joe Fl
) $ie.image(:id,Submit).click if $ie.span(:text='Ok').present? puts Present #$ie.span(:text='Ok').click else puts Not Present end but i did'nt helped the output is *No examples found. only* On Tue, Jan 15, 2013 at 10:47 PM, Joe Fl joefl...@gmail.com javascript: wrote: Deepak

[wtr-general] Chromedriver error when trying to run watir-webdriver

2012-11-20 Thread Joe Fl
Hi Everyone, I have recently installed watir on a Windows7 ie8 VM. I am using ruby 1.8.7. Everything works for Firefox and IE8 but when i try chrome i get the following error message: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.

[wtr-general] Re: how to click on javascript

2012-11-20 Thread Joe Fl
Hi, You should be able to do: browser.a(:class,'setting_link').click If you have tried this and got an error can you post it? Joe On Tuesday, November 20, 2012 1:31:44 PM UTC-5, a b wrote: Hi all, I do have a complex code, I took a screen snapshot. Please check the attached file. Does

[wtr-general] Re: how to click on javascript

2012-11-20 Thread Joe Fl
Hi, Can you expand the HTML line that displays once 'general' is selected? Joe On Tuesday, November 20, 2012 1:31:44 PM UTC-5, a b wrote: Hi all, I do have a complex code, I took a screen snapshot. Please check the attached file. Does anyone know how to access[click] on the a element?

[wtr-general] Selection list options with leading white spaces not able to select.

2012-10-30 Thread Joe Fl
Hi Everyone., I am having problems selecting options from select list. HTML: select class=gwt-ListBox size=1 option value=Included Patients (3806)Included Patients (3806)/option option value= Adherent (93) Adherent (93)/option option value= Non-Adherent (3713) Non-Adherent (3713)/option

[wtr-general] Winxp IE8 VM receiving error message when trying to interacting with Firefox

2012-10-24 Thread Joe Fl
Hello everyone, I have installed the following on a VM that is running WinXP IE8: watir-webdriver ruby 1.8.7 When I execute the following in irb @br = Watir::Browser.new i get the following error message. Selenium::WebDriver::Error::WebDriverError: Could not find Firefox binary (os=wi ndows).

[wtr-general] Using ternary operator with Watir

2012-10-01 Thread Joe Fl
Hi everyone, I am experimenting with the ruby and I would like to know if I could include a 'break' in the loop below once the link is clicked. I have tried a couple of ideas but they just ended in a syntax error. @browser.table(:index,3).links.each{|tr| puts tr.text == link_name ?

[wtr-general] Has anyone used Watir for performance testing?

2012-09-28 Thread Joe Fl
Hi everyone, Has anyone used WATIR for performance testing? Testing for page load time? things along those lines. Any help would be appreciate. Joe -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

[wtr-general] FasterCsv and Watir

2012-09-28 Thread Joe Fl
Hi, I need faster_csv to run my scripts. I am working with a WindowsXP VM. I ran this command 'gem install fastercsv' and it in returned 'Successfully installed fastercsv-1.5.5' but when I execute my script its not getting data from my csv. I am really not sure what to do at this point.

[wtr-general] Re: FasterCsv and Watir

2012-09-28 Thread Joe Fl
of the file. Not sure though. Thank you, Joe On Friday, September 28, 2012 2:06:37 PM UTC-4, Joe Fl wrote: Hi, I need faster_csv to run my scripts. I am working with a WindowsXP VM. I ran this command 'gem install fastercsv' and it in returned 'Successfully installed fastercsv-1.5.5

[wtr-general] Re: FasterCsv and Watir

2012-09-28 Thread Joe Fl
Hello, I was wrong. Its reads the entire file but when it enters the do loop it doesn't assign the variabl. Code: u = td['Url'] Thank you, Joe On Friday, September 28, 2012 2:06:37 PM UTC-4, Joe Fl wrote: Hi, I need faster_csv to run my scripts. I am working with a WindowsXP VM. I

[wtr-general] Re: FasterCsv and Watir

2012-09-28 Thread Joe Fl
Hi, I figured it out. i opened it and then saved it with semi colon which messed everything up. Sorry for the waste of time. thank you for your help Željko Joe On Friday, September 28, 2012 2:06:37 PM UTC-4, Joe Fl wrote: Hi, I need faster_csv to run my scripts. I am working

[wtr-general] deleting text in a RichTextArea

2012-09-25 Thread Joe Fl
Hi everyone, I need to know if there is a better way to delete a string of text from a RichTextArea. Currently I handle it this way: @browser.frame(:class=/gwt-RichTextArea/).click # Erase old comment for rte in 1..@browser.frame(:class=/gwt-RichTextArea/).body.text.length #GF0TARWCJU

[wtr-general] Re: deleting text in a RichTextArea

2012-09-25 Thread Joe Fl
help would be greatly appreciate. Joe On Tuesday, September 25, 2012 1:09:49 PM UTC-4, Joe Fl wrote: Hi everyone, I need to know if there is a better way to delete a string of text from a RichTextArea. Currently I handle it this way: @browser.frame(:class=/gwt-RichTextArea/).click # Erase

Re: [wtr-general] Using cols and rows to retrieve data from a table

2012-09-14 Thread Joe Fl
:0x101e1f440 How do I get the text from this? Or could it be I haven't dug deep enough to the right table? Thanks again for your help. Joe On Tuesday, September 11, 2012 5:04:26 PM UTC-4, Željko Filipin wrote: On Tue, Sep 11, 2012 at 7:23 PM, Joe Fl joefl...@gmail.com javascript: wrote: What I

Re: [wtr-general] Using cols and rows to retrieve data from a table

2012-09-14 Thread Joe Fl
this: browser.table.text Zeljko On 14. 9. 2012., at 17:51, Joe Fl joefl...@gmail.com javascript: wrote: Hi Željko, Yes. I trying to pull data for a table based on the column, row. I have tried the following: puts rede = @browser.div(:id,'main').tr(:class,'middle').td(:class,'middleCenter').div

[wtr-general] Using cols and rows to retrieve data from a table

2012-09-11 Thread Joe Fl
Hi Everyone, I am using watir-webdriver API and would like to retrieve the column name and data from a table. *Html:* div class=dragdrop-dropTarget dragdrop-boundary style=position: relative; overflow: hidden; table cellspacing=5 cellpadding=0 tbody tr tr tr td align=left style=vertical-align:

[wtr-general] Re: Working with GWT table

2012-09-07 Thread Joe Fl
, Anthony Hallett wrote: try cell = br.div(:id = main).td(:index = 1) On Saturday, 1 September 2012 06:21:15 UTC+10, Joe Fl wrote: Hi Everyone, I am working on automating an GWT app for the first time. I am trying to get data from td tag in a specific table . When I run

[wtr-general] Working with GWT table

2012-08-31 Thread Joe Fl
Hi Everyone, I am working on automating an GWT app for the first time. I am trying to get data from td tag in a specific table . When I run the following code: thr = br.div(:class,'middleCenterInner').trs I get the data from the first td. I need to get to the second. Here the code: div

[wtr-general] Re: Browser.goto command is not working

2012-08-30 Thread Joe Fl
Hi. I see the issue. you have something like this: br = Watir::Browser.new.ff it should be br = Watir::Browser.new :ff You need to remove the period infront of 'ff' and replace it with a colon. Joe On Thursday, August 30, 2012 10:17:25 PM UTC-4, goka priyanka wrote: Hello all, Please see

[wtr-general] Re: Update chromedriver

2012-08-15 Thread Joe Fl
Hi, Has anyone run into this before? Any help wonder be appreciated. Thank you, Joe On Monday, August 6, 2012 12:05:51 PM UTC-4, Joe Fl wrote: Hi all, I am trying to update my chromedriver from 16.0.902 to 21 but not sure how to. I have done a search on the topic in the group but can't

[wtr-general] Update chromedriver

2012-08-06 Thread Joe Fl
Hi all, I am trying to update my chromedriver from 16.0.902 to 21 but not sure how to. I have done a search on the topic in the group but can't find anything that relates to what I am trying to accomplish. I followed the install instructions and when I execute the following:

Re: [wtr-general] Scrolling up or down on a page

2012-06-15 Thread Joe Fl
, June 15, 2012 3:53:24 AM UTC-4, Željko Filipin wrote: On Thu, Jun 14, 2012 at 9:43 PM, Joe Fl wrote: I am using watir-webdriver and interacting with Firefox. Its a windows7 VM. It works on my MAC Book Pro without issue. Please share the code. This could help: http://stackoverflow.com

Re: [wtr-general] Scrolling up or down on a page

2012-06-15 Thread Joe Fl
:24 AM UTC-4, Željko Filipin wrote: On Thu, Jun 14, 2012 at 9:43 PM, Joe Fl wrote: I am using watir-webdriver and interacting with Firefox. Its a windows7 VM. It works on my MAC Book Pro without issue. Please share the code. This could help: http://stackoverflow.com/a/9469506/17469

[wtr-general] Scrolling up or down on a page

2012-06-14 Thread Joe Fl
Hi Watirs, I need to be able to scroll down the page to get an object in focus to click. How can we do this with watir? I read through this and couldn't find much else. https://groups.google.com/forum/?fromgroups#!searchin/watir-general/Scroll/watir-general/3YTaBk7tUps/HVWxjalw4FwJ I am

[wtr-general] LIBMYSQL.dll error when trying to run watir scripts

2012-06-01 Thread Joe Fl
Hi, Does anyone know of an easy fix for this? Error Message The program can't start because LIBMYSQL.dll is missing from your computer. Try reinstalling the program to fix this problem. I have done the uninstall and reinstalling and that doesn't fix it. Any help would be appreciated. I am

[wtr-general] How to use more than one html tag

2012-04-20 Thread Joe Fl
Hi, How do i use more than one html tag to identify a link? I need to use the id and class for the below. a id=home class=current href=https://my-staging.within3.com/ channels/within3-playground/navigational_categories/home/pages/ indexHome/a I tried the following got an error:

[wtr-general] Re: How to use more than one html tag

2012-04-20 Thread Joe Fl
Hi Dan, Thank you. That did the trick. Joe On Apr 20, 3:52 pm, Dan dfra...@gmail.com wrote: Try this: b.a(:id = 'home',:class = 'current').exists? On Friday, April 20, 2012 3:05:46 PM UTC-4, Joe Fl wrote: Hi, How do i use more than one html tag to identify a link? I need

[wtr-general] How do I update my MAC Pro book to ruby version 1.8.7 or higher

2012-04-16 Thread Joe Fl
Hi, I have never done this before but I need to update one of our MAC Books Pro to ruby 1.8.7 in order to use the watir webdriver. The machine is currently installed with version 1.8.6 and MAC OS 10.5. Can anyone give me directions or good documentation on how to do this? Any help would be

[wtr-general] Trying to run script on a VM with Windows XP Pro and getting errors for file paths

2012-03-26 Thread Joe Fl
Hello, I am trying to setup my VM to run my scripts against IE7. I installed GitBash to clone my qa_automation directory from Github plus installed Watir. When I try to execute one of my scripts I get the following error message:

[wtr-general] Validating Image is clickable

2012-03-13 Thread Joe Fl
Hi, I need to confirm this tag [a class=person-inline-profile ] is available to know the image is clickable. I have included the html code below. I have tried the following and returns as 'false'. @browser.div(:id,activity_stream_container).li(:class,'item').a(:class,'person-

[wtr-general] How to handle a new tab that is a viewer?

2012-02-08 Thread Joe Fl
Hi, Our application opens documents and images in a new tab or browser to display them. I want to confirm the viewer has open after the document and images link is clicked. Thank you, Joe -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

[wtr-general] Try to retrieve text from a strong tag

2012-02-06 Thread Joe Fl
Hi everyone, I am trying to retrieve the text from a strong tag in our app. Code: fieldset class=theme-options div class=active-theme div class=label-like theme-list-labelTopic:/div strongCategory 1/strong /div /fieldset I am using watir-webdriver with firefox but i need this to work in IE and

[wtr-general] What Email Provider is best used with Watir?

2012-02-01 Thread Joe Fl
Hello Everyone, What Email Provider is best used with Watir? After reading several posted discussion it seems that Watir and gmail can be difficult to work with. Has anyone had success with any other web mail providers? Thank you, Joe -- Before posting, please read http://watir.com/support.

[wtr-general] Re: New Rich text editor in our web app

2012-01-12 Thread Joe Fl
Hi Chuck, I have set myself up with VMware Fusion and brought down my scripts and folders from github but how do I handle this? C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- common/helper_methods (LoadError) from

[wtr-general] Re: New Rich text editor in our web app

2012-01-12 Thread Joe Fl
Sorry I setup a windows vm and the error above happens when I try and run the script. On Jan 12, 10:06 am, Joe Fl joeflec...@gmail.com wrote: Hi Chuck, I have set myself up with VMware Fusion and brought down my scripts and folders from github but how do I handle this? C:/Ruby193/lib/ruby

[wtr-general] New Rich text editor in our web app

2012-01-05 Thread Joe Fl
Hi All, We recently updated our rich text editor in our app and I can no longer type into. I can use the following line and it will place the cursor within the editor but nothing is typed. @browser.frame(:title,'Rich text editor, event_description, press ALT 0 for help.').send_keys DID THIS

[wtr-general] Test Management GUI for Watir

2011-12-14 Thread Joe Fl
Hi, I would like to know if there is a open source test management tool that I can use to house and execute my watir scripts from. I am just starting to build my companies automation suites and would like something similar to Quality Center but without the expense. Any help in the matter would

[wtr-general] Re: Trying to retrieve text of a link within a definition list tag

2011-11-15 Thread Joe Fl
because that value will every time the script runs. Thank you, Joe On Thu, Oct 6, 2011 at 10:19 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Oct 6, 2011 at 4:04 PM, Joe Fl joeflec...@gmail.com wrote: I am looking for this verbiage from below 'Watir

[wtr-general] Re: Retrieving checkbox values

2011-11-07 Thread Joe Fl
Hi, I am still having problems with checkboxes. I need to get the id from the html source for group of checkboxes under certain header sections. HTML: li class=item community-features h2Community Features/h2 div class=line form input id=109 class=unit content-feed-unsubscribe checkbox mrm

[wtr-general] Re: How to bring browser to front?

2011-11-03 Thread Joe Fl
Hi, Can anyone tell if there is a method for watir-webdriver that will bring my firefox browser to the front? I gave the above a try. No luck. Joe On Sep 29, 4:37 am, Ivan Chung ivanchun...@gmail.com wrote: Isn't it only for IE? Unfortunately i am using FF On Sep 29, 3:52 pm, Željko

[wtr-general] Click text_field so Submit button displays

2011-11-02 Thread Joe Fl
Hi All, In my script I need to add a comment to a discussion. In order to submit the comment I need to click the text_field first to get the event to fire to display the Submit button. I have add a click method for that text_field though it doesn't get the buttons to display. If I add a break

[wtr-general] Re: page headers

2011-10-25 Thread Joe Fl
: On Tue, Oct 25, 2011 at 4:23 AM, Joe Fl joeflec...@gmail.com wrote: topic = 'Ambulatory/Outpatient Care' completeString = Member Discussions: #{link} Should link be replaced with topic? completeString = Member Discussions: #{topic} if @browser.text.include? completeString.upcase Why

[wtr-general] page headers

2011-10-24 Thread Joe Fl
Hi all, I am using the following code to confirm the script has landed on the correct page. #Assigning to variable because the header is the same its the topic is different. topic = 'Ambulatory/Outpatient Care' completeString = Member Discussions: #{link} if @browser.text.include?

[wtr-general] I need to retrieve multiple span class=discussion-title

2011-10-21 Thread Joe Fl
Hi, I need to retrieve multiple discusion titles from a page. I just want the titles only and there can be 5 to 13 on a page with other links listed under them. I have tried the following and it will only return the first discussion title or all links: subject_lines =

[wtr-general] Re: Get machine name for MAC

2011-10-20 Thread Joe Fl
Hi Željko, I tried it but nothing returned. ree-1.8.7-2010.02 :003` scutil --get ComputerName Is the above correct? Thank you, Joe On Oct 20, 10:54 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Oct 20, 2011 at 4:47 PM, Joe Fl joeflec...@gmail.com wrote: This is a ruby

[wtr-general] Re: Get machine name for MAC

2011-10-20 Thread Joe Fl
Hi Željko, I corrected it but still nothing. What does 'scutil' mean? Thank you, Joe On Oct 20, 11:18 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Oct 20, 2011 at 5:12 PM, Joe Fl joeflec...@gmail.com wrote: ree-1.8.7-2010.02 :003` scutil --get ComputerName Is the above

[wtr-general] Re: retrieve drop list items/values

2011-10-20 Thread Joe Fl
On Oct 19, 3:17 pm, Chuck van der Linden sqa...@gmail.com wrote: On Oct 19, 11:14 am, Joe Fl joeflec...@gmail.com wrote: Hi, I have figure it out. Code... names = $browser.select_list(:name,'communities').options community_names_arr = Array.new commuName = name_number

[wtr-general] best practice for modal that may pop up

2011-10-20 Thread Joe Fl
Hi, In my app a modal could pop up whenever a user enters a community and there isn't way to know which one they have been in before. I am currently using the exists? method but it seems to crash once in a while. Error: /Users/josephfleck/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/gems/1.8/

[wtr-general] retrieve drop list items/values

2011-10-19 Thread Joe Fl
Hi, I am trying to retrieve the values from a dropdown and can't. I have tried the following: undefined method on getAllContents arr= $browser.select_list(:name,'communities').getAllContents.to_a puts n= arr.length I get a response of 32 but I cannot use split method to get each name. names =

[wtr-general] Re: retrieve drop list items/values

2011-10-19 Thread Joe Fl
option in the listbox. On Oct 19, 1:18 pm, Joe Fl joeflec...@gmail.com wrote: Hi, I am trying to retrieve the values from a dropdown and can't.  I have tried the following: undefined method on getAllContents arr= $browser.select_list(:name,'communities').getAllContents.to_a puts n

[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

[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 zeljko.fili...@wa-research.ch wrote: On Mon, Oct 17, 2011 at 4:09 PM, Joe Fl joeflec...@gmail.com wrote: I am trying to automate our app which allow

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

[wtr-general] Retrieving checkbox values

2011-10-12 Thread Joe Fl
Hi All, I am trying to get the number of checkboxes within a window. I want to get the value of each one without knowing which one I will be using. html fieldset class=theme-options input id=simple_discussion_resource_category_ids_ type=hidden value=

[wtr-general] Trying to use SafariWatir and receiving an error when keying value into a text_field

2011-10-11 Thread Joe Fl
Hello, I am receiving the following error message: in `text_field': wrong number of arguments (1 for 2) (ArgumentError) from /Users/josephfleck/Documents/workspace/test/helper_methods.rb: 32:in `login' from /Users/josephfleck/Documents/workspace/test/ Add_Discussion_Safari.rb:27

[wtr-general] Re: Trying to use SafariWatir and receiving an error when keying value into a text_field

2011-10-11 Thread Joe Fl
-research.ch wrote: I think safariwatir does not support hashrocket syntax browser.element(how = what) You have to use browser.element(how, what) Zeljko On Tuesday, October 11, 2011, Joe Fl joeflec...@gmail.com wrote: Hello, I am receiving the following error message

[wtr-general] trying to click a link without an id or name.

2011-10-11 Thread Joe Fl
Hi, Is there anyway to click a link when it doesn't have an id or name attached to it? HTML code: span class=related-topics Topics: a href=http://.com/channels/naph-member-community/ navigational_categories/discussions/pages/detail/ ChannelResourceCategory/90Ambulatory/Outpatient Care/a Thank

[wtr-general] Re: Trying to use SafariWatir and receiving an error when keying value into a text_field

2011-10-11 Thread Joe Fl
zeljko.fili...@gmail.com wrote: On 11. 10. 2011., at 18:15, Joe Fl joeflec...@gmail.com wrote: undefined method `text_field' for nil:NilClass (NoMethodError) That means @browser variable is not initialized, if I understood yourcode. Do I need the require 'watir' along with the require

[wtr-general] Trying to retrieve text of a link within a definition list tag

2011-10-06 Thread Joe Fl
Hello, I am trying to figure out how to retrieve text for a link that are posted in a definition list. The html is below. There are multiple post with in the dl and I would like to extract all of them and then find the one I am testing for. I am looking for this verbiage from below 'Watir Test