[wtr-general] Re: Cannot access element through iframe?

2010-08-19 Thread Chan Nguyen
Hi Charley, Thanks a lot for your reply and suggestion; however, I'm alone here. I'm still learning the application as an intern programmer, so I don't really have chance to talk to our developers. And even if they do, they won't remove those "frames" just because of testing purposes. Indeed, we h

Re: [wtr-general] Re: Cannot access element through iframe?

2010-08-19 Thread Charley Baker
Check on the site, it sounds like you're running across domains for the frames, talk to your developers or take a look at the source and see if that true. There's a lot of help here and at watir.com, check out frames and xss issues. Charley Baker Lead Developer, Watir, http://watir.com On Thu,

[wtr-general] Re: Cannot access element through iframe?

2010-08-19 Thread Chan Nguyen
Hi Basim, Great thanks for your answer, but it still does not work. The same error occurred: C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/frame.rb:52:in `method_missing': document (WIN32OLERuntimeError) I also tried Telerik WebUI Test Studio, it does not recognize frame either. Our web

Re: [wtr-general] Re: Cannot access element through iframe?

2010-08-19 Thread Basim Baassiri
Have you tried reading the documentation for select_list Can you try something like this? browser.frame( :id, "Main_Body" ).select_list( :name, "Property_Type_ComboBox" ).select( "Mobile/Floating Home" ) or browser.frame( :id, "Main_Body" ).select_list( :name, "Property_Type_ComboBox" ).select_val

[wtr-general] Re: Cannot access element through iframe?

2010-08-19 Thread Chan Nguyen
I'm so frustrated with iframe using Watir. I really don't want to give up on 'watir' but it seems too difficult to get the job done :( ! I really need an advice, please help. What's other alternative for Web Testing Automation? On Aug 19, 9:38 am, Chan Nguyen wrote: > Hi everyone, > I run into an

[wtr-general] Cannot access element through iframe?

2010-08-19 Thread Chan Nguyen
Hi everyone, I run into an issue when accessing a ComboBox through frame, I got this error message : C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/frame.rb:52:in `method_m issing': document (WIN32OLERuntimeError) OLE error code:80070005 in Access is denied. HRESULT error c

Re: [wtr-general] Re: unable to find element using xpath

2010-08-19 Thread Ethan
I don't think there's anything wrong with xpath. However, you are using #cell, which looks for a table cell, but specifying tag which is a link. You won't find an element that is both a table cell and a link. ie.link(:xpath, '//a...@href=whatever]') On Thu, Aug 19, 2010 at 12:10, Eric Mathiesen

Re: [wtr-general] Re: unable to find element using xpath

2010-08-19 Thread Eric Mathiesen
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 wrote: > ie.cell(:xpath,"//a...@hre

[wtr-general] Re: Select an element when :id and :class are not completely known

2010-08-19 Thread Chuck van der Linden
There you go. that's what I was about to suggest. as long as you're able to create a regex that won't match more than one classname, you are in business. Another alternative (if you have control over what's being created) might be to also have the jQuery code assign a 'name' to the element, hope

Re: [wtr-general] Re: unable to find element using xpath

2010-08-19 Thread goutham mandadi
ie.cell(:xpath,"//a...@href='http://www.snapfish.com/snapfish/youraccount']/ ").click sorry thanks, goutham On Thu, Aug 19, 2010 at 9:01 PM, goutham mandadi 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:/rub

Re: [wtr-general] Re: unable to find element using xpath

2010-08-19 Thread goutham mandadi
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/youracco

Re: [wtr-general] which version of ruby to be installed

2010-08-19 Thread Basim Baassiri
from the Installation Page http://watir.com/installation/ "We recommend using Ruby 1.8.6-26 with Watir 1.6." http://rubyforge.org/frs/download.php/29263/ruby186-26.exe On Thu, Aug 19, 2010 at 11:04 AM, arihan sinha wrote: > Dear All, > > Which version of ruby I need to be installed if I am usin

[wtr-general] which version of ruby to be installed

2010-08-19 Thread arihan sinha
Dear All, Which version of ruby I need to be installed if I am using window 7 OS.. please refer the exact one http://www.ruby-lang.org/en/downloads/ http://rubyforge.org/frs/?group_id=167 Cheers A -- Before posting, please read http://watir.com/support. In short: search before you ask, be ni