[wtr-general] Title of the browser
Hello, How to capture title of the page using watir? Please reply. Swapnal --~--~-~--~~~---~--~~ 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: Script to click the dynamically generated link.
Hi, In this application when we add user every user will have the 'Edit' and 'Delete' link. span class=savedentityanbsp;-nbsp;associate/span/td tr bgcolor=#f6f2f6 td width=33% span class=toolBara href=AppControl?pg=List Usersret=Editid_user=1Edit/a| a href='javascript:confirmDelete(AppControl?pg=List Usersret=Deleteid_user=1)'Delete/a/span I want to write the code to click the 'Edit' link from above code. How can I write it? On Tue, Jul 28, 2009 at 9:54 PM, Chuck van der Linden sqa...@gmail.comwrote: When interacting with the page manually, how do you know which link you want to click? is it always in the same position (e.g. always the third 'edit' link) or next to a particular label in the table, or something else? without knowing how you determind which is the correct link to click, we can't tell you how you would create a script to do the same thing. Also what part of the code is 'dynamically generated' and subject to change? do the URL values vary? the position on the page? without knowing what is dynamic vs what is constant, we can't know what potential means to identify elements are 'out of play' (or vastly more complicated) as it were. On Jul 28, 2:04 am, Swap swapnal.sa...@gmail.com wrote: Hello All, I want to write the script to click the dynamiclly generated 'Edit' and 'Delete' link. How can I do that? This is the html code for that:: div class=contentHolder table width=100% cellspacing=8 cellpadding=5 border=0 tr bgcolor=#f6f2f6 td width=33% span class=toolBara href=AppControl?pg=List Usersret=Editid_user=4Edit/a| a href='javascript:confirmDelete(AppControl?pg=List Usersret=Deleteid_user=4)'Delete/a/span span class=savedentityanbsp;-nbsp;associate/span/td tr bgcolor=#f6f2f6 td width=33% span class=toolBara href=AppControl?pg=List Usersret=Editid_user=1Edit/a| a href='javascript:confirmDelete(AppControl?pg=List Usersret=Deleteid_user=1)'Delete/a/span span class=savedentityadminnbsp;-nbsp;admin/span/td tr bgcolor=#f6f2f6 td width=33% span class=toolBara href=AppControl?pg=List Usersret=Editid_user=3Edit/a| a href='javascript:confirmDelete(AppControl?pg=List Usersret=Deleteid_user=3)'Delete/a/span span class=savedentitysappunbsp;-nbsp;associate/span/ td tr bgcolor=#f6f2f6 td width=33% span class=toolBara href=AppControl?pg=List Usersret=Editid_user=2Edit/a| a href='javascript:confirmDelete(AppControl?pg=List Usersret=Deleteid_user=2)'Delete/a/span span class=savedentityswapnbsp;-nbsp;associate/span/td /table /div Thanks in advance Swapnal S. --~--~-~--~~~---~--~~ 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: Time to learn Watir
I do not have automation knowledge then how much time I will need to learn everything of Watir? Swapnal On Fri, Jul 10, 2009 at 12:04 PM, kiran yajamanyam kiranyajaman...@gmail.com wrote: If you have automation knowledge, it shouldn't take much time to learn. First start it and you will know about it. Regards, Kiran Y On Fri, Jul 10, 2009 at 12:02 PM, Swap swapnal.sa...@gmail.com wrote: Hello, I am new to learn Watir. And my company ask me the estimation to learn the Watir. Can you please tell me how much time the learner will need to understand and learn Watir? Please reply. Thanks in advance Swapnal. --~--~-~--~~~---~--~~ 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: asset_enabled error to click a button
Try this ie.button(:id, action_button).click_no_wait On Sat, May 30, 2009 at 1:02 PM, Venkat venkateshla...@gmail.com wrote: I wrote a code to click on button ie.button(:id, action_button).click But I am getting following errors: C:\Documents and Settings\\Desktopruby two-minute.rb C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:57:in `assert_e abled': object id and action_button is disabled (Watir::Exception::ObjectDisabl dException) from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:22 :in `click!' from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:21 :in `click' from two-minute.rb:18 HTML Source code of the button div id=mid_row/div div id=bot_row button type=button class=button id=action_button/ button /div My guess is my syntax is right but still its not clicking on button. I am not sure why? --~--~-~--~~~---~--~~ 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: Is Watir supports if application has developed with (struts2, JPA, JSP, Ajax, Flash, Google gadgets) technologies.
Watir(Web App Testing in Ruby) is mainly for web application testing. On Fri, May 29, 2009 at 11:10 AM, Narendra Gollapilli narendra.gollapi...@gmail.com wrote: Hi, I'm QA Engineer I would like to automate tests in watir for web application which was developed using (struts2, JPA, JSP, Ajax, Flash, Google gadgets). Please let me know whether Watir supports the above technologies? ThanksRegards, Narendra. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---