[wtr-general] Re: new page has no focus
The closest thing I've come across is when a page isn't finished loading and IE or Firefox times out. It doesn't really sound like that's your problem though. You're right, that's not it. It's completely loaded and will just sit there patiently waiting until I click on it with the mouse. Then the automated script action starts again. Have you tried using AutoIt send_keys to send a tab to put the focus on an element? $ie.send_keys({TAB}) It didn't help. Since programming isn't my knack, I wanted to check if there was something that WATIR/Ruby could do to handle it. I can get the developers to put a default start point/focus into the app. It won't be the first time I pester them with my agenda....*THIS* I have a knack for. :o) Thanks Tiffany! Kim On Jul 26, 1:29 pm, KimBrown kimbro...@yahoo.com wrote: There are a couple of spots in my application where nothing happens. I think it's because a page with no defaulted active field (ie., blinking cursor). Can I get watir to activate these pages? I've searched in the archives and found a focus command: $ie.text_field(:id, 'name'').focus() but it doesn't do the trick. Only with me clicking on the webpage, will this command and any others that I try in my script continue to run. Until I click on the page nothing happens. Has anyone run into this? thanks, Kim- Hide quoted text - - Show quoted text - -- 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] new page has no focus
There are a couple of spots in my application where nothing happens. I think it's because a page with no defaulted active field (ie., blinking cursor). Can I get watir to activate these pages? I've searched in the archives and found a focus command: $ie.text_field(:id, 'name'').focus() but it doesn't do the trick. Only with me clicking on the webpage, will this command and any others that I try in my script continue to run. Until I click on the page nothing happens. Has anyone run into this? thanks, Kim -- 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] Re: how do i select from ctrls?
Since you're in beginner mode, you may want to download Webmetrics RIA Script Recorder. You can see the code it creates and can cut and paste it into your scripts. It doesn't work on everything, but will get you started. Kim On May 24, 11:41 am, dave bitdo...@yahoo.com wrote: accessing and clicking onCTRLSthat appear as select_lists how to click on the inner most sub-list... the select_list in this web page is based onctrlswith this xpath -- 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] How to check if toggle link is open or closed
I have a javascript link that toggles a section of additional options open and closed. I can click on it to open close: $ie.link(:text, /More Choices/).click I can find it: irb(main):050:0* puts $ie.links type: id: name: value: disabled: false href: javascript:toggleRows('fields'); inner text: Hide/Show More Choices -- and -- irb(main):050:0* puts $ie.text Hide/Show More Choices But I can't figure out how to do a check on whether it's open or closed. From the user's perspective the text changes between Hide and Show accordingly but don't know where the code indicates which is engaged. I've searched around quite a bit but haven't found anything to help. Suggestions? Here is what I think is the relevant code. Let me know if that's not sufficient. Also, the website is a subscription site but I can give a temporary login if someone emails me for it. input type=hidden NAME=show_fields VALUE= tr td colspan=3 style=padding: 0; table cellspacing=0 summary=Extended Search Form class=fullWidth tr td colspan=3 class=spacer script type=text/javascript !-- if(document.getElementById) { // Write Show/Hide switch document.write('h3 '); // Force formatting of element to display try { if(document.styleSheets) { // Only display switch if browser can handle document.write('a class=bold toggle href=JavaScript:toggleRows(\'fields\'); tabindex=2span id=fieldsOffHide\/spanspan style=display: none;\/\/ spanspan id=fieldsOnShow\/span More Choices\/a'); } else { throw(e); } } catch (e) { document.write('More Choices'); } document.write('\/h3'); toggleRows('fields'); // Turns section display off } //-- /script noscript !-- Else section displayed -- h3More Choices/h3 /noscript /td /tr -- 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
[wtr-general] Re: How to check if toggle link is open or closed
George, you are my new best friend. I can now check whether or not a field in the More Choices is visible or not. Thanks! Kim On Apr 26, 2:46 pm, George george.sand...@gmail.com wrote: browser = Watir::IE.attach(:title, /Menu/) puts browser.link(:text, /Featured./).visible? # true if the menu is expanded, false if hidden -- 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
[wtr-general] Re: How to wait until an element is visible on a page
http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir I've used this: while (not $ie.html.include? my html) code to refresh page.-- won't auto-update puts not there yet ... sleep 5 end You can also use $ie.text.include? there are probably other ones too, but that's all I seem to need. You could also put in a timeout limit as well. Kim On Nov 30, 2:39 pm, QAguy qablogm...@gmail.com wrote: I have this piece of code on a page I am trying to script against. div style= id=encoding_success class=encoding_complete p strongDone!/strong a id=video_url_link href=/video/show/4e9dd3b81c1cc3Go to your videoimg src=/images/pixel.gif?1246941735 class=icon double_arrow_icon alt=Pixel//a /p /div This div always exists, but it not always VISIBLE on the page. I want to create a wait until this element is visible on the page but not sure how to do this? Was thinking something like this but doesn't seem to work: Watir::Waiter::wait_until { @browser.div(:class, 'encoding_complete').visible? == true} but it doesn't work as I think the use of visible here is invalid. Hoping someone help me. Thanks QAguy -- 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
[wtr-general] Re: How to click on a table cell based on the text string that I know. Ex:- Wilmington.
One other way that I figure out how to select a certain cell or button is to use a freeware capture/playback tool called Script Recorder. I'll set it to record and click on what I want and the code will almost always be generated (it doesn't handle java popups). Then I cut it and paste it into what I'm working on. You can find it at http://www.webmetrics.com/products/script_recorder.html. Kim On Apr 7, 1:33 pm, Tiffany Fodor tcfo...@comcast.net wrote: Can you get IE Dev Toolbar or Firebug output for the row or element you're trying to select? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Ruby integration with TestLink
On Oct 8, 2:46 am, Manish Sapariya [EMAIL PROTECTED] wrote: I can describe the solution that we have created in great detail However I am not sure, if I would be able to share the code. Perhaps you would be able to post the code if you changed it to be generic enough to remove any proprietary information? It would still be just as effective as an example. Kim --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---