Re: [wtr-general] using verify method
Thanks a lot mahesh,Usman and Keith for ur replies i will try this On Tue, Sep 14, 2010 at 3:11 PM, Keith Hughes khughe...@gmail.com wrote: Kartheek This should work, require 'watir/testcase' require 'watir-webdriver' class Test_google_ff Watir::TestCase def setup @Browser = Watir::Browser.new(:firefox) @Browser.goto http://www.google.com; end def test_google1 verify(@Browser.button(:name,blah).exist?,Dude where's my button) end def teardown @Browser.close end end rgds Keith On Tue, Sep 14, 2010 at 7:18 AM, chunchu kartheek chunchukarth...@gmail.com wrote: Hi , Can anyone help me how to use verify method . I want to verify whether a link exists or not in a page. Want to display error message if does not exist. Thanks in advance Regards, Kartheek -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] watir dynamic value
Hi nix, Try this ie.link(:xpath,//a...@href='http://xyz/foo/abcd/detail?target=details ']/).click Hope this works not sure about it Regards, Goutham On Sun, Sep 5, 2010 at 11:26 PM, nix amritd...@gmail.com wrote: Iam unable to click on a dynamically generated value. Below is the source code for the same.I've read all the comments but not finding the solution of how to click on a dynamically generated value. A class=new href=http://xyz/foo/abcd/detail?target=details; jQuery123=8abcd/A Appreciate if anyone can suggest me the code for thi. thanks nix -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] using regular expression
Hai Pallavi , Thanks alot for your reply it is working ,suppose if i am not having numbers how can i do that example :checkbox_one checkbox_two checkbox_three are the checkbox names for 3 different users the text at the end is changing so my script is not working. i need to set the checkbox that starts with checkbox_ for all the users. selecting a single checkbox is enough. Can you please help me on this. Thankyou, Kartheek On Sun, Aug 22, 2010 at 7:09 PM, Pallavi Sharma write2pall...@gmail.comwrote: Hi If you wish to select multiple check boxes, may be you would require a 'for' loop and some code like this: for i in (1..5) str= ie.frame(:id,'frame').checkbox(:name, checkbox_ + i.to_s obj=eval str obj.set end Regards Pallavi. On Sun, Aug 22, 2010 at 11:49 AM, chunchu kartheek chunchukarth...@gmail.com wrote: Hai, i am having multiple check boxes in a frame i need to select multiples checkboxe i am having checkbox names as checkbox_1 checkbox_2 checkbox_3 and so. can i use regular expression here for names of checkboxe if possible how to do that ie.frame(:id,frame).checkbox(:name,checkbox_1 ).set Can anyone please help me on this Thankyou, Kartheek -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: unable to find element using xpath
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 goutham.mand...@gmail.comwrote: 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/youraccount'] (Watir::Exception::UnknownObjectException) from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:288:in `enabled?' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:60:in `assert_enabled' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:233:in `click!' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:219:in `click' this is the element i am trying to click on tda href=http://www.snapfish.com/snapfish/youraccount;Mainhttp://www.snapfish.com/snapfish/youraccount%22%3EMainaccount page/a/td this is the codei have written Can anyone help me on this Thanks, Goutham On Wed, Aug 18, 2010 at 11:21 PM, Ethan notet...@gmail.com wrote: I don't think that you should be using element_by_xpath at all. It does not return a Watir::Element. You should use a normal element accessor with the :xpath specifier: ie.area(:xpath, //whatever/).click On Wed, Aug 18, 2010 at 13:18, goutham mandadi goutham.mand...@gmail.com wrote: Hai charley, I ahev installed from gems C:\ruby\lib\ruby\gems\1.8\gems in this path i am having commonwatir-1.6.5 and firewatir-1.6.5 and watir-1.6.5 folders when i run from this path i am getting th following error one.rb:7: undefined method `click' for nil:NilClass (NoMethodError) require 'watir' ie = Watir::IE.start(http://www.snapfish.com/login;) ie.text_field(:name, emailaddress).set(goutham.mand...@valuelabs.net ) ie.text_field(:name, password).set(sfqatest) ie.button(:name, log in).click ie.element_by_xpath(//ar...@href=' www5.snapfish.com/snapfish/youraccount']).click waht might be the reason for this anyone help me Thankyou, Goutham this is code i am using On Tue, Aug 17, 2010 at 10:52 PM, Charley Baker charley.ba...@gmail.com wrote: Shouldn't be in site_ruby, that's gotta be version 1.4.1 with the Watir installer. Uninstall that and make sure you're reinstall the Watir gem, worst case wipe the ruby directory and install the latest Watir gem, should be 1.6.5 and run from the gem directory, not site_ruby. Charley Baker Lead Developer, Watir, http://watir.com On Tue, Aug 17, 2010 at 11:08 AM, goutham mandadi goutham.mand...@gmail.com wrote: Hai, c:/ruby/lib/ruby/site_ruby/1.8/watir.rb this is path from which it is executing here in watir.rb i couldnot find method element_by_xpath how to add this thanks, goutham On Tue, Aug 17, 2010 at 9:08 PM, goutham mandadi goutham.mand...@gmail.com wrote: Hi eric, I did not get you what are orb and .flash i am new to watir Thanks, Goutham On Tue, Aug 17, 2010 at 8:58 PM, Eric Mathiesen mathiese...@gmail.com wrote: You could also use orb and .flash the index. On Aug 17, 2010 8:23 AM, goutham mandadi goutham.mand...@gmail.com wrote: Hai Chuck, Thanks for ur reply we can add id or name for this element but why is element by xpath is not working for me can u help me on this Thankyou, Goutham On Tue, Aug 17, 2010 at 8:48 PM, Chuck van der Linden sqa...@gmail.com wrote: As an alternativ... -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr
[wtr-general] undefined method `element_by_xpath' for #Watir::IE:0x2bbabf0 (NoMethodError)
Hai, can any one please help me on how to resolve this Thanks, Mandadi -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: unable to find element using xpath
hai chandu, I am using 1.6.5 version of watir thanks, goutham On Tue, Aug 17, 2010 at 6:00 PM, chandu.tennety chandu.tenn...@gmail.comwrote: Goutham, Can you tell us which version of Watir you are using? What is the output when you type gem which watir on the command line? Chandu On Aug 17, 12:57 am, goutham mandadi goutham.mand...@gmail.com wrote: Hai Angrez, can u please help me on this i have seen ur post regarding this but i am unable to understand Thanks, Goutham On Mon, Aug 16, 2010 at 10:02 PM, goutham mandadi goutham.mand...@gmail.com wrote: Hi, I am getting the following error message ,i am using IE8 browser one.rb:6: undefined method `element_by_xpath' for #Watir::IE:0x2bbabf0 (NoMethodError) can anyone help me out Thanks in advance, Goutham On Mon, Aug 16, 2010 at 4:23 PM, goutham mandadi goutham.mand...@gmail.com wrote: Hai Angrez, I have seen the example and tried to acces the element but when it comes to that step ruby interpreter is closing. How can i know whether xpath is working for me or not i have ruby along with rexml and i could not see the error message in ruby interpreter as it is closing. Please help me out waiting for your suggestions Thanks, Goutham On Mon, Aug 16, 2010 at 2:07 PM, Angrez Singh ang...@gmail.com wrote: Hi Goutham, Please check the unit test cases for Watir you'll find example on how to access map/area element using XPath. It should be there in [ruby installation directory]\gems\1.8\firewatir-1.6.5\unittests. Thanks, Angrez On Mon, Aug 16, 2010 at 9:09 AM, goutham mandadi goutham.mand...@gmail.com wrote: hai basim, below is the code map name=nav area href=http://www.snapfish.com/snapfish/selectalbumreprints/; title= Order prints coords=9,53,113,72 area href=javascript:showShare() title= Share coords=131,52,187,71 /map how can we identify these elements by using xpath On Mon, Aug 16, 2010 at 12:20 AM, Basim Baassiri ba...@baassiri.ca wrote: Hi Goutham You'll need to post some code and some html to illustrate better your problem On Sun, Aug 15, 2010 at 11:22 AM, goutham goutham.mand...@gmail.comwrote: hai all, i am using element_by_xpath to find an element in watir but browser is closing when i come to xpath step. does we need to install anything to find element using xpath . waiting for ur suggestions Thankyou, Goutham -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com watir-general%2bunsubscr...@googlegroups.comwatir-general%252bunsubscr...@googlegroups.com -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com watir-general%2bunsubscr...@googlegroups.comwatir-general%252bunsubscr...@googlegroups.com -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com watir-general%2bunsubscr...@googlegroups.comwatir-general%252bunsubscr...@googlegroups.com -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com watir-general%2bunsubscr...@googlegroups.comwatir-general%252bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com
Re: [wtr-general] Re: unable to find element using xpath
Hai Chuck, Thanks for ur reply we can add id or name for this element but why is element by xpath is not working for me can u help me on this Thankyou, Goutham On Tue, Aug 17, 2010 at 8:48 PM, Chuck van der Linden sqa...@gmail.comwrote: As an alternative, could you perhaps persuade your developers to add an attribute to the areas that would make it easier for you to identify them (such as and ID or Name?) This also makes me wonder on the dev side, why we don't support 'title' as a means to identify area's ? is there some technical challenge that prevents that? On Aug 15, 8:39 pm, goutham mandadi goutham.mand...@gmail.com wrote: hai basim, below is the code map name=nav area href=http://www.snapfish.com/snapfish/selectalbumreprints/ view-source:http://www.snapfish.com/snapfish/selectalbumreprints/ title= Order prints coords=9,53,113,72 area href=javascript:showShare() title= Share coords=131,52,187,71 /map how can we identify these elements by using xpath On Mon, Aug 16, 2010 at 12:20 AM, Basim Baassiri ba...@baassiri.ca wrote: Hi Goutham You'll need to post some code and some html to illustrate better your problem On Sun, Aug 15, 2010 at 11:22 AM, goutham goutham.mand...@gmail.com wrote: hai all, i am using element_by_xpath to find an element in watir but browser is closing when i come to xpath step. does we need to install anything to find element using xpath . waiting for ur suggestions Thankyou, Goutham -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com watir-general%2bunsubscr...@goog legroups.com -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com watir-general%2bunsubscr...@goog legroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: undefined method `element_by_xpath' for #Watir::IE:0x2bbabf0 (NoMethodError)
Hi Chuck, yeah you are right when logging in to application it is displayed as https and then at home page it is normal http. is their any specific url i need to give in how can u please give me an example Thanks, Goutham On Tue, Aug 17, 2010 at 8:39 PM, Chuck van der Linden sqa...@gmail.comwrote: The most likely explanation when you see 'undefined method' (and you haven't mispelled the method or something like that) is that the browser object is no longer pointing at an instance of a web browser. That can happen in IE when the security context of the site changes (e.g. the browser starts up in 'internet' but you are working with a 'trusted site'. it's almost like IE starts a fresh browser instance and discards the old one, on the fly. Try using something like browser = Watir::IE.attach(:how, what)(how usually being either title or url) to ensure you are pointing at an instance a browser session, immediately before the step that is failing. On Aug 16, 10:07 pm, goutham mandadi goutham.mandad...@gmail.com wrote: Hai, can any one please help me on how to resolve this Thanks, Mandadi -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: unable to find element using xpath
Hi eric, I did not get you what are orb and .flash i am new to watir Thanks, Goutham On Tue, Aug 17, 2010 at 8:58 PM, Eric Mathiesen mathiese...@gmail.comwrote: You could also use orb and .flash the index. On Aug 17, 2010 8:23 AM, goutham mandadi goutham.mand...@gmail.com wrote: Hai Chuck, Thanks for ur reply we can add id or name for this element but why is element by xpath is not working for me can u help me on this Thankyou, Goutham On Tue, Aug 17, 2010 at 8:48 PM, Chuck van der Linden sqa...@gmail.com wrote: As an alternativ... -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: unable to find element using xpath
Hai, c:/ruby/lib/ruby/site_ruby/1.8/watir.rb this is path from which it is executing here in watir.rb i couldnot find method element_by_xpath how to add this thanks, goutham On Tue, Aug 17, 2010 at 9:08 PM, goutham mandadi goutham.mand...@gmail.comwrote: Hi eric, I did not get you what are orb and .flash i am new to watir Thanks, Goutham On Tue, Aug 17, 2010 at 8:58 PM, Eric Mathiesen mathiese...@gmail.comwrote: You could also use orb and .flash the index. On Aug 17, 2010 8:23 AM, goutham mandadi goutham.mand...@gmail.com wrote: Hai Chuck, Thanks for ur reply we can add id or name for this element but why is element by xpath is not working for me can u help me on this Thankyou, Goutham On Tue, Aug 17, 2010 at 8:48 PM, Chuck van der Linden sqa...@gmail.com wrote: As an alternativ... -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] unable to find element using xpath
Hai Angrez, I have seen the example and tried to acces the element but when it comes to that step ruby interpreter is closing. How can i know whether xpath is working for me or not i have ruby along with rexml and i could not see the error message in ruby interpreter as it is closing. Please help me out waiting for your suggestions Thanks, Goutham On Mon, Aug 16, 2010 at 2:07 PM, Angrez Singh ang...@gmail.com wrote: Hi Goutham, Please check the unit test cases for Watir you'll find example on how to access map/area element using XPath. It should be there in [ruby installation directory]\gems\1.8\firewatir-1.6.5\unittests. Thanks, Angrez On Mon, Aug 16, 2010 at 9:09 AM, goutham mandadi goutham.mand...@gmail.com wrote: hai basim, below is the code map name=nav area href=http://www.snapfish.com/snapfish/selectalbumreprints/; title= Order prints coords=9,53,113,72 area href=javascript:showShare() title= Share coords=131,52,187,71 /map how can we identify these elements by using xpath On Mon, Aug 16, 2010 at 12:20 AM, Basim Baassiri ba...@baassiri.cawrote: Hi Goutham You'll need to post some code and some html to illustrate better your problem On Sun, Aug 15, 2010 at 11:22 AM, goutham goutham.mand...@gmail.comwrote: hai all, i am using element_by_xpath to find an element in watir but browser is closing when i come to xpath step. does we need to install anything to find element using xpath . waiting for ur suggestions Thankyou, Goutham -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Unable to see error message in ruby interpreter
Hai Adam, Thanks for your reply i have installed scite and run the script it is giving the following message ruby New Ruby Program.rb ruby: No such file or directory -- New (LoadError) Exit code: 1 the script is in my desktop should we place it in any specific directory to execute Thanks, Goutham On Mon, Aug 16, 2010 at 9:24 PM, Adam Reed reed.a...@gmail.com wrote: Hi Goutham, It sounds like you're double-clicking the script in order to run it which closes the DOS window upon completion. If installed, you can execute the script using the SciTE editor. Right click on the script, select Edit. The output pane can be enabled using F8 if it is not shown. Alternatively, you can open a DOS prompt and browse to the location of the script you would like to run. Execute the script from the command line, and the DOS window will not close. Good luck, Adam On Aug 16, 10:46 am, goutham goutham.mand...@gmail.com wrote: Hi all, I am new to watir ,I am trying to find element using xpath but i could not and one more issue is that i couldnot see the error message what it is returning as ruby interpreter is getting closed how to see the error messages returned during execution Thankyou, Goutham -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] unable to find element using xpath
Hi, I am getting the following error message ,i am using IE8 browser one.rb:6: undefined method `element_by_xpath' for #Watir::IE:0x2bbabf0 (NoMethodError) can anyone help me out Thanks in advance, Goutham On Mon, Aug 16, 2010 at 4:23 PM, goutham mandadi goutham.mand...@gmail.comwrote: Hai Angrez, I have seen the example and tried to acces the element but when it comes to that step ruby interpreter is closing. How can i know whether xpath is working for me or not i have ruby along with rexml and i could not see the error message in ruby interpreter as it is closing. Please help me out waiting for your suggestions Thanks, Goutham On Mon, Aug 16, 2010 at 2:07 PM, Angrez Singh ang...@gmail.com wrote: Hi Goutham, Please check the unit test cases for Watir you'll find example on how to access map/area element using XPath. It should be there in [ruby installation directory]\gems\1.8\firewatir-1.6.5\unittests. Thanks, Angrez On Mon, Aug 16, 2010 at 9:09 AM, goutham mandadi goutham.mand...@gmail.com wrote: hai basim, below is the code map name=nav area href=http://www.snapfish.com/snapfish/selectalbumreprints/; title= Order prints coords=9,53,113,72 area href=javascript:showShare() title= Share coords=131,52,187,71 /map how can we identify these elements by using xpath On Mon, Aug 16, 2010 at 12:20 AM, Basim Baassiri ba...@baassiri.cawrote: Hi Goutham You'll need to post some code and some html to illustrate better your problem On Sun, Aug 15, 2010 at 11:22 AM, goutham goutham.mand...@gmail.comwrote: hai all, i am using element_by_xpath to find an element in watir but browser is closing when i come to xpath step. does we need to install anything to find element using xpath . waiting for ur suggestions Thankyou, Goutham -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Unable to see error message in ruby interpreter
Hi , I am using xpath to identify the following element but it is displaying error one.rb:6: undefined method `element_by_xpath' for #Watir::IE:0x2bbabf0 (NoMethodError) ie.element_by_xpath(//area[@ href='www.snapfish.com/snapfish/youraccount'http://www.snapfish.com/snapfish/youraccount%27]).click this is the element i am trying to find using xpath does xpath is supported by IE or not can anyone help me on this Thanks, Goutham On Mon, Aug 16, 2010 at 11:44 PM, Eric Mathiesen mathiese...@gmail.comwrote: My first piece of advice would be not to use x-path, but any of the other items to identify ( ID, Name, URL, Etc...) Cheers, Eric On Mon, Aug 16, 2010 at 10:59 AM, Charley Baker charley.ba...@gmail.comwrote: Not sure on that one, check the unittests for watir. I've created and built out a test base of over 10k tests, not using xpath. Others are more qualified to answer. Charley Baker Lead Developer, Watir, http://watir.com On Mon, Aug 16, 2010 at 11:31 AM, goutham mandadi goutham.mand...@gmail.com wrote: Hi Charley, Thanks alot it is working fine now and one more issue is while using xpath i am getting the following error one.rb:6: undefined method `element_by_xpath' for #Watir::IE:0x2bbabf0 (NoMethodError) ie.element_by_xpath(//ar...@href=' www.snapfish.com/snapfish/youraccount'http://www.snapfish.com/snapfish/youraccount%27]).click this is the element i am trying to find using xpath Thanks, Goutham On Mon, HiAug 16, 2010 at 10:07 PM, Charley Baker charley.ba...@gmail.com wrote: Name the file with no spaces, something like my_ruby_program.rb. Filenames are conventionally snake cased - lower case with underscores. Charley Baker Lead Developer, Watir, http://watir.com On Mon, Aug 16, 2010 at 10:04 AM, goutham mandadi goutham.mand...@gmail.com wrote: Hai Adam, Thanks for your reply i have installed scite and run the script it is giving the following message ruby New Ruby Program.rb ruby: No such file or directory -- New (LoadError) Exit code: 1 the script is in my desktop should we place it in any specific directory to execute Thanks, Goutham On Mon, Aug 16, 2010 at 9:24 PM, Adam Reed reed.a...@gmail.comwrote: Hi Goutham, It sounds like you're double-clicking the script in order to run it which closes the DOS window upon completion. If installed, you can execute the script using the SciTE editor. Right click on the script, select Edit. The output pane can be enabled using F8 if it is not shown. Alternatively, you can open a DOS prompt and browse to the location of the script you would like to run. Execute the script from the command line, and the DOS window will not close. Good luck, Adam On Aug 16, 10:46 am, goutham goutham.mand...@gmail.com wrote: Hi all, I am new to watir ,I am trying to find element using xpath but i could not and one more issue is that i couldnot see the error message what it is returning as ruby interpreter is getting closed how to see the error messages returned during execution Thankyou, Goutham -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received
Re: [wtr-general] unable to find element using xpath
Hai Angrez, can u please help me on this i have seen ur post regarding this but i am unable to understand Thanks, Goutham On Mon, Aug 16, 2010 at 10:02 PM, goutham mandadi goutham.mand...@gmail.com wrote: Hi, I am getting the following error message ,i am using IE8 browser one.rb:6: undefined method `element_by_xpath' for #Watir::IE:0x2bbabf0 (NoMethodError) can anyone help me out Thanks in advance, Goutham On Mon, Aug 16, 2010 at 4:23 PM, goutham mandadi goutham.mand...@gmail.com wrote: Hai Angrez, I have seen the example and tried to acces the element but when it comes to that step ruby interpreter is closing. How can i know whether xpath is working for me or not i have ruby along with rexml and i could not see the error message in ruby interpreter as it is closing. Please help me out waiting for your suggestions Thanks, Goutham On Mon, Aug 16, 2010 at 2:07 PM, Angrez Singh ang...@gmail.com wrote: Hi Goutham, Please check the unit test cases for Watir you'll find example on how to access map/area element using XPath. It should be there in [ruby installation directory]\gems\1.8\firewatir-1.6.5\unittests. Thanks, Angrez On Mon, Aug 16, 2010 at 9:09 AM, goutham mandadi goutham.mand...@gmail.com wrote: hai basim, below is the code map name=nav area href=http://www.snapfish.com/snapfish/selectalbumreprints/; title= Order prints coords=9,53,113,72 area href=javascript:showShare() title= Share coords=131,52,187,71 /map how can we identify these elements by using xpath On Mon, Aug 16, 2010 at 12:20 AM, Basim Baassiri ba...@baassiri.cawrote: Hi Goutham You'll need to post some code and some html to illustrate better your problem On Sun, Aug 15, 2010 at 11:22 AM, goutham goutham.mand...@gmail.comwrote: hai all, i am using element_by_xpath to find an element in watir but browser is closing when i come to xpath step. does we need to install anything to find element using xpath . waiting for ur suggestions Thankyou, Goutham -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] unable to find element using xpath
hai basim, below is the code map name=nav area href=http://www.snapfish.com/snapfish/selectalbumreprints/ view-source:http://www.snapfish.com/snapfish/selectalbumreprints/ title= Order prints coords=9,53,113,72 area href=javascript:showShare() title= Share coords=131,52,187,71 /map how can we identify these elements by using xpath On Mon, Aug 16, 2010 at 12:20 AM, Basim Baassiri ba...@baassiri.ca wrote: Hi Goutham You'll need to post some code and some html to illustrate better your problem On Sun, Aug 15, 2010 at 11:22 AM, goutham goutham.mand...@gmail.comwrote: hai all, i am using element_by_xpath to find an element in watir but browser is closing when i come to xpath step. does we need to install anything to find element using xpath . waiting for ur suggestions Thankyou, Goutham -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com