[wtr-general] Re: Script to click the dynamically generated link.
On Jul 28, 10:06 pm, Swapnal swapnal.sa...@gmail.com wrote: 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? based on just the code fragent above? browser.link(:text, 'Edit').click if that doesn't answer your question, and given the thread I expect it won't, then please go back and answer EACH of the questions I asked in my prior post. Most importantly, how do you as a user know which 'edit' link you want to click?and if your answer is 'for the user I just created' or something along those lines, then understand that my response will then be something like 'how do you know when using the application manually, which is the edit link for the user you just created. Remember, in the code sample you gave, those of us who don't know your application, have NO IDEA which text that would be displayed represents a username.. --~--~-~--~~~---~--~~ 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: Does watir support i18n testing?
Hi Zhimin I had a try to automate Chinese Google website using watir. All the Chinese characters are displayed as square boxes when i use IE developer tool bar and when I try to copy Chinese characters in to Scite, those are displayed as ?. Please tell me the approach for testing Chinese (any of other languages) web sites. - Thanks Regards Siva On Jul 28, 3:32 am, Zhimin zhiminz...@gmail.com wrote: Watir supports i18n, I have been using it to test a web site in chinese. I couldn't paste the sample here. But had no luck with FireWatir, it seems JSSH not supporting i18n. If you want to give a try, download iTest2 (http://itest2.com), open project c:\Program Files\iTest2\samples\demo\demo.tpr Run chinese_spec.rb Zhimin On Jul 24, 3:02 pm, Krapa krapa.ph...@gmail.com wrote: Hi, How to test i18n (Chines, Japanies etc...) applications using watir? Do we have any approach for it? Does watir support it? --~--~-~--~~~---~--~~ 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] Getting text between two br / tags
There is a line of text that I want to extract. It is found in some HTML that follows this pattern: a href=...img src=...//abr/ !-- An image link -- Some text br/ a href=...Another link (variable text)/a br/ Text I want to extract. br/ Updated by a href=...name (variable)/a X hours ago [a href=...Comment/a] I have the impression that I'd use XPath somehow, but am unsure how to proceed since the text I want isn't in any page element. - Aaron --~--~-~--~~~---~--~~ 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] Watir fire_event that opens a modal dialog no wait needed
Hello, I cannot open a modal dialog and return from it. This is waht I do: Thread.abort_on_exception = true t = Thread.new { t[6].fire_event(onmousedown) puts after event sleep(1) # raise Exception from thread } puts after thread for i in (1..100) puts i end t1.kill --~--~-~--~~~---~--~~ 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] Watir fire_event that opens a modal dialog no wait needed
Hello, Sorry for the previous message, the finger slipped onver SPACE :) I cannot open a modal dialog and return from it. This is waht I do: Thread.abort_on_exception = true t = Thread.new { button.fire_event(onmousedown) } t.kill It never reaches t. Firing the event onmouse down on button opens the modal dialog. How can I get it to work? 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: Getting text between two br / tags
Well, if the only text that is variable is the text within the a/a tags, are there any identifying marks for that link? an id? Otherwise, I suppose you could just get the text for the whole page and subtract the text you already know (i.e. the non-variable text). Not pretty or elegant, but it would get the job done. -Dylan On Jul 29, 12:47 pm, Aaron MacDonald aa...@genieknows.com wrote: There is a line of text that I want to extract. It is found in some HTML that follows this pattern: a href=...img src=...//abr/ !-- An image link -- Some text br/ a href=...Another link (variable text)/a br/ Text I want to extract. br/ Updated by a href=...name (variable)/a X hours ago [a href=...Comment/a] I have the impression that I'd use XPath somehow, but am unsure how to proceed since the text I want isn't in any page element. - Aaron --~--~-~--~~~---~--~~ 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: Watir fire_event that opens a modal dialog no wait needed
There are so many definitions around modal dialogs, did you call click_no_wait before your method. There are a variety of ways to deal with dialog boxes, all have been posted, so search for it if that doesn't work. Post your solution if it does work. Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Wed, Jul 29, 2009 at 2:26 PM, ghidu agh...@gmail.com wrote: Hello, Sorry for the previous message, the finger slipped onver SPACE :) I cannot open a modal dialog and return from it. This is waht I do: Thread.abort_on_exception = true t = Thread.new { button.fire_event(onmousedown) } t.kill It never reaches t. Firing the event onmouse down on button opens the modal dialog. How can I get it to work? 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: Watir fire_event that opens a modal dialog no wait needed
click_no_wait doesn't work, only onmousedown opens the modal dialog. Is there a no_wait for fire_event? Thanks On Wed, Jul 29, 2009 at 11:32 PM, Charley Baker charley.ba...@gmail.comwrote: There are so many definitions around modal dialogs, did you call click_no_wait before your method. There are a variety of ways to deal with dialog boxes, all have been posted, so search for it if that doesn't work. Post your solution if it does work. Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Wed, Jul 29, 2009 at 2:26 PM, ghidu agh...@gmail.com wrote: Hello, Sorry for the previous message, the finger slipped onver SPACE :) I cannot open a modal dialog and return from it. This is waht I do: Thread.abort_on_exception = true t = Thread.new { button.fire_event(onmousedown) } t.kill It never reaches t. Firing the event onmouse down on button opens the modal dialog. How can I get it to work? 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: Getting text between two br / tags
There is a line of text that I want to extract. It is found in some HTML that follows this pattern: a href=...img src=...//abr/ !-- An image link -- Some text br/ a href=...Another link (variable text)/a br/ Text I want to extract. br/ Updated by a href=...name (variable)/a X hours ago [a href=...Comment/a] I have the impression that I'd use XPath somehow, but am unsure how to proceed since the text I want isn't in any page element. - Aaron Here's how I would do it with a regular expression: $ie.html =~ /br\/\s*(.*)\s*br\/\s*Updated/ puts $1 That doesn't pull the tab before 'Text', and assumes that 'Updated' only appears once in the html. I don't guarantee that this regexp will work with any text other than what you provided above, where it returns Text I want to extract. in $1 and spits it out to the screen. Hope this gives you a starting place. /\/\ark __ Information from ESET NOD32 Antivirus, version of virus signature database 4289 (20090729) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com --~--~-~--~~~---~--~~ 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: Does watir support i18n testing?
Here are some screencasts of running rWebUnit (an extension of Watir) tests against chinese web sites. http://www.itest2.com/cn/screencasts My Env and Tools: iTest2 IDE, iTest2/Watir Recorder on Windows XP (Simplified Chinese) Zhimin On Jul 30, 4:25 am, sHiVa krapa.ph...@gmail.com wrote: Hi Zhimin I had a try to automate Chinese Google website using watir. All the Chinese characters are displayed as square boxes when i use IE developer tool bar and when I try to copy Chinese characters in to Scite, those are displayed as ?. Please tell me the approach for testing Chinese (any of other languages) web sites. - Thanks Regards Siva On Jul 28, 3:32 am, Zhimin zhiminz...@gmail.com wrote: Watir supports i18n, I have been using it to test a web site in chinese. I couldn't paste the sample here. But had no luck with FireWatir, it seems JSSH not supporting i18n. If you want to give a try, download iTest2 (http://itest2.com), open project c:\Program Files\iTest2\samples\demo\demo.tpr Run chinese_spec.rb Zhimin On Jul 24, 3:02 pm, Krapa krapa.ph...@gmail.com wrote: Hi, How to test i18n (Chines, Japanies etc...) applications using watir? Do we have any approach for it? Does watir support it? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---