Re: [Wtr-general] Methods that can be used within a frame?

2006-06-06 Thread Bret Pettichord
On 6/1/06, Tyler Prete [EMAIL PROTECTED] wrote: I can't provide the full html because I don't have access to it, but here is the link I am trying to click from the popup:a href='' target='cust' 8560113/aI imagine part of the problem is related to the onclick _javascript_ event, however I did try

Re: [Wtr-general] Methods that can be used within a frame?

2006-06-01 Thread Tyler Prete
Well I may not even have to deal with it anymore, but how would I change this manually? I do not have control over the HTML in the page, I am only interacting with it via Watir.On 5/31/06, Bret Pettichord [EMAIL PROTECTED] wrote: On 5/31/06, Tyler Prete [EMAIL PROTECTED] wrote: Thank you for the

Re: [Wtr-general] Methods that can be used within a frame?

2006-06-01 Thread Bret Pettichord
On 6/1/06, Tyler Prete [EMAIL PROTECTED] wrote: Well I may not even have to deal with it anymore, but how would I change this manually? I do not have control over the HTML in the page, I am only interacting with it via Watir.By design, Watir is a tool for automating things that you can do

Re: [Wtr-general] Methods that can be used within a frame?

2006-06-01 Thread David Schmidt
Tyler, What I've done in the past is to create a new method, Element#html= which allows you to replace the outerHTML for any element: class Watir::Element def html=(new_html) assert_exists @o.outerHTML = new_html end end Unfortunately, when playing with your top level document

Re: [Wtr-general] Methods that can be used within a frame?

2006-06-01 Thread Tyler Prete
Bret, I think we are having some syntactic problems. I CAN do it manually, by interacting with the page myself. I'll try and explain the situation since I can't actually give an example. I am working with a customer service app that has multiple frames, a search bar on the left, a customer frame

Re: [Wtr-general] Methods that can be used within a frame?

2006-06-01 Thread Tyler Prete
I can't provide the full html because I don't have access to it, but here is the link I am trying to click from the popup:a href='' target='cust' 8560113/aI imagine part of the problem is related to the onclick _javascript_ event, however I did try calling it seperately with no success. On 6/1/06,

[Wtr-general] Methods that can be used within a frame?

2006-05-31 Thread Tyler Prete
I am trying to get a frame on a page to load a specific page, i.e. $ie.frame(:name, 'name').goto(' http://specificsite.com'), but when I do this I get a NoMethodError. I know that show_all_objects works within a frame, as well as most of the interactive methods (text_field, button, click, etc),

Re: [Wtr-general] Methods that can be used within a frame?

2006-05-31 Thread David Schmidt
Tyler, I know this isn't supported right now. I did some investigation and I don't see a navigate function in the frame's OLE object (which is used by the base IE object in goto). I even tried to do a raw substitute in the IE document that contains the frameset, but was unable to find an

Re: [Wtr-general] Methods that can be used within a frame?

2006-05-31 Thread Tyler Prete
Thank you for the help David. It looks like for now I will just have to try and work-around the frame issue... probably won't be too bad. I would post some actual code but I am writing this for use with a company intranet, so it wouldn't do much good anyway. Ciao,--TylerOn 5/31/06, David Schmidt

Re: [Wtr-general] Methods that can be used within a frame?

2006-05-31 Thread Bret Pettichord
On 5/31/06, Tyler Prete [EMAIL PROTECTED] wrote: Thank you for the help David. It looks like for now I will just have to try and work-around the frame issue... probably won't be too bad. I would post some actual code but I am writing this for use with a company intranet, so it wouldn't do much