Re: [Wtr-general] how to access icon's button

2006-11-15 Thread Nie Guoqiang
The codes doesnot work :( More tips: When I execute ie.show_frames(), I get There is 6 frames. And when ie.show_images() is executed, message is 0. Thanks On 11/14/06, Nie Guoqiang [EMAIL PROTECTED] wrote: how can i access this icon-button. img src=../images/nation/btn_logout.gif /

Re: [Wtr-general] how to access icon's button

2006-11-15 Thread Nie Guoqiang
Thanks for your reply! I tyied with ie.show_frames.frame(logo).show_images , but get such msg as undefined method for 0..5:Range BTW: how can i access one specified frame, eg. MENU? ie.frame(MENU) doesnot work. Frame codes is as below: ++ frameset

Re: [Wtr-general] how to access icon's button

2006-11-15 Thread Daniel Browne
1. First of all do: ie.show_frames List will give you a list of frames. 2. Then for each of the frame names returned in step 1 do: ie.frame(the_name_of_a_frame).show_images This will give you lists of images in each frame (you have to replace the_name_of_a_frame with the

[Wtr-general] Problems with the watir email list?

2006-11-15 Thread Alan Ark
Hi folks. I was just wondering if anyone else was getting the Watir list emails correctly? I double checked that I am subscribed to the watir list correctly (http://rubyforge.org/mailman/options/wtr-general), but have not recieved any emails since Friday 11/10th. My back-up plan is to just

Re: [Wtr-general] Problems with the watir email list?

2006-11-15 Thread Cain, Mark
I have had some similar problems in the past. As it turned out the server IP the forum comes from was on the Spam Block list for the entire license class (if I said that right) any way, I had to have the cyber-security guy open up the spam filter to allow the specific IP for the forum. Problem

[Wtr-general] Find parent table index from a specific element within

2006-11-15 Thread John Lolis
Lets say we have the following Table .TR ..TD ..TD ...SPAN text=findme ..TD ...Text Input Field The only element in this entire section that I can identify uniquely is the span. The span happens to be located within a table. That table also contains the text input field (my real goal). So is

Re: [Wtr-general] Find parent table index from a specific element within

2006-11-15 Thread John Lolis
That is actually a really nice simple solution, I have no idea why I didn't think of it. I decided to go with a simple parser. It looks for a certain table, finds a sub stable by index, finds the length then attempts to locate input fields within it. Thank you though, you got my brain thinking

Re: [Wtr-general] Find parent table index from a specific element within

2006-11-15 Thread Charley Baker
You can use an approach similar to the Element#visible idea in the user contributions portion of the wiki site if you really need to. http://wiki.openqa.org/pages/viewpage.action?pageId=1119. The ole object is there and you can query it to get the parent if need be. Otherwise, using Watir 1.5.1.x

Re: [Wtr-general] Find parent table index from a specific element within

2006-11-15 Thread Cain, Mark
If there is one I have never found it. What I have had to do was do a view source on the page. I then do ctrf, enter 'table' (without the '') into the search field, click the Next button and--starting at the top--start counting. The indexing is one-based so when you get to the desired table

Re: [Wtr-general] Find parent table index from a specific element within

2006-11-15 Thread Nathan
So if I understand correctly, you have a table that looks something like the following: [code] table border=1 tr td.../td tdspanfindme/span/td tdinput type=text value=/input/td td.../td /tr /table [/code] And you want to located the text field and enter some value into it?

Re: [Wtr-general] Accessing links from the JavaScript page

2006-11-15 Thread Prashant Bhatia
Nathan.. thats an awesome explanation.. thanks but unfortunately.. I am still stuck I don't have any a href.. since all my links are in the javascript file they are loaded on load() I guess. So everything you click on a page, they will get loaded. I also tried the image method... but there is

Re: [Wtr-general] Find parent table index from a specific elementwithin

2006-11-15 Thread Cain, Mark
It is 1-based ie.textField(:index, 1).set(I did it!) --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nathan Sent: Wednesday, November 15, 2006 12:28 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Find parent table index from a

Re: [Wtr-general] Accessing links from the JavaScript page

2006-11-15 Thread Nathan
Okay, that's no good. Is your web page available online somewhere so that I might give it a go and try to do what you are trying to do? As far as the image method goes, if there isn't an image that represents your menu, then don't use the image, for example if your menu is a link, use link

Re: [Wtr-general] Accessing links from the JavaScript page

2006-11-15 Thread Prashant Bhatia
Even though the links are in javascript file, installing IE developer toolbar showed those links are divs then using divs, able to click on the links - Posted via Jive Forums

Re: [Wtr-general] Accessing links from the JavaScript page

2006-11-15 Thread Prashant Bhatia
Hey Nathan, the result I get from $ie.show_links [br] irb(main):008:0 $ie.show_links index nameid href text/src = nil [br] Somehow, I have made it work now. Even though the source code doesn't show any tags or divs, the links are actually showing as divs. I installed IE

Re: [Wtr-general] detecting versions of browser and os

2006-11-15 Thread Charley Baker
Paul, I'm not currently testing with IE 7 but most likely will be soon, particularly since the upgrade is part of the system updates which means the user base will expand quickly. Can you add a JIRA task for this? While the browser version makes sense in context of the ie object, the os

Re: [Wtr-general] Accessing links from the JavaScript page

2006-11-15 Thread Nathan
Hey pinkoobhatia, thanks for the clarification of the code - what I meant by missing was those two javascript files you included in your include tags. I kind of figured that your links were inside of those javascript files somewhere, but I couldn't see those, so I didn't know exactly where to

Re: [Wtr-general] Find parent table index from a specific element within

2006-11-15 Thread Paul Rogers
myself and some others, I forget who, have discussed this. I had a need to do something like what you also need, and we came up with something like table ie.element_before( :table , :text_field , :id , my_text_field) this would return the :table that is immediately before the :text_field wit

Re: [Wtr-general] Problems with the watir email list?

2006-11-15 Thread Egil Sorensen
Hi, I do see a problem, but of a different sort. I am getting the digest emails correctly. However, in the digests I see posts that I can't find on forums. E.g. in Wtr-general Digest, Vol 36, Issue 20, Message: 2 is a reply from Mark to this thread, but his reply is not to be found here on

Re: [Wtr-general] Find parent table index from a specific element within

2006-11-15 Thread Bret Pettichord
John Lolis wrote: Lets say we have the following Table .TR ..TD ..TD ...SPAN text=findme ..TD ...Text Input Field The only element in this entire section that I can identify uniquely is the span. The span happens to be located within a table. That table also contains the text input

Re: [Wtr-general] detecting versions of browser and os

2006-11-15 Thread Paul Rogers
the reason I had it on the ie object is that it comes fromthe user Agent, so it only applies to the ie object. I do think that some other approach might be more meaningful though, for example Watir::Utils::Environment::OS = vista Im sure there must be a win api call that gets this stuff,

Re: [Wtr-general] how to access icon's button

2006-11-15 Thread Nie Guoqiang
I get only there are 6 frames when executing ie.show_frames. So I think it must be of the watir version that causes my problem. I am very sorry, and thanks to you all 1. First of all do: ie.show_frames List will give you a list of frames. 2. Then for each of the frame names