Re: [wtr-general] How do I get the maxlength for a text_field?
Ask the developers and pm's. That's a better discussion for your group than for a tool forum IMHO. Another way to go is decide what is a reasonable value. When boundary testing I typically copy a large text document and paste it, of course when doing this my primary goal is to expose SQL data that could be used for injection based attacks and file bugs accordingly. My .02c Eric On Feb 11, 2013 8:51 PM, Phuoc Can Hua h...@huaonline.com wrote: I used to use textField().maxlength in my scripts. Now I've changed it to use 'watir-webdriver'. It doesn't like textField and I had to change it to text_field instead. My problem is I can't get text_field().maxlength. It's saying: undefined method. How can I get maxlength of text_field? Thanks Phuoc -- -- 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+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [wtr-general] Watir and Quibids.com
Hi Tommy, I need you to be a bit more specific in order to help you, What Bid now are you trying to click. On the main entry page there are at least 5 Bid Now buttons, are you trying to click on the first element or what? IE Developer tools lists the first Bid Now as div class=271302023 id=271302023 bid=Bid Now try using that identifier. On Sat, Dec 1, 2012 at 12:30 PM, TommyW tommy6206...@yahoo.com wrote: I've tried for a couple hours trying to find the right combination of: browser.button(:id, 929940484).click to click the button on the Quibids.com item-specific page but have had zero luck. It keeps giving Unable to Locate Element error. I have also tried :value of Bid Now and a countless other combinations. Any help would be appreciated. -- 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+unsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.com
Re: [wtr-general] undefined method LoginByAccountno for #Watir::IE:0x68441e8
+2 On Sep 28, 2012 12:14 PM, Željko Filipin zel...@filipin.eu wrote: On Fri, Sep 28, 2012 at 10:12 PM, Joe Fleck joeflec...@gmail.com wrote: Can you paste your code in here? +1 Željko -- 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+unsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Handling a windows file upload dialog box
Try absolute pathing... see if that works. On Aug 2, 2012 10:24 PM, mani racha manira...@gmail.com wrote: Hi Dan, Thanks for your quick reply. I have tried with your suggestion. But it says `set': No such file or directory - hi.txt Although the file is present. Is there any other ways to crack this?? -- 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+unsubscr...@googlegroups.com ;t -- 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+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Page Objects and Cucumber charity workshop live streaming!
Oh god, you have an iPhone... Go buy an Android and say no to child labor! :-) On Thu, Mar 22, 2012 at 11:45 AM, bis bis...@gmail.com wrote: I don't know if there is a quick reference for actual page objects what you are doing is defining and adding Sent from my iPhone On Mar 22, 2012, at 3:41 PM, annemordk...@gmail.com wrote: Is the page objects quick reference available online somewhere? Anne On , Željko Filipin zeljko.fili...@gmail.com wrote: On Thu, Mar 22, 2012 at 1:40 PM, Max max.s...@gmail.com wrote: would be awesome if this could be later posted on youtube :) We will do our best, also recording in HD, will see how it goes. Željko -- 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+unsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Checking whether the text in the password field is masked or not
why not just take a screenshot and visually verify? On Thu, Feb 2, 2012 at 9:09 AM, Dan dfra...@gmail.com wrote: Can't you just check and make sure the value of the text_field isn't equal to the password? Get the value of the text field like this : b.text_field(:id = password).value -- 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+unsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.com
Re: [wtr-general] Re: modal_dialog and win32ole
Modal Dialogs should be bugs. Most people (myself included) dislike them. On Fri, Sep 23, 2011 at 1:42 PM, Super Kevy kpe...@scholarshipamerica.org wrote: Did you get this error resolved? You may need to do system updates at the command prompt gem update --system On Sep 13, 11:30 am, Bob Loblaw wccol...@gmail.com wrote: Hi guys I was just testing out some scenarios with modal_dialog and everything was working perfectly so I copied it over to my main script and everything failed. The error that came up was: C:/Ruby/lib/ruby/gems/1.8/gems/watir-2.0.2/lib/watir/modal_dialog.rb: 32:in `locate': undefined method `connect_unknown' for WIN32OLE:Class (NoMethodError) from C:/Ruby/lib/ruby/gems/1.8/gems/watir-2.0.2/lib/watir/ modal_dialog.rb:36:in `document' from C:/Ruby/lib/ruby/gems/1.8/gems/watir-2.0.2/lib/watir/ modal_dialog.rb:41:in `title' from test.rb:18 When I removed the require 'win32ole' from my test, everything worked again. Does anyone know why this is the case? Here is my simple test to show you what I mean. This code will attach itself to an open page called Assignment and then click on a button to load a new modal page This code works = require 'rubygems' require 'watir' browser = Watir::IE.attach(:title, /Assignment/) browser.image(:id, new_initiativeid).click_no_wait puts browser.modal_dialog(:title, Look Up Records).exists? puts browser.modal_dialog(:title, Look Up Records).title puts browser.modal_dialog(:title, Look Up Records).url browser.modal_dialog(:title, Look Up Records).show_all_objects But this code does not work = require 'rubygems' require 'watir' require 'win32ole' browser = Watir::IE.attach(:title, /Assignment/) browser.image(:id, new_initiativeid).click_no_wait puts browser.modal_dialog(:title, Look Up Records).exists? puts browser.modal_dialog(:title, Look Up Records).title puts browser.modal_dialog(:title, Look Up Records).url browser.modal_dialog(:title, Look Up Records).show_all_objects I am using ruby 1.8.7 and WATIR 2.0.2 -- 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+unsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Proof Of Concept
I will undercut to $125 / hr. Depending on your application of course... ~Eric On Tue, Apr 5, 2011 at 3:01 PM, Charley Baker charley.ba...@gmail.com wrote: I'll do it for $149.99/hr :) Seriously, there are plenty of resources for Watir on the web, it should be fairly easy for you to come up with some scripts to test your app. We can't really do your POC for you, but let us know if you have specific questions. -c On Tue, Apr 5, 2011 at 8:02 AM, Abe Heward abe.hew...@gmail.com wrote: Concept: Testing web applications with Watir Proof: www.watir.com Q.E.D. Neeraj, My rate is $150/hr, 10 hours, minimum. Where do I send the bill for this assistance with your project. Abe On Apr 5, 1:25 am, Neeraj Pant neeraj.pa...@gmail.com wrote: Hi, I am new to Watir and have taken basic understanding on Watir using Ruby language. I am planning to make POC. Please assist me in creating POC doc. Thanks, Neeraj -- 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+unsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.com
Re: [wtr-general] Firefox 4 and Firewatir
2 words. Disk Image On Tue, Mar 22, 2011 at 7:53 AM, Alastair Montgomery doodl...@gmail.com wrote: Has anyone tried running Firewatir with Firefox 4? I don't want to break my test environment by installing it on my Mac. -- 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+unsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.com
Re: [wtr-general] Displaying text from RegEx
use the .keypress method... simulate as a user would... On Thu, Dec 9, 2010 at 11:13 AM, watirboy enrique.j.ma...@gmail.com wrote: Odd situation. The developers at my site are using legacy code that is screwed up HTML. Basically for my WATIR script I need to echo out the next 6 characters after the string I am searching for. Usually I would just dig deep into the TD cells, but they are all jumbled. Does anyone have any idea how I can do this? Normally I would just RegEx the IE Contains, but I need to make sure that it displays after the wording. In my real world example, I need to look for the company's name (XYZ) and grab the generated digits after it: After creating a policy for XYZ Corporation, the generated number on the page is: XYZ123456987 I need to grab the number after XYZ No hidden inputs, and the priority on fixing this is low for this customer. -- 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+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.com
Re: [wtr-general] Can't click on a nameless div
you could try using a fire event statment such as @browswer.link(:text, Add Another State).fire_event(onmousedown) or similar... On Tue, Dec 7, 2010 at 2:21 PM, LizLeong elc.le...@gmail.com wrote: I'm running Ruby1.8.7 patchlevel 249 with Watir 1.6.7 on WinXP. I'm trying to click on the text Add Another State on a web page. It looks like a link, but I am having trouble hooking onto it. The structure is: div class=mainModule form name=stateBar id=stateBar action=http://www.website.com/ insert method=post div span id=writeBar/ div style=text-align: right; width a onclick=addState(3); $('a[id ^=dellink]'.show(); return false; href=# Text - Add Another State Text - Empty Text Node I've tried the following unsuccessfully. I tried to use flash also and didn't see anything highlighted either. ie.div(:class=mainModule).div(:text=Add Another State).click ie.div(:class=mainModule).div(:href=#).click ie.span(:text,Add Another State).link(:text,Add Another State).click Maybe there's no way to do what I want, even knowing that would help! -- 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+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Clicking OK javascript confirm popup?
Hello, Try this... Substitutethe (Windows Internet Explorer, 'OK') with the title (if given) and the name of the control you want to click... I have the same issue with OK's, Close's and Yes's. This little script solved it for my application woes. require 'win32ole' begin autoit = WIN32OLE.new('AutoItX3.Control') loop do autoit.ControlClick(Windows Internet Explorer,'', 'OK') autoit.ControlClick(Windows Internet Explorer,'', 'Close') autoit.ControlClick(Security Information,'', 'Yes') autoit.ControlClick(Security Alert,'', 'Yes') autoit.ControlClick(Security Warning,'', 'Yes') autoit.ControlClick(Message from webpage,'', 'OK') # other options can be included here sleep 3 end rescue Exception = e puts e end On Mon, Dec 6, 2010 at 12:08 PM, slindsey3000 slindsey3...@gmail.comwrote: I can't believe this is so tough in Watir? Clicking on confirm seems impossible? Anyone? -- 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+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.com
Re: [wtr-general] Clicking OK javascript confirm popup?
Have you tried using .fire_event? Sry I'm on my cell On Dec 2, 2010 11:42 PM, slindsey3000 slindsey3...@gmail.com wrote: I have read quite a few things online over the last 2 days about clicking OK in a javascript confirm pop-up. I have been unable to select ok using watir and IE. Here is the div -- div class=actions_wrapper clearfix p id=delete_threads class=btn small white small_white style= onmousedown=util.toggleClass(this, 'active') onmouseup=util.toggleClass(this, 'active') onmouseover=util.toggleClass(this, 'hover') onmouseout=util.toggleClass(this, 'hover')a href=#delete id= class= onclick=if(confirm('Deleting means no going back.')) {Mailbox.deleteThreads();} return false; target=Delete selected conversations/a/p p id=select_all_threads class=btn small white small_white style= onmousedown=util.toggleClass(this, 'active') onmouseup=util.toggleClass(this, 'active') onmouseover=util.toggleClass(this, 'hover') onmouseout=util.toggleClass(this, 'hover') a href=#selectall id= class= onclick=Mailbox.toggleThreadSelection(); return false; target=Select all/a/p /div My code -- browser.link(:text, Delete selected conversations).click_no_wait ??? -- End of code This (above) line triggers the javascript confirm dialog. What goes in the ??? ... I have tried about 50 different things. My inexperience has gotten the best of me here with watir. Any help or direction appreciated. It seems like it should be easy and common to have to click on javascript OK buttons. Thanks! Shawn -- 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+unsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.com
Re: [wtr-general] Capture Text
Thanks for the pointer! I'm getting closer to finding that pesky string. Here's what I've written after reading your links; ie.frame(foo).tables.each do |t| puts since you don't have ID's, look at every table puts t for i in 1..t.row_count puts for every row in this table puts i t[i].each do |cell| puts for every column in this row, look at its contents puts cell if ie.text.include? Password: puts if true, this is your cell puts cell.text end end end end and then I end up with; C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/table.rb:294:in `each': undefined method `length' for nil:NilClass (NoMethodError) from C:/Documents and Settings/eric.mathiesen/Desktop/fc90-script/845-Mo dified/BVT/BVT-17815/debug.rb:27 from C:/script/debug.rb:23:in `each' from C:/script.rb:23 from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element_collections.rb:45:in `each' from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element_collections.rb:45:in `upto' from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element_collections.rb:45:in `each' from C:/script.rb:20 Line 20 is; ie.frame(foo).tables.each do |t| On Fri, Nov 5, 2010 at 2:46 PM, Basim Baassiri ba...@baassiri.ca wrote: What code have you tried? You could use Xpath to retrieve the value looking at the class (if its unique to the page) http://wiki.openqa.org/display/WTR/XPath Try reading about tables http://rdoc.info/gems/watir/1.6.6/Watir/Table On Fri, Nov 5, 2010 at 5:32 PM, Eric Mathiesen mathiese...@gmail.comwrote: Hello All! I am running into a significant challenge capturing a string of text to later use in my script. Here's the situation. I have a basic create user form in my application (First Name, Last Name, Username) that provides a password on the page. How would I go about capturing the string for the password as It changes every time. In the snippet below, the string I want captured is ynHZaBK Any help is GREATLY appreciated! Viewing source gives me this (condensed to the fields I'm working with). tr align=left valign=middle td width =50% height =20 table width=100% border=0 cellpadding=0 cellspacing=0 tr class=formHeaderSkinBG td width=50% height= table width=100% border=0 cellpadding=0 cellspacing=1 tr class =formHeaderBG td width =50% height =20 class =formHeader id='3081488100560284032' onclick = root.handleOnClick(document, this); Password: nbsp; nobr /td /tr /table /td /tr /table /td td class=pageContent width= align=left valign=middle height=20 ynHZaBK /td /tr Thanks, Eric -- 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+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.com
Re: [wtr-general] Identify IP address
Fortis type of test I would use QTP or other similar GUI interface testing tools. I have also had success with AutoIT. Watir is for Web Application Testing In Ruby Right tool for the right job type of thing. ;) Eric On Sun, Nov 7, 2010 at 10:14 PM, Chandu80 chandu.she...@gmail.com wrote: Hello All, I want to write a script by which I can open up a text file,scan through it,find the line which contains the word 'test_site',get the IP address corresponding to that word, replace that IP with another IP address and then save and close the file. Are there any commands in Ruby to identify IP address from a string? Thanks in advance Regards Chandrika -- 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+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.com
Re: [wtr-general] Capture Text
Oops, sorry. Line 27 is t[i].each do |cell| I really do appreciate the help on this! Eric On Mon, Nov 8, 2010 at 8:24 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, Nov 8, 2010 at 5:12 PM, Eric Mathiesen mathiese...@gmail.com wrote: from C:/Documents and Settings/eric.mathiesen/Desktop/fc90-script/845-Mo dified/BVT/BVT-17815/debug.rb:27 And line 27 of debug.rb is? Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- 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+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Manipulate Keystrokes on a MAC
I have your solution. DONT BUY A MAC. Go Linux, it's far superior. That being said as Crapple attempts in a lame fashion to follow the *nix realm. Try using some Linux test tools. Can't guarantee they work on a Mac-In-Trash, but here... http://ltp.sourceforge.net/ Linux Test Project. On Thu, Oct 7, 2010 at 9:25 AM, Ethan notet...@gmail.com wrote: well, I'd have posted in the original thread if I had a solution. same is true for everybody else, I suspect, so spamming the same thing repeatedly isn't going to help, regardless of minimally different wording. however, generally, sending keystrokes via the operating system is a poor solution (in my opinion), and much more error-prone than going through the DOM. if it's interacting with a web page that is being problematic, it may be just a question of firing the right events in javascript. not knowing more about the actual problem, it's not possible to get more specific than that, but that is my general, broad advice. On Thu, Oct 7, 2010 at 12:02, saqi saqibowl...@gmail.com wrote: I have a similar problem and have been checking the site for a solution for a few days now and still haven't found anything. I am very eager to find a solution to this problem also. In fact I appreciate Ozzi's eagerness to find a solution by posting the problem in different terms to make it more understandable by more users, therefore increasing his (and others) chance to find a solution. Come on guys, someone must have a solution out there for manipulating keystrokes on a MAC? Ethan - HELP if you don't want no more new posts lol On Oct 7, 4:52 pm, Ethan notet...@gmail.com wrote: if you have more to add, add it to the original thread where you asked. On Thu, Oct 7, 2010 at 11:50, Ozzi usmanhhuss...@gmail.com wrote: Am just trying to see if anyone has a solution or if anyone has ever come across this problem... maybe asking it in a different way will make people understand the question a bit better?... After all this is a forum where people help each other out... On Oct 7, 4:42 pm, Ethan notet...@gmail.com wrote: stop sending the same question to the list over and over. On Thu, Oct 7, 2010 at 10:05, Ozzi usmanhhuss...@gmail.com wrote: Hi Guys, If anyone knows how to manipulate keystrokes on a MAC I would be really grateful if you can tell me how to do this. I need to hit the ENTER and TAB keys on the keyboard. I know I can use AutoIT on windows but am totally lost on how to do this on a MAC. Kind regards, Usman Hussain -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com watir-general%2bunsubscr...@goog legroups.com -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-generalwatir-general+unsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.com
Re: [wtr-general] Difficulty typing into textfield
Well your first problem is win7... just kidding... is your pw field nested inside a frame? On Oct 6, 2010 6:35 PM, blkjk blkjk@gmail.com wrote: I am trying to type text to a Login textfield. And when I use this code to access it: $b.text_field(:name, 'mockPassword').set('abc123')No password actually gets typed into the textfield and used for login. Here is what Firebug caught to identify the textfield: input type=text onfocus=jQuery('#mockPassword').hide();jQuery('#password').show();jQuery('#password').focus(); value=password name=mockPassword id=mockPassword style=width: 150px; color: rgb(204, 204, 204); class=input Any thoughts on how to make the code type the password into that field? And yes, I wish to make it work on both IE8 FF3.5 in Win7. Thanks for any help on this. -- 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+unsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.com
Re: [wtr-general] Difficulty typing into textfield
Could also try .flash to ensure you are calling the right element from orb. Css has given me some challenges in the past.. also try emwith (;index, #).set On Oct 6, 2010 6:35 PM, blkjk blkjk@gmail.com wrote: I am trying to type text to a Login textfield. And when I use this code to access it: $b.text_field(:name, 'mockPassword').set('abc123')No password actually gets typed into the textfield and used for login. Here is what Firebug caught to identify the textfield: input type=text onfocus=jQuery('#mockPassword').hide();jQuery('#password').show();jQuery('#password').focus(); value=password name=mockPassword id=mockPassword style=width: 150px; color: rgb(204, 204, 204); class=input Any thoughts on how to make the code type the password into that field? And yes, I wish to make it work on both IE8 FF3.5 in Win7. Thanks for any help on this. -- 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+unsubscr...@googlegroups.com -- 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+unsubscr...@googlegroups.com
Re: [wtr-general] Re: unable to find element using xpath
What are you so insistent on using x-path? That is probably the worst way to achieve what you are after, several people have agreed with this statement, yet you continue doing it. I just don't understand. Eric On Thu, Aug 19, 2010 at 8:33 AM, goutham mandadi goutham.mand...@gmail.comwrote: ie.cell(:xpath,//a...@href='http://www.snapfish.com/snapfish/youraccount']/http://www.snapfish.com/snapfish/youraccount%27%5D/ ).click sorry thanks, goutham On Thu, Aug 19, 2010 at 9:01 PM, goutham mandadi goutham.mand...@gmail.com wrote: hai ethan thanks a lot its working now i used :href inside area bt when using :xpath i am getting the following error c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:56:in `assert_exists': Unable to locate element, using :xpath, //a[href=' http://www.snapfish.com/snapfish/youraccount'http://www.snapfish.com/snapfish/youraccount%27] (Watir::Exception::UnknownObjectException) from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:288:in `enabled?' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:60:in `assert_enabled' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:233:in `click!' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:219:in `click' this is the element i am trying to click on tda href=http://www.snapfish.com/snapfish/youraccount;Mainhttp://www.snapfish.com/snapfish/youraccount%22%3EMainaccount page/a/td this is the codei have written Can anyone help me on this Thanks, Goutham On Wed, Aug 18, 2010 at 11:21 PM, Ethan notet...@gmail.com wrote: I don't think that you should be using element_by_xpath at all. It does not return a Watir::Element. You should use a normal element accessor with the :xpath specifier: ie.area(:xpath, //whatever/).click On Wed, Aug 18, 2010 at 13:18, goutham mandadi goutham.mand...@gmail.com wrote: Hai charley, I ahev installed from gems C:\ruby\lib\ruby\gems\1.8\gems in this path i am having commonwatir-1.6.5 and firewatir-1.6.5 and watir-1.6.5 folders when i run from this path i am getting th following error one.rb:7: undefined method `click' for nil:NilClass (NoMethodError) require 'watir' ie = Watir::IE.start(http://www.snapfish.com/login;) ie.text_field(:name, emailaddress).set(goutham.mand...@valuelabs.net ) ie.text_field(:name, password).set(sfqatest) ie.button(:name, log in).click ie.element_by_xpath(//ar...@href=' www5.snapfish.com/snapfish/youraccount'http://www5.snapfish.com/snapfish/youraccount%27 ]).click waht might be the reason for this anyone help me Thankyou, Goutham this is code i am using On Tue, Aug 17, 2010 at 10:52 PM, Charley Baker charley.ba...@gmail.com wrote: Shouldn't be in site_ruby, that's gotta be version 1.4.1 with the Watir installer. Uninstall that and make sure you're reinstall the Watir gem, worst case wipe the ruby directory and install the latest Watir gem, should be 1.6.5 and run from the gem directory, not site_ruby. Charley Baker Lead Developer, Watir, http://watir.com On Tue, Aug 17, 2010 at 11:08 AM, goutham mandadi goutham.mand...@gmail.com wrote: Hai, c:/ruby/lib/ruby/site_ruby/1.8/watir.rb this is path from which it is executing here in watir.rb i couldnot find method element_by_xpath how to add this thanks, goutham On Tue, Aug 17, 2010 at 9:08 PM, goutham mandadi goutham.mand...@gmail.com wrote: Hi eric, I did not get you what are orb and .flash i am new to watir Thanks, Goutham On Tue, Aug 17, 2010 at 8:58 PM, Eric Mathiesen mathiese...@gmail.com wrote: You could also use orb and .flash the index. On Aug 17, 2010 8:23 AM, goutham mandadi goutham.mand...@gmail.com wrote: Hai Chuck, Thanks for ur reply we can add id or name for this element but why is element by xpath is not working for me can u help me on this Thankyou, Goutham On Tue, Aug 17, 2010 at 8:48 PM, Chuck van der Linden sqa...@gmail.com wrote: As an alternativ... -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general
Re: [wtr-general] Select an element when :id and :class are not completely known
When I run into this I use :index, # On Aug 18, 2010 2:52 PM, jasbro jas...@gmail.com wrote: In the jQuery world, it isn't uncommon for me to dynamically add classes to an element. Depending on various circumstances, the class of a div might be something like amount or amount required or amount required invalid. In my particular situation, the problem is compounded by the fact that my id is partially made up of a random number, so I can't simply do div(:id,amount). What I do know is the first chunk of the id (e.g. it always starts with amount_). I also know that the class will always contain amount, though it may also contain additional classes. An example: div id=amount_1239783 class=required amount invalid.../div 1. I've tried to do @ff.div(:class,amount) but it only works if they other classes haven't been added 2. I know I can do @ff.div(:class,required amount invalid) but sometimes the classes get added in a different order (and some classes don't get added every time, so maintaining all the possible combinations is ridiculous) 3. I know I can do each through the divs looking to see if the class contains the given value, or the id starts with amount, but that seems excessive Does anyone know if there is a simple way to do this? -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: unable to find element using xpath
You could also use orb and .flash the index. On Aug 17, 2010 8:23 AM, goutham mandadi goutham.mand...@gmail.com wrote: Hai Chuck, Thanks for ur reply we can add id or name for this element but why is element by xpath is not working for me can u help me on this Thankyou, Goutham On Tue, Aug 17, 2010 at 8:48 PM, Chuck van der Linden sqa...@gmail.com wrote: As an alternativ... -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Unable to see error message in ruby interpreter
My first piece of advice would be not to use x-path, but any of the other items to identify ( ID, Name, URL, Etc...) Cheers, Eric On Mon, Aug 16, 2010 at 10:59 AM, Charley Baker charley.ba...@gmail.comwrote: Not sure on that one, check the unittests for watir. I've created and built out a test base of over 10k tests, not using xpath. Others are more qualified to answer. Charley Baker Lead Developer, Watir, http://watir.com On Mon, Aug 16, 2010 at 11:31 AM, goutham mandadi goutham.mand...@gmail.com wrote: Hi Charley, Thanks alot it is working fine now and one more issue is while using xpath i am getting the following error one.rb:6: undefined method `element_by_xpath' for #Watir::IE:0x2bbabf0 (NoMethodError) ie.element_by_xpath(//ar...@href='www.snapfish.com/snapfish/youraccount'http://www.snapfish.com/snapfish/youraccount%27]).click this is the element i am trying to find using xpath Thanks, Goutham On Mon, HiAug 16, 2010 at 10:07 PM, Charley Baker charley.ba...@gmail.com wrote: Name the file with no spaces, something like my_ruby_program.rb. Filenames are conventionally snake cased - lower case with underscores. Charley Baker Lead Developer, Watir, http://watir.com On Mon, Aug 16, 2010 at 10:04 AM, goutham mandadi goutham.mand...@gmail.com wrote: Hai Adam, Thanks for your reply i have installed scite and run the script it is giving the following message ruby New Ruby Program.rb ruby: No such file or directory -- New (LoadError) Exit code: 1 the script is in my desktop should we place it in any specific directory to execute Thanks, Goutham On Mon, Aug 16, 2010 at 9:24 PM, Adam Reed reed.a...@gmail.comwrote: Hi Goutham, It sounds like you're double-clicking the script in order to run it which closes the DOS window upon completion. If installed, you can execute the script using the SciTE editor. Right click on the script, select Edit. The output pane can be enabled using F8 if it is not shown. Alternatively, you can open a DOS prompt and browse to the location of the script you would like to run. Execute the script from the command line, and the DOS window will not close. Good luck, Adam On Aug 16, 10:46 am, goutham goutham.mand...@gmail.com wrote: Hi all, I am new to watir ,I am trying to find element using xpath but i could not and one more issue is that i couldnot see the error message what it is returning as ruby interpreter is getting closed how to see the error messages returned during execution Thankyou, Goutham -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] How to click on a span id?
Are you in a frame perhaps? Try using show_frames and show_all_elements, its saved me tons of time. On Aug 12, 2010 8:31 AM, Chan Nguyen atbl1...@gmail.com wrote: I want to go to this page http://norcalmls.rapmlsstg.com/ And then click on Find Properties - BAREIS MLS; however I don't know how :( ? I tried: browser.link( :id, findarealtor ).click But compiler said: Unable to locate element? Any idea? Thanks, -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Having a Devil of a time accessing this button...
Hello All, I'm having a devil of a time executing this javascript button event, I tried using ie.button(:id, generate::0).fire_event('onmousedown'), ie.button(:id, generate::0).fire_event('onclick') and a couple other ways to click this button, all to no avail. Here's the code snippit of the control I'm trying to click Code: tdtable align='' cellspacing='0' border='0' cellpadding='4' summary='Table to hold button.'trtd class='whitebg'input onFocus=root.hover(this, 'win-btn-over') onMouseOver=root.hover(this, 'win-btn-over') onMouseOut=root.hover(this, 'win-btn') onClick='root.handleOnClick(document, this)' class='win-btn' id='generate::0' name='generate::0' value='Add' onBlur=root.hover(this, 'win-btn') type='BUTTON'/td/tr/table/td Many Thanks in Advance, Eric -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Having a Devil of a time accessing this button...
I have audio on my automation test machine, and I have it setup for an audible click when it simulates a mouse click. Watir is driving the mouseclick on the element under test, however Internet Explorer just stays idle on the page and WATIR reports; Loaded suite Started Finished in 0.0 seconds. 0 tests, 0 assertions, 0 failures, 0 errors Tried changing case of the onClick event to no avail... Cheers, Eric On Tue, Jul 27, 2010 at 3:38 PM, Chuck van der Linden sqa...@gmail.comwrote: Try matching the case on the event name with the ones in the source, instead of all lower case e.g. browser.button(:id, generate::0).fire_event('onClick') In terms of 'not working' it helps if we get a bit more detail in terms of things like 'does anything happen? do you get an error? (if so, what IS the error) etc. On Jul 27, 2:09 pm, Eric Mathiesen mathiese...@gmail.com wrote: Hello All, I'm having a devil of a time executing this javascript button event, I tried using ie.button(:id, generate::0).fire_event('onmousedown'), ie.button(:id, generate::0).fire_event('onclick') and a couple other ways to click this button, all to no avail. Here's the code snippit of the control I'm trying to click Code: tdtable align='' cellspacing='0' border='0' cellpadding='4' summary='Table to hold button.'trtd class='whitebg'input onFocus=root.hover(this, 'win-btn-over') onMouseOver=root.hover(this, 'win-btn-over') onMouseOut=root.hover(this, 'win-btn') onClick='root.handleOnClick(document, this)' class='win-btn' id='generate::0' name='generate::0' value='Add' onBlur=root.hover(this, 'win-btn') type='BUTTON'/td/tr/table/td Many Thanks in Advance, Eric -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: link click no updates
you should also do a ie.show_all_objects ie.show_frames If your control is located within a frame (or a nested frame) this can help out dramatically! I've spent hours trying to access a control to find out it's in a frame! On Tue, Jul 20, 2010 at 1:55 PM, Tiffany Fodor tcfo...@comcast.net wrote: Hmm... Is it possible your link is actually a span? ie.span(:id,navigationTree:systemTargetProvisioningTypeCommand).click Have you tried these commands in irb? Do you get any error messages? -Tiffany On Jul 20, 2:50 pm, roland panganiban roland.pangani...@gmail.com wrote: Thank you for the responsed, yes already tried the fire_event command and still the page can't be loaded. Roland On Tue, Jul 20, 2010 at 4:44 PM, Tiffany Fodor tcfo...@comcast.net wrote: Hi! Have you tried firing the javascript event associated with the link? ie.link(:id,navigationTree:systemTargetProvisioningTypeCommand).fire_event('onclick') I'd give this and your link click command a shot in irb to see if it works. Hope this helps! -Tiffany On Jul 20, 1:57 pm, lance roland.pangani...@gmail.com wrote: Hi, newbie to watir and have question regarding on clicking the link but page doesn't updated. During the execution I saw highlighted yellow to the title link but the page did not changed. Saw same problem on the thread but does not really fixed the problem. Below is the command and the source code. Please advise what I am missing.Thanks. Code: Watir::Waiter::wait_until {ie.button(:id,navigationTree:systemTargetProvisioningTypeCommand).exists?} ie.link(:id,navigationTree:systemTargetProvisioningTypeCommand).click Source: div id=navigationTree:n0:n3:n0:n1:branch style=display:block;/ div/td/tr/tabletable id=navigationTree:n0:n3:n0:n2 class=acuTreeNodetrtd background=/smarttap/javax.faces.resource/ images/ice/tree_line_blank.gif.jsf;div class=acuTreeLine/div/ tdtd class=acuTreeNodeContentspan onclick=acu.jsf.tree.setExpandedState('navigationTree:n0:n3:n0:n2','navigationTree:n0:n3:n0:n2:branch');acu.jsf.tree.setNavImage('navigationTree:n0:n3:n0:n2:nav','navigationTree:n0:n3:n0:n2:branch','/ smarttap/javax.faces.resource/images/ice/tree_line_bottom.gif.jsf','/ smarttap/javax.faces.resource/images/ice/ tree_line_bottom.gif.jsf');acu.jsf.tree.setIconImage('navigationTree:n0:n3:n0:n2:icon','navigationTree:n0:n3:n0:n2:branch','/ smarttap/javax.faces.resource/images/ice/tree_document.gif.jsf','/ smarttap/javax.faces.resource/images/ice/ tree_document.gif.jsf');img id=navigationTree:n0:n3:n0:n2:nav src=/smarttap/javax.faces.resource/images/ice/ tree_line_bottom.gif.jsf alt= class=acuTreeIcon /img id=navigationTree:n0:n3:n0:n2:icon src=/smarttap/ javax.faces.resource/images/ice/tree_document.gif.jsf alt= class=acuTreeIcon //spanspan id=navigationTree:n0:n3:n0:n2:content onmousedown=acu.jsf.tree.setSelectedNode('navigationTree:n0:n3:n0:n2','navigationTree:selectedNode'); onkeydown=acu.jsf.tree.setSelectedNode('navigationTree:n0:n3:n0:n2','navigationTree:selectedNode'); class=acuTreeNodeContenta id=navigationTree:systemTargetProvisioningTypeCommand href=# title=Target Provisioning onclick=mojarra.jsfcljs(document.getElementById('leftMenuForm'), {'navigationTree:systemTargetProvisioningTypeCommand':'navigationTree:systemTargetProvisioningTypeCommand'},'');return false class=leftMenuLinkTarget Provisioning/a/span -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com watir-general%2bunsubscr...@googlegroups.comwatir-general%252bunsubscr...@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Gif not spawning child element
Thanks Orde, That did the trick! On Jun 23, 2010 4:10 PM, orde ohil...@gmail.com wrote: The anchor tag has event handlers associated with it (e.g. onClick), so you might need to trigger the event. Check this out: http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Element.html#M000557 Example syntax: browser.link(:id, 'id').fire_event('onclick') Hope it helps. On Jun 23, 1:41 pm, Eric Mathiesen mathiese...@gmail.com wrote: Hello all, On input id... -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Gif not spawning child element
Hello all, On input id='customer.tracking_no::0' value='' name='customer.tracking_no' type='hidden' a onClick='root.handleOnClick(document, this);' id='search_customer.tracking_no::0::0' onMouseUp='root.handleOnMouseUp(document, this);' href='#' onMouseDown='root.handleOnMouseDown(document, this);' name='search_customer.tracking_no::0'img width='16' src='/images/icon_magnfi.gif' height='16' border='0' class='cursorHand' id='default::searchrow::TEMPLATE' alt='Search'/a/nobr/td when I attempt to access the gif by clicking (either image or button) or tabbing to and pressing enter I can audibly hear the click sound on the workstation during the script lines; puts image click... ie.frame(app_FinanceCenter).image(:id, default::searchrow::TEMPLATE).click puts button click... ie.frame(app_FinanceCenter).button(:id, default::searchrow::TEMPLATE).click puts simulate tab to and enter... ie.send_keys({TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{ENTER}) however no child is spawned blocking all the hidden fields from being tested. Has anyone encountered a similar issue? Any help would be greatly appreciated. I have tried accessing this control with id, name, src (xpath) and all to no avail (but I hear the click!) Eric -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] question for ff browser
Have you tried the attach command for the first windows url? Browser.attach(:url, http://yourfirsturl;) On Jun 17, 2010 2:10 PM, Cristina cristina.toro...@gmail.com wrote: I have the following scenario and I am not sure if that can be automated. 1. On a page a have a bunch of links and I have to check if are working properly 2. when i click on one link a new page is opened into a new browser The question is how can I close the second browser and return to the main one to continue checking the other links? Best regards, ~~ Cristina -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Grrr! click_no_wait does not work :-(
Might be a simplistic answer, but have you set focus to the child popup window? On Mon, Apr 12, 2010 at 1:56 PM, Rats crapats...@yahoo.com.au wrote: I've been looking at ways of handling pop ups and it appears the way to go is via click_no_wait. Unfortunately this is not working for me as when I run the click_no_wait command it just flashes the button and does not click it hence no popup window. I'm running: ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] watir (1.6.5) Any ideas? Thanks. -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject. -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com
Re: [wtr-general] How to use the Firewatir in Mac
That's a connection error on your local loopback. Check your network settings. On Tue, Apr 6, 2010 at 8:28 PM, Yuping Zhong littlezhong...@gmail.comwrote: What is more, I run telnet localhost 9997 and get the following: $ telnet localhost 9997 Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host On Wed, Apr 7, 2010 at 11:23 AM, Yuping Zhong littlezhong...@gmail.comwrote: Thank Angrez's reply.But I still get the following issue: irb(main):001:0 require rubygems = true irb(main):002:0 require firewatir = true irb(main):003:0 ff=FireWatir::Firefox.new RuntimeError: Firefox is running without -jssh from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb:125:in `initialize' from (irb):3:in `new' from (irb):3 I do as above in Windows,it is fine.But it is fail in Mac. Bt the way,here is my Mac OS and firefox version: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 Anyone who uses the firewatir in Mac OS 10.6 can give a help? Thanks in advance! On Tue, Apr 6, 2010 at 7:16 PM, Angrez Singh ang...@gmail.com wrote: Please follow the instructions here for using FireWatir: http://wiki.openqa.org/display/WTR/FireWatir#FireWatir-Installation On Tue, Apr 6, 2010 at 3:13 PM, Yuping Zhong littlezhong...@gmail.comwrote: Dear All, I already install the firewatir and jssh-3.6-OSX. But it is fail to use the firefox in Mac.It display the strange error: RuntimeError: Firefox is running without -jssh But I already install the jssh. Here the steps: irb(main):001:0 require rubygems = true irb(main):002:0 require firewatir = true irb(main):003:0 Watir::Browser.default = firefox = firefox irb(main):004:0 ff = Watir::Browser.start(http://www.google.com;) RuntimeError: Firefox is running without -jssh from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb:125:in `initialize' from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb:163:in `new' from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb:163:in `start' from /usr/local/lib/ruby/gems/1.8/gems/commonwatir-1.6.5/lib/watir/browser.rb:71:in `start' Any idea? Thanks! -Zhong -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
Re: [wtr-general] How to use the Firewatir in Mac
Your system administrator should, it's specific to the environment. On Tue, Apr 6, 2010 at 8:35 PM, Yuping Zhong littlezhong...@gmail.comwrote: Can you tell me what is the correct network settings??? On Wed, Apr 7, 2010 at 11:31 AM, Eric Mathiesen mathiese...@gmail.comwrote: That's a connection error on your local loopback. Check your network settings. On Tue, Apr 6, 2010 at 8:28 PM, Yuping Zhong littlezhong...@gmail.comwrote: What is more, I run telnet localhost 9997 and get the following: $ telnet localhost 9997 Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host On Wed, Apr 7, 2010 at 11:23 AM, Yuping Zhong littlezhong...@gmail.comwrote: Thank Angrez's reply.But I still get the following issue: irb(main):001:0 require rubygems = true irb(main):002:0 require firewatir = true irb(main):003:0 ff=FireWatir::Firefox.new RuntimeError: Firefox is running without -jssh from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb:125:in `initialize' from (irb):3:in `new' from (irb):3 I do as above in Windows,it is fine.But it is fail in Mac. Bt the way,here is my Mac OS and firefox version: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 Anyone who uses the firewatir in Mac OS 10.6 can give a help? Thanks in advance! On Tue, Apr 6, 2010 at 7:16 PM, Angrez Singh ang...@gmail.com wrote: Please follow the instructions here for using FireWatir: http://wiki.openqa.org/display/WTR/FireWatir#FireWatir-Installation On Tue, Apr 6, 2010 at 3:13 PM, Yuping Zhong littlezhong...@gmail.com wrote: Dear All, I already install the firewatir and jssh-3.6-OSX. But it is fail to use the firefox in Mac.It display the strange error: RuntimeError: Firefox is running without -jssh But I already install the jssh. Here the steps: irb(main):001:0 require rubygems = true irb(main):002:0 require firewatir = true irb(main):003:0 Watir::Browser.default = firefox = firefox irb(main):004:0 ff = Watir::Browser.start(http://www.google.com;) RuntimeError: Firefox is running without -jssh from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb:125:in `initialize' from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb:163:in `new' from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb:163:in `start' from /usr/local/lib/ruby/gems/1.8/gems/commonwatir-1.6.5/lib/watir/browser.rb:71:in `start' Any idea? Thanks! -Zhong -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using remove me as the subject.
Re: [wtr-general] Re: Basic Authentication using FireWatir on Ubuntu Linux
I use XTE if I'm under x-windows in Linux Land. if you are not familiar with the x test extensions you can read about it here; http://www.google.com/url?sa=tsource=webct=rescd=1ved=0CAoQFjAAurl=http%3A%2F%2Fwww.x.org%2Freleases%2FX11R7.5%2Fdoc%2FXext%2Fxtestlib.pdfei=ivq0S4rPDYL58AbCsdWuAwusg=AFQjCNGryri6kyJls5FuhirfKwvnn4KvJwsig2=Ad-jWmA6Hz6ccZs2RZOMIA ~Eric On Thu, Apr 1, 2010 at 12:54 PM, Ethan notet...@gmail.com wrote: Is the solution that is in Angrez's fork written using AutoIt, or JSSH? If it is the latter, it should be compatible across all operating systems. But I haven't looked at it to see. AutoIt is windows-only, yes. On Thu, Apr 1, 2010 at 13:54, lothar lotharsm...@gmail.com wrote: Thanks for the quick reply Željko. Yes, I checked out that site before I posted to the group, but it seems to contain windows only solutions. Solution 1 requires 'watir' and 'watir/WindowHelper' which in turn require things like 'watir/win32ole' and 'watir/ie'. It doesn't look like there is a firewatir equivalent to 'watir/ WindowHelper' (i.e. 'firewatir/WindowHelper'). Solution 2 is a windows only solution as well (uses autoit, which I *think* is IE only, but could be wrong on this). Unless I missed something, that page doesn't contain any solution that works on firewatir + linux. Any other suggestions? On Apr 1, 4:07 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Mar 31, 2010 at 10:26 PM, lothar lotharsm...@gmail.com wrote: I'm trying to use FireWatir (1.6.5) to access a site using Basic Authentication and I've been unable to find a solution that works on Firefox in Linux. Did you read this? http://wiki.openqa.org/display/WTR/Basic+Authentication Željko -- watir.com - community manager pledgie.com/campaigns/2982 - donate to Watir watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com To unsubscribe, reply using remove me as the subject. -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- 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 http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Watir as a service - any workaround?
have you tried using; $browser = Watir::IE.attach(:url, http://www.google.com;) $browser = Watir::IE.attach(:title, Google) of course thats the *nix command, windows would be irb: ie = Watir::IE.attach(:url, http://www.google.com;) irb: ie = Watir::IE.attach(:title, Google) Let me know, Eric On Wed, Jan 13, 2010 at 1:54 PM, Darcoli darcol...@gmail.com wrote: Note that the iexplore process is created, I can see iexplore processes getting created from the task manager - but I think the link is not made with it... here is part of my code just in case you need... require 'rubygems' def valid_User?(user) ie=Watir::IE.new_process() ie.visible = false ie.speed = :zippy ,,, some code which is never reached... end On Jan 13, 10:32 pm, Darcoli darcol...@gmail.com wrote: Hi I need to use ie.new_process ... but I also need to run ruby as a service (since I am using ruby/rails actually and want to have the webserver as a service). However when I call new_process, and ruby is a service, I get a method not found error. Is there any workaround for this? I need this for a school assignment which needs to do automatic logins, on users behalf, on other websites anyway check it outwww.sendmalta.com (currently I am not running ruby as a service because of the problem I mentioned) Thanks -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general