Re: [Wtr-general] Very basic Watir/Ruby question?
Howdy, I am not sure this addresses your question but we deal with check boxes in two ways. We use cells and indices when the checkbox is in a table cell. @ie.cell(:id, 'something').checkbox(:index,1).set @ie.checkBox(:id, something).click Good luck, Carl Carl L. Shaulis Convergys - Senior Analyst 512-634-0607 mi [EMAIL PROTECTED] To Sent by: wtr-general@rubyforge.org wtr-general-bounc cc [EMAIL PROTECTED] Subject [Wtr-general] Very basic Watir/Ruby 07/26/2006 08:36 question? PM Please respond to [EMAIL PROTECTED] orge.org Hi all, I'm very new to Watir/Ruby stuff:-( I'm using Simple module to open up a browser and load a url using new_browser_at(url) and am also using fill_text_field() and click_button_with_value() to fill all the text fields and button click on the page. Now there is a checkbox on the page that i need to click also and i don't see any functions that will do under Simple module?? How would I go by to click on the checkbox Thanks in advance!! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Very basic Watir/Ruby question?
This is what watir simple can do: http://wtr.rubyforge.org/rdoc/classes/Watir/Simple.htmlI did not find anything about checkboxes. I guess it is time for you to start using the real watir. You will see it is not that difficult. Just follow user guide: http://www.openqa.org/watir/watir_user_guide.html ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Watir, file_field, dojo and VMware
I have used VMware with Watir successfully. I've got a WinXP Pro SP2 VMware session that has IE7 Beta 2. On it, I have Ruby 1.8.4 and Watir 1.4.1.I just ran the UnitTest filefield_test.rb and it executed without error. I can't say I really understand what the problem described below is, so I can't offer any suggestions right now.Paul.On 26/07/06, Bret Pettichord [EMAIL PROTECTED] wrote: What is a ruby attach dialog?I'd be surprised if vmWare itself is the source of your problem. I'm pretty sure we have people here who have used it with Watir successfully. True?Bret On 6/26/06, John Castellucci [EMAIL PROTECTED] wrote: Howdy all – I have some Watir tests that invoke the file_field field object, and I've noticed some slightly odd behavior when running on native WinXP vs. virtual WinXP through VMware. If a regular page has a file_field control, everything works peachy. But, the application also has pages where you can click a button and it opens a dojo (a _javascript_ toolkit) modal faux popup with the file_field (the underlying page is disabled), and this is where I see the weird behavior. When invoking field_field.set(), only the ruby attach dialog opens – the standard IE File Upload dialog *does not* open. It's not until the attach dialog closes that the IE File Upload finally appears, and at this point, the Watir script hangs. (I suspect because there was no File dialog for ruby to attach to). If I were to take a stab in the dark, I would say it might have something to do with how VMware manages threads – dojo, ruby and IE are all fighting over processes, and IE is the loser… Anyone ever run into behavior like this before? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] app map and switch statement
Hi, I am using Bret's AppMap concept def goto_territory_list ObjectMap.new.instance_eval do sales_admin_link.click territories_link.click end end but I am having a hell of a trouble trying to fit it into the belowswitch statement. Could anyone help? def enter_employees() File.open('C:\auto_tests\test_data\employee_data.csv','r') {|f| #use block so file is automatically closed f.each_line { |line| next if /^;/ =~ line #check for ';' at start of line i = 0 line.chomp.split(',').each{|x| i += 1 next if x.nil? or x == null #skip nil or null values case i when 1 #country employee_country_id.select(x) when 2 #depot employee_depot_id.select(x) when 3 #first_name employee_first_name.set(x) end puts #{x} has been input } click_submitclick_new_employee_link } } endend cheers aidy ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] clicking on a link using sub-text of the link text?
Hi all, I'm not sure whether it's even possible to do that BUT let me try asking here is a one of the link in my web page that i need to click.. content starts here... /..click below: {blank line} http://{static-text}/test.php?activate=blah, blah, blah/ I tried ie.link{:url, /static-text/).click also tried ie.link(:aftertext, 'below:').click BUT i'm not a having a luck??? Thanks in advance!!! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] clicking on a link using sub-text of the link text?
Try changing '{' to '(' ie.link(:url,/static-text/).click -Ravi -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of mi Sent: Thursday, July 27, 2006 12:22 PM To: wtr-general@rubyforge.org Subject: [Wtr-general] clicking on a link using sub-text of the link text? Hi all, I'm not sure whether it's even possible to do that BUT let me try asking here is a one of the link in my web page that i need to click.. content starts here... /..click below: {blank line} http://{static-text}/test.php?activate=blah, blah, blah/ I tried ie.link{:url, /static-text/).click also tried ie.link(:aftertext, 'below:').click BUT i'm not a having a luck??? Thanks in advance!!! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Watir, file_field, dojo and VMware
Bret asks: What is a ruby attach dialog? I was referring to the DOS/ruby.exe window that opens and scrolls through all the window captions until it finds the File Open dialog. I'd be surprised if vmWare itself is the source of your problem. I'm pretty sure we have people here who have used it with Watir successfully. True? I had my sysadmin upgrade the VMWare server to the latest version, and updated my client as well, and this solved the problem. VMWare looks to be a useful tool where I work for allowing the developers to run acceptance tests without spending the time to configure their dev systems and keep the tests up-to-date locally. Original message: If a regular page has a file_field control, everything works peachy. But, the application also has pages where you can click a button and it opens a dojo (a JavaScript toolkit) modal faux popup with the file_field (the underlying page is disabled), and this is where I see the weird behavior. When invoking field_field.set(), only the ruby attach dialog opens the standard IE File Upload dialog *does not* open. It's not until the attach dialog closes that the IE File Upload finally appears, and at this point, the Watir script hangs. (I suspect because there was no File dialog for ruby to attach to) ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] FreeTextBox Watir
On 7/25/06, Alan Ark [EMAIL PROTECTED] wrote: Well using ie.show_active has given me very interesting results. What I had expected to be my text_field to be active was something totally different. = HTML Document name= id=ctl0_MainBody_PolicyHtmlEditor_designEditor src=about:blank innerText=\n irb(main):305:0 Clicking on the various dropdown that let me choose the attributes of the font displays what I expected - a series of select-one's Clicking on any of the font styling/formatting buttons (like Bold, Strikethru, centered, left-justified) also returns the HTML document type. I'm going to play around with this a little more. It is very interesting though. So it is. You realize you have a frame or iframe there, right? That's the HTML Document bit. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Keyword Framework UI
On 7/26/06, Adrian Lewis [EMAIL PROTECTED] wrote: I can write a version of the CSDDT for Watir http://tinyurl.com/z6zjo But I want at least 3 people asking for this and the first iteration will be out in around 2 weeks. There was great interest in Watir automation frameworks among the attendees at the Scripting Web Tests (with Watir and Ruby) class at Agile2006. There is I think no good example of a data-driven test framework to point people to, so this would be in general a fine idea. I would like to suggest a) make it open-source. Otherwise it's too hard to answer questions about it. b) write in in Ruby, because that's what the people using the framework will be using. c) please make an effort to answer ongoing questions about your work, either on this list or on a list devoted to the framework itself. Thanks. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] clicking on a link using sub-text of the link text?
Yes, i do see the link when i do a ie.show_links() but i'm afraid that why it might not work... show_links shows the link as similar to the below... */http://{static-text}/blah...blahhttp://{static-text}/blah..blah.../* So the same text is showing twice in the show_links printout, that might be why it's not working Xavier Noria wrote: On Jul 27, 2006, at 7:21 PM, mi wrote: here is a one of the link in my web page that i need to click.. content starts here... /..click below: {blank line} http://{static-text}/test.php?activate=blah, blah, blah/ I tried ie.link{:url, /static-text/).click also tried ie.link(:aftertext, 'below:').click BUT i'm not a having a luck??? At least the first one should work (with the typo corrected, that is). Does ie.show_links output that one? -- fxn ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general