[wtr-general] Re: Unable to click tab in IE/FF
Hi, Below is my portion of html code. I want to click TestSettings tab. div id=testnavigation style=float:left;left:33px ul id=testtablist li id=test_tab_settings class=test-current a title=testSettings onclick=Pages.go('testdisplaySiteSettings', 1); return false; href=# span id=testspanTestSettings/span /a /li /ul /div I tired all 3 below option.But nothing works. ie.link(:id, 'test_tab_settings').click ie.span(:text, 'TestSettings').click ie.div(:id, 'testnavigation').click Below is the error which i get: unable to locate element, using {:tag_na me=span, :text=TestSettingst} (Watir::Exception::UnknownObjectException) Thanks On Oct 14, 9:07 pm, Chuck van der Linden sqa...@gmail.com wrote: If you can't share the HTML with us, and this is a commercial or OS third party tab control, then the next best thing is to point us at the 'examples' or 'demo' page for the control, and indicate specifically which variety you are using. It might be easier to get your answer by moving this question to StackOverflow since that venue allows for proper formatting of code and HTML samples, embedding graphics, and editing both questions and answers after they are posted. On Oct 14, 7:49 am, Tiffany Fodor tcfo...@comcast.net wrote: Hi! I agree with Zeljko, we can't give an informed answer without example html, but here are some 'stabbing in the dark' suggestions to try. You may be able to click on the div, link or span more simply: ie.link(:text, 'span text').click ie.span(:text, 'span text').click ie.div(:id, 'dividname').click Also, we don't know what your problem is. Do you get an error message or does nothing happen? If nothing happens, you may want find out if there's an associated javascript event you need to fire: ie.link(:text, 'span text').click ie.link(:text, 'span text').fireEvent('my_javascript_event') I hope this helps, but if it doesn't, you'll need to provide us with some more specifics. -Tiffany On Oct 14, 5:36 am, ashitha shetty shettyk...@gmail.com wrote: Hi, I am facing problem on clicking tabs. below is my code: ie.link(:id,idname).span(:text,span text).click or ie.div(:id,dividname).span(:text, Span text).click Any help would be appreciated. Thanks -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Not able to open a chrome browser
On Fri, Oct 14, 2011 at 8:57 PM, Babu suvodasgu...@gmail.com wrote: firefix and ie is opening but not chrome. Everything I know about driving Chrome on Windows is here (Look for Chrome with watir-webdriver): https://github.com/zeljkofilipin/watirbook/blob/master/installation/windows.md Željko -- watir.com - community manager watir.com/book - author watirpodcast.com - host -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Setting return value from elements_by_xpath
On Sat, Oct 15, 2011 at 12:25 AM, Matt matt...@gmail.com wrote: I want to get all of the text boxes on the page, regardless of their name and use set to set their values. Try this (not tested): browser.text_fields.each {|text_field| text_field.set lorem ipsum} Željko -- watir.com - community manager watir.com/book - author watirpodcast.com - host -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Unable to click tab in IE/FF
try this, ie.li(:id = 'test_tab_settings').click On 15 Oct 2011, at 08:19, ash wrote: Hi, Below is my portion of html code. I want to click TestSettings tab. div id=testnavigation style=float:left;left:33px ul id=testtablist li id=test_tab_settings class=test-current a title=testSettings onclick=Pages.go('testdisplaySiteSettings', 1); return false; href=# span id=testspanTestSettings/span /a /li /ul /div I tired all 3 below option.But nothing works. ie.link(:id, 'test_tab_settings').click ie.span(:text, 'TestSettings').click ie.div(:id, 'testnavigation').click Below is the error which i get: unable to locate element, using {:tag_na me=span, :text=TestSettingst} (Watir::Exception::UnknownObjectException) Thanks On Oct 14, 9:07 pm, Chuck van der Linden sqa...@gmail.com wrote: If you can't share the HTML with us, and this is a commercial or OS third party tab control, then the next best thing is to point us at the 'examples' or 'demo' page for the control, and indicate specifically which variety you are using. It might be easier to get your answer by moving this question to StackOverflow since that venue allows for proper formatting of code and HTML samples, embedding graphics, and editing both questions and answers after they are posted. On Oct 14, 7:49 am, Tiffany Fodor tcfo...@comcast.net wrote: Hi! I agree with Zeljko, we can't give an informed answer without example html, but here are some 'stabbing in the dark' suggestions to try. You may be able to click on the div, link or span more simply: ie.link(:text, 'span text').click ie.span(:text, 'span text').click ie.div(:id, 'dividname').click Also, we don't know what your problem is. Do you get an error message or does nothing happen? If nothing happens, you may want find out if there's an associated javascript event you need to fire: ie.link(:text, 'span text').click ie.link(:text, 'span text').fireEvent('my_javascript_event') I hope this helps, but if it doesn't, you'll need to provide us with some more specifics. -Tiffany On Oct 14, 5:36 am, ashitha shetty shettyk...@gmail.com wrote: Hi, I am facing problem on clicking tabs. below is my code: ie.link(:id,idname).span(:text,span text).click or ie.div(:id,dividname).span(:text, Span text).click Any help would be appreciated. Thanks -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com Regards, Rahul Sharma -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Unable to click tab in IE/FF
If inside a frame: ie.frame(:id = frame_name).link(:id = link_name).exists? Otherwise try .link(:id = link_name).fire_event(onclick$ -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com