tag:blogger.com,1999:blog-29245039.post114960582946205894..comments2022-03-31T08:55:31.928+05:30Comments on Angrez's blog: XPath and WATiRAngrez Singhhttp://www.blogger.com/profile/12744008535212551340noreply@blogger.comBlogger20125tag:blogger.com,1999:blog-29245039.post-38506808645269327142013-01-28T18:56:21.288+05:302013-01-28T18:56:21.288+05:30Hi Angrez,
I am using watir (4.0.2 x86-mingw32) v...Hi Angrez,<br /><br />I am using watir (4.0.2 x86-mingw32) version. Whenever I execute the commands like ie.cell/ ie.element_by_xpath. I am getting an undefined method error<br /><br />----<br />undefined method `element_by_xpath' for # (NoMethodError)<br />------<br /><br />Help me on this...jeganhttps://www.blogger.com/profile/16951035438033907876noreply@blogger.comtag:blogger.com,1999:blog-29245039.post-28561307778534508022013-01-23T18:59:05.565+05:302013-01-23T18:59:05.565+05:30Sorry sir if this is rude.. Xpath never works..it ...Sorry sir if this is rude.. Xpath never works..it alwayz shows a syntax error..Anonymoushttps://www.blogger.com/profile/14616209144102256663noreply@blogger.comtag:blogger.com,1999:blog-29245039.post-16421636314798206392013-01-23T18:56:29.332+05:302013-01-23T18:56:29.332+05:30sorry sir if this is rude...Xpath never works...sorry sir if this is rude...Xpath never works...Anonymoushttps://www.blogger.com/profile/14616209144102256663noreply@blogger.comtag:blogger.com,1999:blog-29245039.post-69109258388174497782012-09-26T08:14:00.081+05:302012-09-26T08:14:00.081+05:30How can I get the text "Duzul" from this...How can I get the text "Duzul" from this element:<br /><br />"td valign="bottom" align="center" style="width:100px;">Dzul</td"<br /><br />the xpath is:<br /><br />xpath = /html/body/div/div[2]/form/div[3]/div/div/table/tbody/tr[2]/td/div/table/tbody/tr[2]/td[2]<br /><br />thanks in advance!!!!Anonymoushttps://www.blogger.com/profile/09368201734176299017noreply@blogger.comtag:blogger.com,1999:blog-29245039.post-68386949146547909572011-06-24T04:56:32.516+05:302011-06-24T04:56:32.516+05:30If the HTML were modified slightly to include a fu...If the HTML were modified slightly to include a full path to the jpg file, ie src="http://server/images/7.jpg", how would that change the xpath?elizat8https://www.blogger.com/profile/11297161015071182622noreply@blogger.comtag:blogger.com,1999:blog-29245039.post-31811946043159848772010-08-17T17:23:19.454+05:302010-08-17T17:23:19.454+05:30Dear Angrez,
I have got a button "like"...Dear Angrez,<br /><br />I have got a button "like" object on my AUT screen. However,Watir does not<br />recognize it. When i viewed source for this page, i got it defined as per below:<br /><br />LI class='viewTabBtnOff' tabIndex='2' id='Frame_1_TabList2'<br />onclick="tabObjList['Frame_1_TabList'].tabAreaShowHide('1','2','LATAM&#Nilesh Joshihttps://www.blogger.com/profile/07283526214094385790noreply@blogger.comtag:blogger.com,1999:blog-29245039.post-51669794267238385802010-08-17T17:21:52.495+05:302010-08-17T17:21:52.495+05:30Dear Angrez,
I have got a button "like"...Dear Angrez,<br /><br />I have got a button "like" object on my AUT screen. However,Watir does not<br />recognize it. When i viewed source for this page, i got it defined as per below:<br /><br />LI class='viewTabBtnOff' tabIndex='2' id='Frame_1_TabList2'<br />onclick="tabObjList['Frame_1_TabList'].tabAreaShowHide('1','2','LATAM&#Nilesh Joshinoreply@blogger.comtag:blogger.com,1999:blog-29245039.post-13547950335669567542008-10-31T02:17:00.000+05:302008-10-31T02:17:00.000+05:30I want to collect all the links that have lets say...I want to collect all the links that have lets say "Details.aspx" somewhere in the href attribute, and click follow each link. I know how to select them using XPATH, //a[contains(., 'Details.aspx')]. Can I use XPATH with links()?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-29245039.post-18215108268578662302008-10-07T10:46:00.000+05:302008-10-07T10:46:00.000+05:30Angrez's can you please help me in working out wit...Angrez's can you please help me in working out with WATIR for the below HTML Code?<BR/><BR/>HTML Code: <BR/>class="formbody" INPUT VALUE ="" name="search_name" size="20" maxLength="80" <BR/><BR/>In the above scenario, I can't able to access the text box even with name='search_name". Can you please help me?Kumarhttps://www.blogger.com/profile/01353441285047917346noreply@blogger.comtag:blogger.com,1999:blog-29245039.post-12099601368513036812008-06-23T20:56:00.001+05:302008-06-23T20:56:00.001+05:30Sorry for spam but i have one more question. Could...Sorry for spam but i have one more question. Could I specify multiple attribute for one element? <BR/>Something like:<BR/>ie.table(:xpath,"//table[@class=>'test4',@index =>3]/tr/td/input/").text<BR/><BR/>I tried to run this but it doesn't work.aleks.kiev.uahttps://www.blogger.com/profile/11934405378366853080noreply@blogger.comtag:blogger.com,1999:blog-29245039.post-9866292937963538142008-06-23T20:56:00.000+05:302008-06-23T20:56:00.000+05:30Sorry for spam but i have one more question. Could...Sorry for spam but i have one more question. Could I specify multiple attribute for one element? <BR/>Something like:<BR/>ie.table(:xpath,"//table[@class=>'test4',@index =>3]/tr/td/input/").text<BR/><BR/>I tried to run this but it doesn't work.aleks.kiev.uahttps://www.blogger.com/profile/11934405378366853080noreply@blogger.comtag:blogger.com,1999:blog-29245039.post-6623077682093515722008-06-23T19:16:00.000+05:302008-06-23T19:16:00.000+05:30Hi, Can I specify atribute TYPE for button from la...Hi, <BR/><BR/>Can I specify atribute TYPE for button from last exemple?aleks.kiev.uahttps://www.blogger.com/profile/11934405378366853080noreply@blogger.comtag:blogger.com,1999:blog-29245039.post-75016166401653425552008-06-04T17:19:00.000+05:302008-06-04T17:19:00.000+05:30@qa_excellence:I have experience with Watir and Fi...@qa_excellence:<BR/><BR/>I have experience with Watir and Firewatir. I haven't used selenium while testing web applications. Anything in particular that you would like to ask?Angrez Singhhttps://www.blogger.com/profile/12744008535212551340noreply@blogger.comtag:blogger.com,1999:blog-29245039.post-23144197137975530052008-04-06T12:59:00.000+05:302008-04-06T12:59:00.000+05:30Very helpful post! Have you experience with Seleni...Very helpful post! Have you experience with Selenium and Watir?<BR/><BR/>-newsqa.comAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-29245039.post-74447354850816486052007-07-26T16:31:00.000+05:302007-07-26T16:31:00.000+05:30@Harmeet:You have to use latest gem of watir to us...@Harmeet:<BR/><BR/>You have to use latest gem of watir to use xpath for addressing or locating element on web page. It will not work with watir 1.4.1<BR/><BR/>@Филипп:<BR/>See if you have id or any other attribute for addressing element on page its better to use that in Watir. XPath is only used in emergency situation's when you don't have any attribute to address element uniquely.<BR/>In your Angrez Singhhttps://www.blogger.com/profile/12744008535212551340noreply@blogger.comtag:blogger.com,1999:blog-29245039.post-30425397889521350542007-07-17T13:10:00.000+05:302007-07-17T13:10:00.000+05:30Can you please tell how to get XPATH of some eleme...Can you please tell how to get XPATH of some element using it's attributes? F.e I need to get xpath of borwser.link(:id, "Link_id") using WATIR. How can I do it?f1r3okhttps://www.blogger.com/profile/17833161854875918683noreply@blogger.comtag:blogger.com,1999:blog-29245039.post-74598111518729756102007-06-05T06:58:00.000+05:302007-06-05T06:58:00.000+05:30Do I require something to use xpath in watir becau...Do I require something to use xpath in watir because normally it doesn't work in watir. I have tried on IRB also. It gives following<BR/>irb(main):005:0> ie.getLink(:xpath, "//td[@id='best_performing_FSF0497AU']/a").click<BR/>Watir::Exception::MissingWayOfFindingObjectException: :xpath is an unknown way of finding a link ( //td[@id='best_performing_FSF0497AU']/a )Harmeethttps://www.blogger.com/profile/15205046213121788546noreply@blogger.comtag:blogger.com,1999:blog-29245039.post-1154236356674180992006-07-30T10:42:00.000+05:302006-07-30T10:42:00.000+05:30Thanks!I hope you will continue blogging on some o...Thanks!<BR/><BR/>I hope you will continue blogging on some of the tools!santoshhttps://www.blogger.com/profile/05802065751725383869noreply@blogger.comtag:blogger.com,1999:blog-29245039.post-1153203915159009422006-07-18T11:55:00.000+05:302006-07-18T11:55:00.000+05:30Hi Santosh,These extensions are in the WATiR tool ...Hi Santosh,<BR/><BR/>These extensions are in the WATiR tool itself. There is no need to install anything besides WATiR<BR/><BR/>Regards,<BR/>AngrezAngrez Singhhttps://www.blogger.com/profile/12744008535212551340noreply@blogger.comtag:blogger.com,1999:blog-29245039.post-1151565349550957912006-06-29T12:45:00.000+05:302006-06-29T12:45:00.000+05:30Where can I get the extensions to Watir?Where can I get the extensions to Watir?santoshhttps://www.blogger.com/profile/05802065751725383869noreply@blogger.com