Re: [wtr-general] Re: HELP - Acessing password (text) field

2014-11-25 Thread Justin Ko
It looks like there is sometimes a delay in the loading of the iframe containing the password field. Adding a wait to the setting of the password field solved the problem (at least for me): browser.iframe(id: ws).text_field(id: claveConsultiva).when_present.set 'bar' The `when_present` method

Re: [wtr-general] Re: HELP - Acessing password (text) field

2014-11-25 Thread Alberto Magalhaes
thanks it's working!! On Tue, Nov 25, 2014 at 2:46 PM, Justin Ko justin.t...@gmail.com wrote: It looks like there is sometimes a delay in the loading of the iframe containing the password field. Adding a wait to the setting of the password field solved the problem (at least for me):

[wtr-general] Re: HELP - Acessing password (text) field

2014-11-24 Thread Titus Fortner
This works with the html you posted. browser.text_field(id: 'claveConsultiva').set foobar On Monday, November 24, 2014 12:11:47 PM UTC-6, Alberto Magalhães wrote: Hi, I'm having trouble getting access to a password text field - claveConsultiva I apreciate all the help div

Re: [wtr-general] Re: HELP - Acessing password (text) field

2014-11-24 Thread Alberto Magalhaes
Thanks Titu.. Bu i think is probably because of the iframe. iframe name=ws id=ws src= #x2f;bepp#x2f;sanpt#x2f;usuarios#x2f;login#x2f;0,,,0.shtml#x3f;usr#x3d;210348500 https://www.particulares.santandertotta.pt/bepp/sanpt/usuarios/login/0,,,0.shtml?usr=210348500 onLoad=startdyncode()

Re: [wtr-general] Re: HELP - Acessing password (text) field

2014-11-24 Thread Titus Fortner
Ah, the html didn't have the iframe in it. so: browser.iframe(id: 'ws').text_field(id: 'claveConsultiva').set foobar On Mon, Nov 24, 2014 at 1:33 PM, Alberto Magalhaes aacmagalh...@gmail.com wrote: Thanks Titu.. Bu i think is probably because of the iframe. iframe name=ws id=ws src=

Re: [wtr-general] Re: HELP - Acessing password (text) field

2014-11-24 Thread Joe Fleck
Yes. Definitely not having the iframe will cause it not to work. Joe On Mon, Nov 24, 2014 at 2:37 PM, Titus Fortner titusfort...@gmail.com wrote: Ah, the html didn't have the iframe in it. so: browser.iframe(id: 'ws').text_field(id: 'claveConsultiva').set foobar On Mon, Nov 24, 2014 at

Re: [wtr-general] Re: HELP - Acessing password (text) field

