[wtr-general] problem running watir tests from hudson
Hi, I am using Watir with RSpec to create tests. Recently I decided to move to Hudson to get tests run automatically. I made a few rake tasks and created Hudson jobs to run these tasks. But all my Hudson jobs always fail with two kinds of messages. If I use FF: * Watir::Exception::UnableToStartJSShException in 'deposit before (:all)' * Unable to connect to machine : 127.0.0.1 on port 9997. Make sure that JSSh is properly installed and Firefox is running with '-jssh' option If I use IE: ArgumentError in 'deposit before(:all)' wrong number of arguments (1 for 0) ./tests/deposit_spec.rb:25:in `new' (this happens in the browser = Watir::IE.new call) --- Running 'spec deposit_spec.rb' works fine for FF and IE Running 'rake deposit' works fine for both browsers But running the same 'rake deposit' from Hudson does not work! My initial guess is that there is a conflict between Hudson running on localhost:8080 and JSSH on 127.0.0.1:9997 but I do not know how to verify it. Is there somebody who encountered the same problem? Any advice how to proceed? -- 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
Re: [wtr-general] Re: Links Question
On Wed, Jan 13, 2010 at 11:09 PM, Tiffany Fodor tcfo...@comcast.net wrote: browser.link(:beforeText, 'survivors of the Haiti earthquake.).click I think this is deprecated because it never worked as expected. Željko -- watir.com - community manager watirpodcast.com - host -- 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
Re: [wtr-general] Links Question
On Wed, Jan 13, 2010 at 10:20 PM, xguarder shams...@gmail.com wrote: 2. Is it possible to click on a link that immediately precedes a particular text? Probably, but only if you know xpath: http://wiki.openqa.org/display/WTR/XPath You can click a link that is _after_ some other element, for example: browser.link(:after?, browser.link(:text, two)).click http://wiki.openqa.org/display/WTR/Ways+Available+To+Identify+HTML+Element Željko -- 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] Not able to access Dojo controls
We have certain Dojo controls in our application. It is an Input tag of dojo type. We could not access this text field to set text. When we try to use ie.text_field(:name,'xyz').set('text'), it returns Physical Description not found. Is there a way in Watir to be able to handle such objects?? Thanks, Betsy Joy -- 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: Links Question
Awesome, thanks! I don't really need to do this right now, but this got me wondering. Say you have two links that are exactly the same on the page (perhaps on the header and the other in the footer). How can the use of the array be tweaked so it can return the index number for the nth instance of the same link? On Jan 13, 5:42 pm, Tiffany Fodor tcfo...@comcast.net wrote: Yikes! I missed an ugly typo. Sorry about that - I should proof read better: link_index = link_text.index('My link text').index -should be- link_index = link_text.index('My link text') I'm not sure about the :beforeText problem - were you able to make mywww.Google.comexample work? -Tiffany On Jan 13, 3:31 pm, xguarder shams...@gmail.com wrote: Thanks for the tips. I tried the index method using the array as you suggested. When I ran it, I get an undefined method 'index'.e Also, when using the :beforeText or :afterText for the link, I get unable to locate element, using :beforeText... Any suggestions on if I'm doing something wrong? Thanks, Ken On Jan 13, 5:12 pm, Tiffany Fodor tcfo...@comcast.net wrote: Sorry - I forgot to mention that the array will start at 0, but the link index number in Watir will start at 1. You could create your array with a placeholder for 0, or add one to the index number you get from the array when you want to access the link in Watir. -Tiffany On Jan 13, 3:09 pm, Tiffany Fodor tcfo...@comcast.net wrote: Hi! You could build an array of all the links and then get the index: link_text = Array.new browser.links.each do |link| link_text.push(link.text) end link_index = link_text.index('My link text').index To click on a link that precedes some text, you can use :beforeText. On the current Google page, for example: browser.link(:beforeText, 'survivors of the Haiti earthquake.).click You can also use :afterText, if necessary. Hope this helps! -Tiffany On Jan 13, 2:20 pm, xguarder shams...@gmail.com wrote: I was wondering if someone could inform me on how to do the following: 1. Retrieve link index number of a link. For instance, I know I can find the link using ie.link(:text, LinkText), and I can also find out the index number via irb. However, I want to be able to assign the index number of that particular link to a variable on the fly. 2. Is it possible to click on a link that immediately precedes a particular text? Thanks! -- 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: XPath Support in Frame
Hi Angrez, Do you think this issue can be solved ? -Kunal On Jan 11, 12:33 pm, Wesley Chen cjq@gmail.com wrote: I met with this kind of problem, too. In fact, when I user IE developer toolbar to access the web page with the source code above, the IFRAME won't expand. The IFrame is with src attributes, it points to the other place, which crosses the domain, so we have no access. Thanks. Wesley Chen. For life, the easier, the better. On Mon, Jan 11, 2010 at 2:36 PM, Angrez Singh ang...@gmail.com wrote: Thanks a lot for the HTML source .. it is sufficient. Will look into the issue and resolve it. - Angrez 2010/1/9 Kunal kunal...@gmail.com Well, the HTML doc is quite big! You would not want to dig into that ;) Anyways I tried to remove most of the redundant things and the skeleton HTML does look something like as below html head /head body div Some content here /div iframe src=http://dummy-url; html body div id=test-1 Test test div id=test-2 /div span id=test-span-1 lkdsjlakjds /span span id=Root-Node /span /div /body /html /iframe /body /html If this helps, great. If you need more information, please let me know. -Kunal On Jan 9, 6:48 pm, Angrez Singh ang...@gmail.com wrote: I'll look into this .. above should work .. meanwhile can you send me the HTML you are using? - Angrez On Sat, Jan 9, 2010 at 3:18 PM, Kunal kunal...@gmail.com wrote: No. They don't. See the error which I get, If I try to do something like that. irb(main):025:0 browser.frame( :id, test-339 ).span( :xpath, //span [...@text='Root Node'] ).focus NoMethodError: undefined method `element_by_xpath' for #Watir::Frame: 0x32f24f4 from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ non_control_elements.rb:20:in `locate' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:49:in `assert_exists' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:284:in `enabled?' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:56:in `assert_enabled' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:266:in `focus' from (irb):25 On Jan 8, 3:45 pm, Angrez Singh ang...@gmail.com wrote: Correct as Željko said it should work? On Fri, Jan 8, 2010 at 3:59 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Jan 8, 2010 at 11:15 AM, Kunal Kumar kunal...@gmail.com wrote: $ie.frame(:index, 3).span( :xpath, //d...@id='test']/../span ).click would fail with error. That should work. What error do you get? Take a look: http://wiki.openqa.org/display/WTR/XPath ...you can access frames using the attributes that Watir provides but you can't use *xpath* attribute for accessing frames... Željko -- watir.com - community manager watirpodcast.com - host -- 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 -- 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 -- 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 -- 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
Re: [wtr-general] problem running watir tests from hudson
Is Hudson running on a Windows machine where no one is logged in? If so, that might be causing some issues. Hudson questions have been popping up on this list fairly often recently... Here's a trip report from someone who seems to have had no issues using Watir and Hudson together: http://effectiveqa.blogspot.com/2007/10/using-watir-and-hudson-to-monitor.html Interesting to note that he was using VMware to run the Hudson/Watir machine, which makes me suspect a Windows user was probably logged in to it while tests were running. VMware can be easily fooled into logging in a Windows user and bringing up an interactive desktop, even if it's running on a headless machine. Thanks Bill On Thu, Jan 14, 2010 at 12:55 AM, andreyr andrey.rusets...@gmail.comwrote: Hi, I am using Watir with RSpec to create tests. Recently I decided to move to Hudson to get tests run automatically. I made a few rake tasks and created Hudson jobs to run these tasks. But all my Hudson jobs always fail with two kinds of messages. If I use FF: * Watir::Exception::UnableToStartJSShException in 'deposit before (:all)' * Unable to connect to machine : 127.0.0.1 on port 9997. Make sure that JSSh is properly installed and Firefox is running with '-jssh' option If I use IE: ArgumentError in 'deposit before(:all)' wrong number of arguments (1 for 0) ./tests/deposit_spec.rb:25:in `new' (this happens in the browser = Watir::IE.new call) --- Running 'spec deposit_spec.rb' works fine for FF and IE Running 'rake deposit' works fine for both browsers But running the same 'rake deposit' from Hudson does not work! My initial guess is that there is a conflict between Hudson running on localhost:8080 and JSSH on 127.0.0.1:9997 but I do not know how to verify it. Is there somebody who encountered the same problem? Any advice how to proceed? -- 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 -- 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] Linux Firefox/JSSH issue
Possibly a bit off topic, as it doesn't *technically* relate to how FireWatir itself works, but how Firefox is (not) working. We don't use the JSSH.XPI extension, but instead we compile it with Firefox using the following .mozconfig file: . $topsrcdir/browser/config/mozconfig mk_add_options MOZ_CO_PROJECT=browser mk_add_options moz_objd...@topsrcdir@/firefox-jssh ac_add_options --enable-extensions=jssh,default ac_add_options --enable-application=browser ac_add_options --disable-tests Everything works but certain javascript popups. In the page, the popup script looks like thus: function popUp(URL) { var day = new Date(); var id = day.getTime(); var URL2 = URL; eval(page + id + = window.open(URL2, ' + id + ', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=827,height=662');); } However, the problem here is that when we click on the link, whether by FireWatir's link script, or by manually doing it with the compiled version of Firefox, the window does not come up. Making the link useless. You can click the link all you want, but nothing will ever happen. However, using the distribution's compiled version without JSSH, it works fine. Also, using the compiled version and making it a package (which does not include JSSH for some reason,) it also works fine. Moving along, using the Firefox development versions 3.6RC1 and 3.7a1, using the exact same .mozconfig file, and compiling like we've been doing, it all works perfectly fine, but then another problem arises in that some contents of the page don't get returned through JSSH to FireWatir (for instance, the URL of the current page does not. It will always be blank, meaning we can't use these beta/alpha versions either.) With all that said, I don't know where to go from here. I feel like I'm just missing something - like a compiling option in the 3.5 versions. I just don't know. -- 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: Driving Watir scripts in IE and Firefox at the same time
Hi Question: I am using a testing framework using Watir and I have given a global variable $b. I am running my scripts against FF. But I also want to execute them against IE. I am using the example from: http://wiki.openqa.org/display/WTR/Browser.new But when I execute in IE I get the error $b is undefined. Is there any solution to this problem as I would like to run my scripts in FF and after in IE. Thanks, -- 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
Re: [wtr-general] Re: XPath Support in Frame
I think the xpath is not supported when in a frame. Thanks. Wesley Chen. For life, the easier, the better. On Thu, Jan 14, 2010 at 10:04 PM, Kunal kunal...@gmail.com wrote: Hi Angrez, Do you think this issue can be solved ? -Kunal On Jan 11, 12:33 pm, Wesley Chen cjq@gmail.com wrote: I met with this kind of problem, too. In fact, when I user IE developer toolbar to access the web page with the source code above, the IFRAME won't expand. The IFrame is with src attributes, it points to the other place, which crosses the domain, so we have no access. Thanks. Wesley Chen. For life, the easier, the better. On Mon, Jan 11, 2010 at 2:36 PM, Angrez Singh ang...@gmail.com wrote: Thanks a lot for the HTML source .. it is sufficient. Will look into the issue and resolve it. - Angrez 2010/1/9 Kunal kunal...@gmail.com Well, the HTML doc is quite big! You would not want to dig into that ;) Anyways I tried to remove most of the redundant things and the skeleton HTML does look something like as below html head /head body div Some content here /div iframe src=http://dummy-url; html body div id=test-1 Test test div id=test-2 /div span id=test-span-1 lkdsjlakjds /span span id=Root-Node /span /div /body /html /iframe /body /html If this helps, great. If you need more information, please let me know. -Kunal On Jan 9, 6:48 pm, Angrez Singh ang...@gmail.com wrote: I'll look into this .. above should work .. meanwhile can you send me the HTML you are using? - Angrez On Sat, Jan 9, 2010 at 3:18 PM, Kunal kunal...@gmail.com wrote: No. They don't. See the error which I get, If I try to do something like that. irb(main):025:0 browser.frame( :id, test-339 ).span( :xpath, //span [...@text='Root Node'] ).focus NoMethodError: undefined method `element_by_xpath' for #Watir::Frame: 0x32f24f4 from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ non_control_elements.rb:20:in `locate' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:49:in `assert_exists' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:284:in `enabled?' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:56:in `assert_enabled' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:266:in `focus' from (irb):25 On Jan 8, 3:45 pm, Angrez Singh ang...@gmail.com wrote: Correct as Željko said it should work? On Fri, Jan 8, 2010 at 3:59 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Jan 8, 2010 at 11:15 AM, Kunal Kumar kunal...@gmail.com wrote: $ie.frame(:index, 3).span( :xpath, //d...@id='test']/../span ).click would fail with error. That should work. What error do you get? Take a look: http://wiki.openqa.org/display/WTR/XPath ...you can access frames using the attributes that Watir provides but you can't use *xpath* attribute for accessing frames... Željko -- watir.com - community manager watirpodcast.com - host -- 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 -- 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 -- 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 -- You received this message
[wtr-general] Re: XPath Support in Frame
Yes. That's what it looks right now. Question is - Can this be supported? May be Angrez can throw some light. -Kunal On Jan 15, 6:20 am, Wesley Chen cjq@gmail.com wrote: I think the xpath is not supported when in a frame. Thanks. Wesley Chen. For life, the easier, the better. On Thu, Jan 14, 2010 at 10:04 PM, Kunal kunal...@gmail.com wrote: Hi Angrez, Do you think this issue can be solved ? -Kunal On Jan 11, 12:33 pm, Wesley Chen cjq@gmail.com wrote: I met with this kind of problem, too. In fact, when I user IE developer toolbar to access the web page with the source code above, the IFRAME won't expand. The IFrame is with src attributes, it points to the other place, which crosses the domain, so we have no access. Thanks. Wesley Chen. For life, the easier, the better. On Mon, Jan 11, 2010 at 2:36 PM, Angrez Singh ang...@gmail.com wrote: Thanks a lot for the HTML source .. it is sufficient. Will look into the issue and resolve it. - Angrez 2010/1/9 Kunal kunal...@gmail.com Well, the HTML doc is quite big! You would not want to dig into that ;) Anyways I tried to remove most of the redundant things and the skeleton HTML does look something like as below html head /head body div Some content here /div iframe src=http://dummy-url; html body div id=test-1 Test test div id=test-2 /div span id=test-span-1 lkdsjlakjds /span span id=Root-Node /span /div /body /html /iframe /body /html If this helps, great. If you need more information, please let me know. -Kunal On Jan 9, 6:48 pm, Angrez Singh ang...@gmail.com wrote: I'll look into this .. above should work .. meanwhile can you send me the HTML you are using? - Angrez On Sat, Jan 9, 2010 at 3:18 PM, Kunal kunal...@gmail.com wrote: No. They don't. See the error which I get, If I try to do something like that. irb(main):025:0 browser.frame( :id, test-339 ).span( :xpath, //span [...@text='Root Node'] ).focus NoMethodError: undefined method `element_by_xpath' for #Watir::Frame: 0x32f24f4 from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ non_control_elements.rb:20:in `locate' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:49:in `assert_exists' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:284:in `enabled?' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:56:in `assert_enabled' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:266:in `focus' from (irb):25 On Jan 8, 3:45 pm, Angrez Singh ang...@gmail.com wrote: Correct as Željko said it should work? On Fri, Jan 8, 2010 at 3:59 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Jan 8, 2010 at 11:15 AM, Kunal Kumar kunal...@gmail.com wrote: $ie.frame(:index, 3).span( :xpath, //d...@id='test']/../span ).click would fail with error. That should work. What error do you get? Take a look: http://wiki.openqa.org/display/WTR/XPath ...you can access frames using the attributes that Watir provides but you can't use *xpath* attribute for accessing frames... Željko -- watir.com - community manager watirpodcast.com - host -- 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 -- 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 -- 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
Re: [wtr-general] Re: XPath Support in Frame
Hi Kunal, I didn't get enough time to look into the issue. I'll surely get something done this week end. - Angrez On Fri, Jan 15, 2010 at 10:22 AM, Kunal kunal...@gmail.com wrote: Yes. That's what it looks right now. Question is - Can this be supported? May be Angrez can throw some light. -Kunal On Jan 15, 6:20 am, Wesley Chen cjq@gmail.com wrote: I think the xpath is not supported when in a frame. Thanks. Wesley Chen. For life, the easier, the better. On Thu, Jan 14, 2010 at 10:04 PM, Kunal kunal...@gmail.com wrote: Hi Angrez, Do you think this issue can be solved ? -Kunal On Jan 11, 12:33 pm, Wesley Chen cjq@gmail.com wrote: I met with this kind of problem, too. In fact, when I user IE developer toolbar to access the web page with the source code above, the IFRAME won't expand. The IFrame is with src attributes, it points to the other place, which crosses the domain, so we have no access. Thanks. Wesley Chen. For life, the easier, the better. On Mon, Jan 11, 2010 at 2:36 PM, Angrez Singh ang...@gmail.com wrote: Thanks a lot for the HTML source .. it is sufficient. Will look into the issue and resolve it. - Angrez 2010/1/9 Kunal kunal...@gmail.com Well, the HTML doc is quite big! You would not want to dig into that ;) Anyways I tried to remove most of the redundant things and the skeleton HTML does look something like as below html head /head body div Some content here /div iframe src=http://dummy-url; html body div id=test-1 Test test div id=test-2 /div span id=test-span-1 lkdsjlakjds /span span id=Root-Node /span /div /body /html /iframe /body /html If this helps, great. If you need more information, please let me know. -Kunal On Jan 9, 6:48 pm, Angrez Singh ang...@gmail.com wrote: I'll look into this .. above should work .. meanwhile can you send me the HTML you are using? - Angrez On Sat, Jan 9, 2010 at 3:18 PM, Kunal kunal...@gmail.com wrote: No. They don't. See the error which I get, If I try to do something like that. irb(main):025:0 browser.frame( :id, test-339 ).span( :xpath, //span [...@text='Root Node'] ).focus NoMethodError: undefined method `element_by_xpath' for #Watir::Frame: 0x32f24f4 from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ non_control_elements.rb:20:in `locate' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:49:in `assert_exists' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:284:in `enabled?' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:56:in `assert_enabled' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:266:in `focus' from (irb):25 On Jan 8, 3:45 pm, Angrez Singh ang...@gmail.com wrote: Correct as Željko said it should work? On Fri, Jan 8, 2010 at 3:59 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Jan 8, 2010 at 11:15 AM, Kunal Kumar kunal...@gmail.com wrote: $ie.frame(:index, 3).span( :xpath, //d...@id='test']/../span ).click would fail with error. That should work. What error do you get? Take a look: http://wiki.openqa.org/display/WTR/XPath ...you can access frames using the attributes that Watir provides but you can't use *xpath* attribute for accessing frames... Željko -- watir.com - community manager watirpodcast.com - host -- 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 -- 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