2014-11-24 Thread Titus Fortner
This works for me. browser = Watir::Browser.new :chrome browser.goto ' https://www.particulares.santandertotta.pt/pagina/indice/0,,276_1_2,00.html?usr=Nome%20de%20Utilizador ' browser.iframe(id: 'ws').text_field(id: 'identificacionUsuario').set 'Foo' browser.iframe(id: 'ws').text_field(id:

Re: [wtr-general] Re: HELP - Acessing password (text) field

2014-11-24 Thread Alberto Magalhaes
Titus, I'm trying this: require 'watir-webdriver' browser = Watir::Browser.new :chrome browser.goto(https://www.santandertotta.pt/pt_PT/Particulares.html;) browser.text_field(:name = usr).set foo browser.button(:value = Login).click usr=Nome%20de%20Utilizador' browser.iframe(id:

Re: [wtr-general] Re: HELP - Acessing password (text) field

2014-11-24 Thread Joe Fleck
Alberto, What line is this failing on? Joe On Mon, Nov 24, 2014 at 5:26 PM, Alberto Magalhaes aacmagalh...@gmail.com wrote: Titus, I'm trying this: require 'watir-webdriver' browser = Watir::Browser.new :chrome browser.goto(https://www.santandertotta.pt/pt_PT/Particulares.html;)

Re: [wtr-general] Re: HELP - Acessing password (text) field

2014-11-24 Thread Titus Fortner
Sometimes there are issues with auto-focus elements. Add this line before the set, and it will work. browser.iframe(id: 'ws').text_field(id: 'claveConsultiva').click On Mon, Nov 24, 2014 at 4:30 PM, Joe Fleck joeflec...@gmail.com wrote: Alberto, What line is this failing on? Joe On Mon,

Re: [wtr-general] Re: HELP - Acessing password (text) field

2014-11-24 Thread Alberto Magalhaes
Joe, Line 10. thanks On Mon, Nov 24, 2014 at 10:35 PM, Alberto Magalhaes aacmagalh...@gmail.com wrote: C:/Ruby21/lib/ruby/gems/2.1.0/gems/watir-webdriver-0.6.11/lib/watir-webdriver/elements/iframe.rb:10:in `locate': unable to locate iframe using {:id=ws, :tag_name=iframe}

Re: [wtr-general] Re: HELP - Acessing password (text) field

2014-11-24 Thread Titus Fortner
I take that back, I had a typo when trying to set. I'm not having any problem with the code... 2.1.2 :073 browser = Watir::Browser.new :chrome = #Watir::Browser:0x1f1ef64532cb8556 url=data:, title=data:, 2.1.2 :074 browser.goto( https://www.santandertotta.pt/pt_PT/Particulares.html;) =

Re: [wtr-general] Re: HELP - Acessing password (text) field

2014-11-24 Thread Alberto Magalhaes
same error :-( require 'watir-webdriver' browser = Watir::Browser.new :chrome browser.goto(https://www.santandertotta.pt/pt_PT/Particulares.html;) #substituir o USERID pelo user de acesso browser.text_field(:name = usr).set foo browser.button(:value = Login).click #browser.goto '

Re: [wtr-general] Re: HELP - Acessing password (text) field

2014-11-24 Thread Titus Fortner
What version Watir, Chrome ChromeDriver? Does it work in Firefox? On Mon, Nov 24, 2014 at 4:48 PM, Alberto Magalhaes aacmagalh...@gmail.com wrote: same error :-( require 'watir-webdriver' browser = Watir::Browser.new :chrome

Re: [wtr-general] Re: HELP - Acessing password (text) field

2014-11-24 Thread Alberto Magalhaes
ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32] Watir 5.0 Google Chrome Version 39.0.2171.65 On Mon, Nov 24, 2014 at 10:50 PM, Titus Fortner titusfort...@gmail.com wrote: What version Watir, Chrome ChromeDriver? Does it work in Firefox? On Mon, Nov 24, 2014 at 4:48 PM, Alberto

Re: [wtr-general] Re: HELP - Acessing password (text) field

2014-11-24 Thread Titus Fortner
Are you using watir-classic or watir-webdriver? If watir-webdriver, switch to this gem: https://rubygems.org/gems/watir-webdriver On Mon, Nov 24, 2014 at 4:54 PM, Alberto Magalhaes aacmagalh...@gmail.com wrote: ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32] Watir 5.0 Google

[wtr-general] Re: help connecting to database

2013-12-23 Thread hillary
i don't know if you went with an active record solution, i just saw this thread, but i've been using the gem Sequel as part of my watir tests ( http://sequel.jeremyevans.net/) for a while now and found it has very good sqlserver support. I has a concept of models like AR, but for the most part

[wtr-general] Re: Help for mysql connect and security warning in internet explorer ie8.

2013-12-05 Thread Super Kevy
And you did gem install mysql? On Wednesday, December 4, 2013 2:33:59 AM UTC-6, Bhavesh wrote: Hi, I have ruby 193 installed and have following gems on my machine : *** LOCAL GEMS *** archive-tar-minitar (0.5.2) bigdecimal (1.1.0) childprocess (0.3.9) columnize (0.3.6)

[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: Help with Javascript encoded ahref

2013-07-24 Thread Bashir Osman
oops I think I may have sent you a private message: require 'watir' require 'watir-webdriver' browser = Watir::Browser.new :ff browser.goto http://qat01.absorbcloud.com/ninja; browser.link(:text, Start Browsing).click browser.a(:title = $2.52).click This is the code I am using, its almost

Re: [wtr-general] Re: Help with Javascript encoded ahref

2013-07-24 Thread John Fitisoff
Try browser.link(:text, Start Browsing).when_present.click browser.a(:title = $2.52).when_present.click From: Bashir Osman bashiros...@gmail.com To: watir-general@googlegroups.com Sent: Wednesday, July 24, 2013 9:08 AM Subject: [wtr-general] Re: Help

[wtr-general] Re: Help with Javascript encoded ahref

2013-07-24 Thread Bashir Osman
Thank you very much johnssn this worked :D On Tuesday, 23 July 2013 15:40:11 UTC-6, Bashir Osman wrote: Hi, Little background - I'm planning on using Watir for a majority of our automation. Currently we use Telerik Test Studio. I'm unable to click on a shopping cart link using Watir,

[wtr-general] Re: Help needed for using regular expressions

2013-03-18 Thread Chuck van der Linden
On Monday, March 18, 2013 11:03:09 AM UTC-7, Pavan Turlapati wrote: Hi All, I have a statement as shown below $ie.iframe(:id = 'PWGadget3Ifr').table(:id = ViewTable).cell(:text=VMO).fire_event(ondblclick) In the above statement, the value 3 in the word 'PWGadget3Ifr' is not

[wtr-general] Re: Help needed for using regular expressions

2013-03-18 Thread Pavan Turlapati
Thanks a lot Sir(s), for the detailed description along with the solution, it worked like charm. On Monday, March 18, 2013 1:10:30 PM UTC-5, Chuck van der Linden wrote: On Monday, March 18, 2013 11:03:09 AM UTC-7, Pavan Turlapati wrote: Hi All, I have a statement as shown

[wtr-general] Re: help please

2013-02-06 Thread Alex Shtayer
Maybe, you can try browser.div(:*id, idDiv_PWD_UsernameExample*).send_keys blah-blah or browser.div(:*id, idDiv_PWD_UsernameExample*).click browser.send_keys blah-blah That solution works for me perfectly (for text in divs) On Saturday, February 2, 2013 8:19:11 PM UTC+2, mc060200778 wrote:

[wtr-general] Re: help please

2013-02-05 Thread prathyusha rupakula
hi i suggest using id attribute without any quotes for name needed in the text field and a comma separator instead on=. example browser.text_field(:id,idDiv_PWD_UsernameExample).set te...@test.com On Saturday, February 2, 2013 11:49:11 PM UTC+5:30, mc060200778 wrote: Hi, my question

[wtr-general] Re: Help on Watir scripts

2011-08-12 Thread Super Kevy
just what is the element link its not the html element anchor a href=...Stuff/a. That would explain it. link id=pathSearch href=/Account/UserSearch/ link id=pathSearchPager href=/Account/ UserSearch/ Consider element_by_xpath Try these links for some info: http://wiki.openqa.org/display/WTR/XPath

[wtr-general] Re: Help on Watir scripts

2011-08-12 Thread Super Kevy
Cut my self off to quick. http://w3schools.com/tags/tag_link.asp The link tag: must appear in the head not the body of html document Example Link to an external style sheet: head link rel=stylesheet type=text/css href=theme.css / /head When used for style sheets, the link tag is supported in

[wtr-general] Re: Help with select_no_wait

2011-01-20 Thread Jarmo Pertman
Maybe this post helps you to avoid the popup: http://watir.com/2011/01/14/testing-webpages-with-javascript-popups-correctly/ Jarmo Pertman - IT does really matter - http://www.itreallymatters.net On Jan 18, 9:44 pm, watirboy enrique.j.ma...@gmail.com wrote: Hey Jarmo, When my script

[wtr-general] Re: Help with select_no_wait

2011-01-20 Thread watirboy
Thanks Jarmo...I dont know why I didnt even look at this! I feel like a dunce Everyone on this group is the best!!! On Jan 20, 7:34 am, Jarmo Pertman jarm...@gmail.com wrote: Maybe this post helps you to avoid the

[wtr-general] Re: HELP: FunFX + Watir not running in windowsXP:OLE error code:80020101 in Unknown

2010-12-20 Thread Dave McNulla
I experimented with FunFX and Watir a few weeks back. If I recall correctly, there was a bug that prevented using IE. I will look back at my browser history to see if I can find the websites with the issues documented. Dave On Dec 19, 7:45 pm, liu.l...@zte.com.cn wrote: HELP: FunFX + Watir not

[wtr-general] Re: HELP: FunFX + Watir not running in windowsXP:OLE error code:80020101 in Unknown

2010-12-20 Thread Dave McNulla
http://groups.google.com/group/funfx/browse_thread/thread/808ec99051128e62 Sorry, I didn't research it more. Dave On Dec 19, 7:45 pm, liu.l...@zte.com.cn wrote: HELP: FunFX + Watir not running in windowsXP:OLE error code:80020101 in Unknown Hello everybody, sorry for my poor english. I want

[wtr-general] Re: Help: File Size defining with Cucumber Watir.

2010-12-20 Thread Chuck van der Linden
Why not do it as a scenario outline, Then in the examples specify two or more filenames that point to files of known size that allow you to explore the boundaries You could for readability even include the size of the files in the feature, but just ignore it other than paying attention to it when

[wtr-general] Re: HELP: FunFX + Watir not running in windowsXP:OLE error code:80020101 in Unknown

2010-12-20 Thread Chuck van der Linden
ok so wait, Dave, that was from two years ago, saying they didn't support IE, but were hoping to fix that bug as soon as possible.. so does that link reflect the current state? In any event all the errors I see there appear to be pointing into the FunFX code, and not at any of the Watir code, so

答复: [wtr-general] Re: HELP: FunFX + Watir not ru nning in windowsXP:OLE error code:80020101 in Unknown

2010-12-20 Thread liu . libo
@googlegroups.com 抄送: 主题: [wtr-general] Re: HELP: FunFX + Watir not running in windowsXP:OLE error code:80020101 in Unknown ok so wait, Dave, that was from two years ago, saying they didn't support IE, but were hoping to fix that bug as soon as possible.. so does that link reflect

[wtr-general] Re: Help: File Size defining with Cucumber Watir.

2010-12-19 Thread Jarmo Pertman
I didn't understand what's the exact problem. Could you be more specific what you'd want to exactly do? Jarmo Pertman - IT does really matter - http://www.itreallymatters.net On Dec 19, 5:02 am, Irfan Ahmed irfan...@gmail.com wrote: Hi, I am working for automation with Cucumber and watir

Re: [wtr-general] Re: Help: File Size defining with Cucumber Watir.

2010-12-19 Thread Irfan Ahmed
Hi, Jarmo Pertman, Thanks for your response. Actually there was a problem to find out a file size for upload. Becuase, I need to know if the file size is more then something then the system will display a message xcvbnnm. Look at the step generated by cucumber: *Given /^I have selected a logo

Re: [wtr-general] Re: help-please: cucumber-watir tutorial

2010-12-14 Thread Keith Hughes
Irfan, Have a look at these, http://khughes88.wordpress.com/tag/cucumber/ http://khughes88.wordpress.com/tag/webdriver/ rgds Keith On Tue, Dec 14, 2010 at 3:04 AM, Dave McNulla mcnu...@gmail.com wrote: that's on my wish list. i'll probably buy it next. dave On Dec 13, 10:39 am, Chuck

Re: [wtr-general] Re: help-please: cucumber-watir tutorial

2010-12-14 Thread Irfan Ahmed
Hi everybody, You people are too much helpful..I am really grateful to you. I wish one day, some how, I can also help you...:) On Tue, Dec 14, 2010 at 5:22 PM, Keith Hughes khughe...@gmail.com wrote: Irfan, Have a look at these, http://khughes88.wordpress.com/tag/cucumber/

[wtr-general] Re: help-please: cucumber-watir tutorial

2010-12-13 Thread Chuck van der Linden
http://www.pragprog.com/titles/achbd/the-rspec-book buy and read On Dec 12, 4:39 pm, Basim Baassiri ba...@baassiri.ca wrote: Have you read any information herehttp://www.cuke4ninja.com/ On Sun, Dec 12, 2010 at 12:40 PM, Irfan Ahmed irfan...@gmail.com wrote: Hi, Anybody here who can

[wtr-general] Re: help-please: cucumber-watir tutorial

2010-12-13 Thread Dave McNulla
that's on my wish list. i'll probably buy it next. dave On Dec 13, 10:39 am, Chuck van der Linden sqa...@gmail.com wrote: http://www.pragprog.com/titles/achbd/the-rspec-book buy and read On Dec 12, 4:39 pm, Basim Baassiri ba...@baassiri.ca wrote: Have you read any information

Re: [wtr-general] Re: Help: cant get jSSH to work on windows 2003

2010-07-21 Thread Angrez Singh
Is the problem still there? Can you make sure you are installing JSSh using administrator privileges? - Angrez On Wed, Jul 21, 2010 at 2:18 AM, Eddie ed...@mattermedia.com wrote: No, there was no firewall. server used only IPsec, and even with IPsec OFF, i still had the problem. I solved it

[wtr-general] Re: Help: cant get jSSH to work on windows 2003

2010-07-21 Thread Eddie
thanks, the problem was solved by using FF 3.5.10 (and xpi 3.5). installing as admin did not help. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to

[wtr-general] Re: Help: cant get jSSH to work on windows 2003

2010-07-20 Thread Eddie
No, there was no firewall. server used only IPsec, and even with IPsec OFF, i still had the problem. I solved it by using FF 3.5.10 (and xpi 3.5). The problem that I had then was: Win32::Registry::Error in ProcessController#index The system cannot find the file specified. RAILS_ROOT:

[wtr-general] Re: Help with Watir Page Checkers

2010-03-03 Thread yoggy
Hi Marek, I did what you told me to do and it justs prints a space and nothing else. I am not sure the checker which ships with Watir is robust enough to check the page response. I think it doesnt raise any exception for page which i am testing. The watir page checker code is below: def

[wtr-general] Re: Help with Watir Page Checkers

2010-03-03 Thread yoggy
Just an update to my previous post. Because the website am testing requires some form of LDAP authentication, the RESPONSE_CODE_CHECKER code checker i have written fails with a 401 everytime, any ideas as to how to fix this??? On Mar 3, 10:45 am, yoggy samuelades...@googlemail.com wrote: Hi

Re: [wtr-general] Re: Help with Watir Page Checkers

2010-03-03 Thread Paul Rogers
the error checkers use the standard IE error page. Your app or web server can override these to display a different page to the user. Youd have to write your own checker for that. Paul On Wed, Mar 3, 2010 at 3:45 AM, yoggy samuelades...@googlemail.com wrote: Hi Marek, I did what you told me

Re: [wtr-general] Re: Help with Watir Page Checkers

2010-03-03 Thread marekj
Are you using IE8 ? or IE 7? When using IE 8 the IE#check_for_http_error doesn't raise an error as expected and always returns false. in IE7 it works. The implementation checks for IE 7 condition or assumes it's IE6 (yes, code was written before IE8 here) this line if m and m[1] =='7.0' could be

[wtr-general] Re: Help with Watir Page Checkers

2010-03-02 Thread yoggy
I have included the raise and it doesnt work still. I also removed the rescue and puts line still this doesnt work, My test stak is using Cucumber + Watir, could this be a reason ... Confused :( -- You received this message because you are subscribed to the Google Groups Watir General

Re: [wtr-general] Re: Help with Watir Page Checkers

2010-03-02 Thread marekj
When you run those lines what happens? begin browser.add_checker PageCheckers::NAVIGATION_CHECKER browser.goto(http://www.somecrazynonexistantthing.com/reallynonexistant;) resuce= e put e end what is the value of e? marekj Watirloo: Semantic Page Objects in UseCases

[wtr-general] Re: Help with Modal Dialog boxes !!!!

2010-02-10 Thread chandu.tennety
I noticed that your Watir version is 1.5.2. I'm not sure how well modal dialogs were supported in that version. I would upgrade and try some of Charley's solutions. Chandu On Feb 10, 12:40 am, Rohan Premvallabh Ojha rohan.o...@bsil.com wrote: HI Charley, I had tried the method that you have

[wtr-general] Re: Help required to access src element in the following code.

2010-02-10 Thread Super Kevy
A: It is not an image its a flash object. B: This description (below) doesnt match your original code snippet which shows both items always visible. The orginal code contained a lot of text but not a lot of information about what are you trying to do and what object your trying to verify. C: The

Re: [wtr-general] Re: Help required to access src element in the following code.

2010-02-09 Thread Željko Filipin
On Tue, Feb 9, 2010 at 6:23 AM, ashwin mahesh smashwi...@gmail.com wrote: Any idea how to overcome this problem. No, because you did not provide answers to my questions. Željko -- watir.com - community manager pledgie.com/campaigns/2982 - donate to Watir watirpodcast.com - host

[wtr-general] Re: Help required to access src element in the following code.

2010-02-09 Thread ashwin mahesh
There is a chart which shows data in four formats namely 2D pie chart, 3D pie chart, bar chart and tabular table. So to change from one type of format to another I need to click on a image. I want to verify whether the chart shown is according to the image on which I clicked. When I click on image

[wtr-general] Re: Help required to access src element in the following code.

2010-02-09 Thread jw
ok i get it. it's an embed element as opposed to a button or link, etc. if you have an IE object you can use the html method to get the html text. not great but might do the trick On Feb 9, 6:11 am, ashwin mahesh smashwi...@gmail.com wrote: There is a chart which shows data in four formats

[wtr-general] Re: Help with Modal Dialog boxes !!!!

2010-02-09 Thread jw
By having the access right do you mean access as in permissions or just you're not accessing it correctly? I have been using enabled_popup and WinClicker to interact with javascript modal dialogs with decent success. The button I had to click was labelled Open but the button name I had to pass to

[wtr-general] Re: Help with Modal Dialog boxes !!!!

2010-02-08 Thread GJHmf
Hi, I had this issue, and was partially what got me to migrate to Watir from Selenium. Assuming yours is the same setup as mine, I merely attached to the open window like any other browser window using the title. e.g: browser = Watir::IE.attach(:title, Google) I could then access any elements

[wtr-general] Re: Help required to access src element in the following code.

2010-02-08 Thread ashwin mahesh
Any idea how to overcome this problem. Thanks, Ashwin. On Feb 6, 2:56 pm, ashwin mahesh smashwi...@gmail.com wrote: When I click on a button, src=/bf/Charts/Pie2D.swf will change to src=/bf/Charts/Pie3D.swf. So to verify this change I need to access the the element whose attribute is

[wtr-general] Re: Help required to access src element in the following code.

2010-02-06 Thread ashwin mahesh
When I click on a button, src=/bf/Charts/Pie2D.swf will change to src=/bf/Charts/Pie3D.swf. So to verify this change I need to access the the element whose attribute is src=/bf/Charts/Pie2D.swf. But from the above HTML code I am not able to identify the element. Thanks, Ashwin On Feb 5, 3:32 pm,

Re: [wtr-general] Re: help me in using Excel DataDrivenTestHarnessExample

2009-12-08 Thread venkat
Hi Tiffany, thanks and no confusion, we are on the same page. $addNotification = xlFile.getRowRecords(A1:E6, Sheet4) $addNotification.each do |notification| if notification['Priority'] == 'Urgent' $ie.select_list( :name , tusers).select(record[Select_Users]) # here it gets only 1row but i

[wtr-general] Re: help required - Re-usable framework watir sql server/oracle database

2009-11-25 Thread venkat
thanks Tiffany for providing the url for ref. still i am trouble with the following error in my script execution. C:/build/ruby-oci8-2.0.3/ext/oci8/stmt.c:306:in oci8lib.so: ORA-00942: table or view does not exist (OCIError) from

[wtr-general] Re: Help with tables

2009-11-23 Thread George
I'm assuming that the text 'Something' is actually in a row's cell, and you're looking for the following cell text, correct? If 'Something' is only going to be listed once in the entire table, then this should work for you: puts @browser.table(:id, 'tableID').cell(:after?, @browser.cell(:text,

[wtr-general] Re: Help with tables

2009-11-23 Thread George
I'm assuming that the text 'Something' is actually in a row's cell, and you're looking for the following cell text, correct? If 'Something' is only going to be listed once in the entire table, then this should work for you: puts @browser.table(:id, 'tableID').cell(:after?, @browser.cell(:text,

[wtr-general] Re: Help with tables

2009-11-23 Thread Tiffany Fodor
Hi George! I couldn't get the .text method to work without looping through the rows in a table, here's how I did it: my_table = browser.table(:id, 'table_id') my_table.rows.each do |row| if row.text.include?('Something') my_text = row[3].text end end You'll need to figure out which

[wtr-general] Re: Help required regarding link method

2009-10-23 Thread Amit Kulkarni
Thanks for the help. Following is the page source. body div class=main !-- main -- div class=header-container !-- header -- div class=header div class=actions welcome a href=/profile/nikeman alt=nikeman class=underline

[wtr-general] Re: Help required regarding link method

2009-10-23 Thread Wesley Chen
I tried all the methods below, they work: 1. $ie.link(:after?, $ie.image(:title, Photogallerysanity1)).click 2. $ie.link(:after?, $ie.image(:alt, Photogallerysanity1)).click 3. $ie.link(:after?, $ie.image(:src, /s3.amazonaws.com \/staging-brandpotion-prints/)).click 4. $ie.image(:alt,

[wtr-general] Re: Help required regarding link method

2009-10-23 Thread Amit Kulkarni
Thanks Wesley, I will try it out and let you know. Thanks for thee help. :-) 2009/10/23 Wesley Chen cjq@gmail.com I tried all the methods below, they work: 1. $ie.link(:after?, $ie.image(:title, Photogallerysanity1)).click 2. $ie.link(:after?, $ie.image(:alt, Photogallerysanity1)).click

[wtr-general] Re: Help required regarding link method

2009-10-22 Thread Željko Filipin
On Thu, Oct 22, 2009 at 10:05 AM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: i want to recognize this Edit link using the image title. browser.link(:after?, browser.image(:title, Photogallerysanity)).click Željko -- http://watirpodcast.com/

[wtr-general] Re: Help required regarding link method

2009-10-22 Thread Amit Kulkarni
Hi Željko, I tried browser.link(:after?, browser.image(:title, Photogallerysanity)).click but no success I also tried using .flash method but it does not flash anything. Can you please tell me what is going wrong? On Thu, Oct 22, 2009 at 1:40 PM, Željko Filipin zeljko.fili...@wa-research.ch

[wtr-general] Re: Help required regarding link method

2009-10-22 Thread Željko Filipin
On Thu, Oct 22, 2009 at 12:36 PM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: I tried browser.link(:after?, browser.image(:title, Photogallerysanity)).click but no success Amit, You have posted a few very similar questions in the last two days. Have you read the tutorial?

[wtr-general] Re: Help required regarding link method

2009-10-22 Thread Amit Kulkarni
Sorry for the trouble. I got it that my queries are similar. But i dont know why is it not working on my side. No my application does not use frames. Even i try to flash any object it does not. Can you tell me what is the problem? On Thu, Oct 22, 2009 at 4:17 PM, Željko Filipin

[wtr-general] Re: Help required regarding link method

2009-10-22 Thread Željko Filipin
On Thu, Oct 22, 2009 at 1:10 PM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: Even i try to flash any object it does not. Can you tell me what is the problem? No. It could help if the application is public and you provided the link to it, so I could take a look. Željko

[wtr-general] Re: Help required regarding link method

2009-10-22 Thread Amit Kulkarni
Sorry again, Yes i read the tutorial. I tried some stunts but no success.So posted my queries here. On Thu, Oct 22, 2009 at 4:48 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Oct 22, 2009 at 12:47 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: Have you read the

[wtr-general] Re: Help required regarding link method

2009-10-22 Thread Amit Kulkarni
I also tried to use using Xpath. i.e. Browser.link(:xpath,//a...@href='/Nikes/photo_gallery/attachments/218/edit?media=print']/).text # = Edit Still no success.Is there something wrong with the above code? On Thu, Oct 22, 2009 at 4:55 PM, Amit Kulkarni amitkkulkarni...@gmail.comwrote: Sorry

[wtr-general] Re: Help required regarding link method

2009-10-22 Thread Angrez Singh
can you try this? Browser.link(:xpath,//i...@title='Photogallerysanity']/a).flash() or click() - Angrez On Thu, Oct 22, 2009 at 5:03 PM, Amit Kulkarni amitkkulkarni...@gmail.comwrote: I also tried to use using Xpath. i.e.

[wtr-general] Re: Help required regarding link method

2009-10-22 Thread Amit Kulkarni
Hi Angrez, I tried with the link you provided but it shows below error Unable to locate element, using :xpath, //i...@title='Photogallerysanity']/ (Watir::Exception::UnknownObjectException) Same error appears when i use .click or .flash On Thu, Oct 22, 2009 at 5:14 PM, Angrez Singh

[wtr-general] Re: Help required regarding link method

2009-10-22 Thread Wesley Chen
Your this question has taken so much time. I think you still have not described your question clearly enough. For the html code you provided, of course it is easy for us to help you to locate. Please give us the whole page source you failed to locate, and show the error message you got.

[wtr-general] Re: Help selecting elements of a drop down list when the site uses Javascript/ASP.net

2009-08-28 Thread Chuck van der Linden
HTML SelectList elements have two 'parameters' as it were for each item on the list. a text lable that is displayed to the user, and an underlying 'value' that is returned in the HTTP request when that list item is selected. I think you are confusing the two. Try looking at the actual HTML for

[wtr-general] Re: Help selecting elements of a drop down list when the site uses Javascript/ASP.net

2009-08-27 Thread Željko Filipin
On Thu, Aug 27, 2009 at 2:35 AM, Doodle jeffrey.eman...@gmail.com wrote: site (which, btw, is a public site for looking at detailed reports about banks), Can you send us a link and let us know what you want to do? Željko -- http://watirpodcast.com/

[wtr-general] Re: Help selecting elements of a drop down list when the site uses Javascript/ASP.net

2009-08-27 Thread Doodle
Sorry, I thought it was clear in my first post. The site is https://cdr.ffiec.gov/public/ManageFacsimiles.aspx I am trying to search through a list of Cert Codes. For each Cert Code, I want to download the file corresponding to each date present in the date dropdown list and click submit. On

[wtr-general] Re: Help selecting elements of a drop down list when the site uses Javascript/ASP.net

2009-08-26 Thread Doodle
Thanks for your response, Chuck. I tried clearing the selection first, and that didn't seem to make a difference. The changing of the dropdown box does in fact trigger a postback: onchange=javascript:setTimeout('__doPostBack (\'FacsimileSearchControl1$FromDateDropdownlist\',\'\')', 0) I am

[wtr-general] Re: Help selecting elements of a drop down list when the site uses Javascript/ASP.net

2009-08-24 Thread Chuck van der Linden
Try clearing the current selection, before selecting another value in the selection list. Also since picking the radio button causes the page to re-render (or is it a postback?), you might need to put in a small wait for a second or two after doing that to give the browser a chance to do it's

[wtr-general] Re: Help with class,method,objects

2009-07-31 Thread marekj
General Subject: [wtr-general] Re: Help with class,method,objects Are you using the Excel interface class from Watir's site? http://wiki.openqa.org/display/WTR/Excel+interface+class On Jul 29, 9:57 pm, Rohan Ojha rohan.o...@bsil.com wrote: Hi All, I am not too sure whether I

[wtr-general] Re: Help with class,method,objects

2009-07-30 Thread George
Are you using the Excel interface class from Watir's site? http://wiki.openqa.org/display/WTR/Excel+interface+class On Jul 29, 9:57 pm, Rohan Ojha rohan.o...@bsil.com wrote: Hi All, I am not too sure whether I should post it here or in a Ruby forum. But there is a problem that I am facing

[wtr-general] Re: Help with class,method,objects

2009-07-30 Thread Rohan Ojha
of the class but instance of an array object. Thanks Rohan Ojha -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of George Sent: Friday, July 31, 2009 8:39 AM To: Watir General Subject: [wtr-general] Re: Help with class

[wtr-general] Re: Help on acessing values in a table

2009-07-28 Thread Chethan
Refer http://wtr.rubyforge.org/rdoc/ look for Watir:table watir:tables Class This will give you much about table related functions. Thanks, Chethan On Jul 28, 1:51 pm, ajil ajilmath...@gmail.com wrote: table class=program-drag-sec-box cellspacing=0 cellpadding=0 border=0 width=100% tbody

[wtr-general] Re: Help : XPath : To access elements with same label

2009-07-17 Thread Željko Filipin
On Fri, Jul 17, 2009 at 10:17 AM, ajil ajilmath...@gmail.com wrote: Now if want to take the data Event 2 1) You have posted two threads with almost the same content. Please do not do that. 2) I get a lot of text for your xpath: irb b.cell(:xpath, //lab...@class='con-grey']/../).text Function

[wtr-general] Re: Help needed

2009-07-13 Thread Ajith
Hello Rakesh, Amits earlier solution with multiple attributes works fine with the page u provided. ie.checkbox(:id = selectedevent, :index = 1).set ie.checkbox(:id = selectedevent, :index = 2).set ie.checkbox(:id = selectedevent, :index = 3).set Is it something else that you require? -AJ On

[wtr-general] Re: Help needed in automation using Watir

2009-05-19 Thread G
I've been using Watir to write tools for the ExtJS desktop environment. In this; every time anything is done, random IDs are generated, which makes it 'challenging'. Luckily, most similar elements (for instance form text entry fields) are the same. So I've designed a set of functions which

[wtr-general] Re: Help! Ext treegrid unable to select row

2009-05-19 Thread G
I'm working with ExtJS Desktop interface here. Not sure if it's the same, but on their 'grid' elements, I'm using .fireevent(onmousedown) - but it did take some time to find the right bit. I think the code you've put up is ext specific code? I tend to do a browser.html for the 'useful' DOM, then

[wtr-general] Re: Help needed in automation using Watir

2009-05-15 Thread karimnumerouno
IE developer tool bar is good, but at times the IE browser get stuck some time when the IE developer tool bar is open, i had a problem with the same on vista, firebug is better in that case. On May 15, 9:18 am, Lokesh Agrawal lokesh.agra...@gmail.com wrote: Hi All, Thanks for the reply. I

[wtr-general] Re: Help needed in automation using Watir

2009-05-15 Thread Jarmo Pertman
On May 15, 7:18 am, Lokesh Agrawal lokesh.agra...@gmail.com wrote: I found one framework with this approach: JAF (http://90kts.com/blog/ 2008/just-another-framework-for-developing-watir-test-cases/). But I have not used it so doesn't know if this is helpful or not. (As this framework is

[wtr-general] Re: Help needed in automation using Watir

2009-05-15 Thread karimnumerouno
guys, justaddwatir.com this is also a nice help for most frequently asked questions on watir group, it seems to be a very helpful article Karim Rayani On May 15, 2:51 pm, Jarmo Pertman jarm...@gmail.com wrote: On May 15, 7:18 am, Lokesh Agrawal lokesh.agra...@gmail.com wrote: I found one

[wtr-general] Re: Help needed in automation using Watir

2009-05-15 Thread Chuck van der Linden
Jim is right on the money here, I'm probably going to somewhat end up restating what he said. This issue of finding a consistent way to identify the objects within the dom is not unique to Watir, it exists for ALL automation tools to one degree or another. Watir provides a large variety of ways

[wtr-general] Re: Help! Ext treegrid unable to select row

2009-05-15 Thread Chuck van der Linden
Do you feel the problem is the ability to identfy the page element itself, or figuring out what event it's listening for? Who makes Ext ?? have you tried asking them how you might do this? or looked into the Ext code itself to see what events it might be looking for? (it seems almost like they

[wtr-general] Re: Help needed in automation using Watir

2009-05-14 Thread karim rayani
when doing automation, any testing tool has the concept of object identification be it QTP, SILKTEST etc, you can try to use indexing if possible for object identification, the developer can change the name, id etc indexing can help, but mind you that can also change if the devs donot understand

[wtr-general] Re: Help needed in automation using Watir

2009-05-14 Thread Vicky Goyal
If you use IDE, that would help you to work little better. Dunno if you using that or not. Apart from that, i don't think there would be a solution.. only developers should feel little mercy.. :) On May 14, 12:02 pm, Lokesh Agrawal lokesh.agra...@gmail.com wrote: Thanks Alkarim, Is there any

[wtr-general] Re: Help needed in automation using Watir

2009-05-14 Thread karim rayani
you can use the IE developer tool bar on IE and firebug on firefox for object identification, there is no special object spy which i know off for watir, i largely believe these are the tools which are widely used for object identification for watir. If there is any thing for object spying like

[wtr-general] Re: Help needed in automation using Watir

2009-05-14 Thread Jim Matthews
...@hotmail.com wrote: I use a tool called PageSpy.   http://www.sembel.net/ - Shelton Date: Thu, 14 May 2009 14:37:00 +0530 Subject: [wtr-general] Re: Help needed in automation using Watir From: karim@gmail.com To: watir-general@googlegroups.com you can use the IE developer

[wtr-general] Re: Help needed in automation using Watir

2009-05-14 Thread Željko Filipin
2009/5/14 Jim Matthews jim_m...@swbell.net If they don't respond, then you should talk to your manager who is interested in having automated tests +1 Željko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir

  1   2   >