[wtr-general] Re: :after? and :before? methods not supported for all elements?
Forgot to mention that it doesn't matter if you use comma or a hash in this case - result is the same. Jarmo -- 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] how to click on a row in a table
how to click on a row in a table html code is: table class=user-table width=100% border=0 cellpadding=6 cellspacing=0 thead tr th width=10% nowrap=nowrap UserID/th th width=20% nowrap=nowrap Username/th th width=25% nowrap=nowrap Name/th th width=30% nowrap=nowrap Email/th th width=15% nowrap=nowrap Registered/th /tr /thead tbody tr class=odd onmouseover=onhoverbyclass(this, 'hover') onmouseout=offhover(this) onclick=location.href = 'editUserProfile! input.jspa?userId=46871'; td class=user-column width=10% 46871 /td td class=user-column width=20% raju-test25 /td td class=user-column width=25% raju-test25 /td td class=user-column width=30% rajudvsn...@yahoo.co.in /td td class=user-column width=15% Nov 18, 2009 /td /tr /tbody /table -- 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
Re: [wtr-general] how to click on a row in a table
Two different ways you can make it. You can use *index*: $b.cell(:class =user-column, :index =the text's index).click You can use *text*: $b.cell(:class =user-column, ::text=the text you want to click).click Expect it helps. Thanks. Wesley Chen. For life, the easier, the better. On Thu, Jan 21, 2010 at 5:54 PM, raju rajudvsn...@yahoo.co.in wrote: k on a row in a table -- 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: how to click on a row in a table
Super its working. Thanks for ur quick reply Thanks, Raju On Jan 21, 4:00 pm, Wesley Chen cjq@gmail.com wrote: Two different ways you can make it. You can use *index*: $b.cell(:class =user-column, :index =the text's index).click You can use *text*: $b.cell(:class =user-column, ::text=the text you want to click).click Expect it helps. Thanks. Wesley Chen. For life, the easier, the better. On Thu, Jan 21, 2010 at 5:54 PM, raju rajudvsn...@yahoo.co.in wrote: k on a row in a table -- 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
Re: [wtr-general] Getting undefined method when trying to check a checkbox
On Wed, Jan 20, 2010 at 9:50 PM, QAguy qablogm...@gmail.com wrote: browser.checkbox(:id, select_all_checkbox).set This should work but is giving me: undefined method `checkbox' for nil:NilClass To check does browser variable point to browser, you can use something like this: browser.url browser.text Željko -- watir.com - community manager watirpodcast.com - host -- 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
Re: [wtr-general] Re: :after? and :before? methods not supported for all elements?
On Thu, Jan 21, 2010 at 9:48 AM, Jarmo Pertman jarm...@gmail.com wrote: then there is an example of using :after? (although not :before?, though this is also available) I think :before? is deprecated because it did not work. In other words - it works okay with span, but not with input field. Is there anywhere most up to date documentation so everyone would know if it's supported or not? If there is some outdated documentation, can it be deleted from the web? Wiki should be up to date. If something is wrong, please fix it. If you need any help with the wiki, just let me know. These are the pages that mention :after? http://wiki.openqa.org/display/WTR/Watir+Methods+Supported+by+HTML+Element http://wiki.openqa.org/display/WTR/How+and+What http://wiki.openqa.org/display/WTR/Ways+Available+To+Identify+HTML+Element At http://wiki.openqa.org/display/WTR/Watir+Methods+Supported+by+HTML+Elementyou can mark elements that work with :after?. For now, only link is marked as supported. Željko -- watir.com - community manager watirpodcast.com - host -- 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
Re: [wtr-general] how to click on a row in a table
On Thu, Jan 21, 2010 at 10:54 AM, raju rajudvsn...@yahoo.co.in wrote: how to click on a row in a table You can also use browser.row(how, what) to access a row in the table. Željko -- watir.com - community manager watirpodcast.com - host -- 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
Re: [wtr-general] WatiN versus WatiR
On Wed, Jan 20, 2010 at 10:27 PM, .WatiNNewbie kiphug...@gmail.com wrote: I'm exploring WatiN right now, but am having problems getting the support I need (e.g. code samples, mailing list, etc.). I am surprised. Their mailing list is pretty alive. Can anyone here tell me the difference between WatiN and WatiR? Is WatiN a .Net port of WatiR? Watin is inspired by Watir. I have talked with Jeroen, the creator of Watin: http://watirpodcast.com/4-jeroen-van-menen-on-watin/ Can I just learn WatiR and apply the same concept to WatiN Probably the same as learning how to work with databases in Ruby would help you work with databases in .NET. Željko -- watir.com - community manager watirpodcast.com - host -- 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
Re: [wtr-general] WatiN versus WatiR
Hello, I don't know much about Watin, its development or user groups, but I would say that if your project does not REQUIRE you to use Watin, learning Ruby and Watir would be a very good thing to do :) The community support here is awesome! Currently I'm working on a project that required me to use Selenium instead of Watir, so I had to dust off my Java skills and use Selenium RC with a framework called TestNG :) Just my 2 cents FK On Wed, Jan 20, 2010 at 7:27 PM, .WatiNNewbie kiphug...@gmail.com wrote: Hi, I'm exploring WatiN right now, but am having problems getting the support I need (e.g. code samples, mailing list, etc.). So, I am beginning to feel a bit reluctant about using it. I come from a .Net background, thus my preference for WatiN. Can anyone here tell me the difference between WatiN and WatiR? Is WatiN a .Net port of WatiR? Can I just learn WatiR and apply the same concept to WatiN (this is something I can do with Lucene.Net, the .Net port of Java Lucene)? -- 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 -- 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 undefined method when trying to check a checkbox
Thanks. Figured out what the issue was based on your advice. Appericate it. On Jan 21, 7:24 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Jan 20, 2010 at 9:50 PM, QAguy qablogm...@gmail.com wrote: browser.checkbox(:id, select_all_checkbox).set This should work but is giving me: undefined method `checkbox' for nil:NilClass To check does browser variable point to browser, you can use something like this: browser.url browser.text Željko -- watir.com - community manager watirpodcast.com - host -- 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] popup handling
Hi All, I am using following script to handle the pop up but the code is not woking the code autoit.Send({Enter}) is not working .it doesnot send the key strokes properly please help me in this regard or please give me some other options to handle the pop up effectively.currently i am using watir 1.6.2 require 'watir' require 'win32ole' require 'watir/dialog' require 'watir/winClicker' require 'watir/contrib/enabled_popup' # MAIN APPLICATION CODE link = '\\\hcl0203\Release 3\Automated Testing\popups Handling \Sampl1.html' ie = Watir::IE.start(link) ie.button(:value, 'Click').click def check_for_popups(title, button) popup=Thread.new { autoit=WIN32OLE.new('AutoItX3.Control') ret=autoit.WinWait(title,,5) if (ret==1) autoit.WinActivate(title) button.downcase! if button.eql?(ok) || button.eql?(yes) || button.eql? (continue) autoit.Send({Enter}) else autoit.Send({tab}) autoit.Send({Enter}) end elsif (ret==0) puts No popup, please check your code. end } at_exit { Thread.kill(popup) } end check_for_popups(, OK) -- 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] find out the value in select list
How can I find out what has been selected in a dropdown? I would like to always modify the find value but I should know first what the value was. Any idea anyone? -- 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: Drag and Drop using Watir
Hi I have been doing some reserach on drag and drop using Watir. From what I can understand it is not feasiable yet, but it can be down via fire events. I have managed to select the div element that I want to drag to another screen view but I cannot seem to drag it into that view. When I use $b.div(:id, 8987).dragto(splitview) I get an error message saying that drag to is not a function. I tried using onmousemove but it returns 0 in irb. Then when I do onmouseup it just lets go of the element. Does anyone have any ideas or any sites that they can direct me to? 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
RE: [wtr-general] RE: Drag and Drop using Watir
See this thread for some suggestions: http://groups.google.ca/group/watir-general/browse_thread/thread/d45e56e437bcd9a8 -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of tester86 Sent: Thursday, January 21, 2010 1:38 PM To: Watir General Subject: [wtr-general] RE: Drag and Drop using Watir Hi I have been doing some reserach on drag and drop using Watir. From what I can understand it is not feasiable yet, but it can be down via fire events. I have managed to select the div element that I want to drag to another screen view but I cannot seem to drag it into that view. When I use $b.div(:id, 8987).dragto(splitview) I get an error message saying that drag to is not a function. I tried using onmousemove but it returns 0 in irb. Then when I do onmouseup it just lets go of the element. Does anyone have any ideas or any sites that they can direct me to? Thanks This email message and any attachments are for the sole use of the intended recipients and may contain proprietary and/or confidential information which may be privileged or otherwise protected from disclosure. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not an intended recipient, please contact the sender by reply email and destroy the original message and any copies of the message as well as any attachments to the original message. -- 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: Drag and Drop using Watir
Thanks for pointing me to that thread. It has helped out a little bit, but once I have clicked on the element in the table I did to drag it to the screen below. The screen is split in two views so I can take it from the top and drag it to the bottom. So far I have not used a right click or left click just an onMouseDown to get the element that I want to drag...Just having troubling trying to drag it into the second screen. Thanks for your help! On Jan 21, 2:11 pm, Alan Baird alan.ba...@riskmetrics.com wrote: See this thread for some suggestions: http://groups.google.ca/group/watir-general/browse_thread/thread/d45e... -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of tester86 Sent: Thursday, January 21, 2010 1:38 PM To: Watir General Subject: [wtr-general] RE: Drag and Drop using Watir Hi I have been doing some reserach on drag and drop using Watir. From what I can understand it is not feasiable yet, but it can be down via fire events. I have managed to select the div element that I want to drag to another screen view but I cannot seem to drag it into that view. When I use $b.div(:id, 8987).dragto(splitview) I get an error message saying that drag to is not a function. I tried using onmousemove but it returns 0 in irb. Then when I do onmouseup it just lets go of the element. Does anyone have any ideas or any sites that they can direct me to? Thanks This email message and any attachments are for the sole use of the intended recipients and may contain proprietary and/or confidential information which may be privileged or otherwise protected from disclosure. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not an intended recipient, please contact the sender by reply email and destroy the original message and any copies of the message as well as any attachments to the original message.- Hide quoted text - - Show quoted text - -- 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
Re: [wtr-general] Re: :after? and :before? methods not supported for all elements?
I've never actually used :after? or :before? either. We are still reporting issues in Jira, which does need some maintenance soon. Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir, http://watir.com QA Architect, Gap Inc Direct On Thu, Jan 21, 2010 at 1:02 PM, marekj marekj@gmail.com wrote: Then this :after? usage looks like a bug. Zeljko, do we still use jira for that? Where should we log and track this issue? jira? lighthouse? github? thoughts please? marekj Watirloo: Semantic Page Objects in UseCases http://github.com/marekj/watirloo/ Support Watir Project http://pledgie.com/campaigns/2982 On Thu, Jan 21, 2010 at 6:38 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Jan 21, 2010 at 9:48 AM, Jarmo Pertman jarm...@gmail.com wrote: then there is an example of using :after? (although not :before?, though this is also available) I think :before? is deprecated because it did not work. In other words - it works okay with span, but not with input field. Is there anywhere most up to date documentation so everyone would know if it's supported or not? If there is some outdated documentation, can it be deleted from the web? Wiki should be up to date. If something is wrong, please fix it. If you need any help with the wiki, just let me know. These are the pages that mention :after? http://wiki.openqa.org/display/WTR/Watir+Methods+Supported+by+HTML+Element http://wiki.openqa.org/display/WTR/How+and+What http://wiki.openqa.org/display/WTR/Ways+Available+To+Identify+HTML+Element At http://wiki.openqa.org/display/WTR/Watir+Methods+Supported+by+HTML+Element you can mark elements that work with :after?. For now, only link is marked as supported. Željko -- watir.com - community manager watirpodcast.com - host -- 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 -- 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 -- 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: find out the value in select list
Hello Orde, I can get the current selection by either value or the name of the value. Either way it is a String. How can I increment the value in 1 in order to have a new value in the select_list? On Jan 21, 1:41 pm, orde ohil...@gmail.com wrote: Try .getSelectedItems[0] to get the currently selected option. Try .getAllContents to get an array of the available options. This info fromhttp://groups.google.com/group/watir-general/browse_thread/thread/224... Once you have an array of options, you should be able to iterate through them. Hope it helps. orde On Jan 21, 1:11 pm, Shlomit Gazit shlomitpatr...@gmail.com wrote: Hello Tiffany and Orde, getSelectedOptions gave me:undefined method `getSelectedOptions' for #Watir::SelectList:0x31482e8 error. In anyhow: I am doing: status_value = $ie.select_list(:name, selectedImperativeStatusId).value status_next_value = (status_value.to_f + 1).to_s *puts*(status_next_value.*class*) # 2 * puts*(status_next_value) # String * puts*(status_next_value) #3.0 $ie.select_list(:name, selectedImperativeStatusId).select_value( status_next_value) Although status_next_value is showing as a String class, I am getting: Watir::Exception::NoValueFoundException: No option with value of status_next_value in this select element. Somehow it is showing 3.0 instead of 3. Any idea? Basically I need each time to select a different selection from the list, than the one that has already been selected. On Thu, Jan 21, 2010 at 10:34 AM, Tiffany Fodor tcfo...@comcast.net wrote: Hi Shlomit! You can get the current selected values like this: browser.select_list(:id, 'my_select_list').getSelectedOptions This returns an array of all selected options, so if there's only one, browser.select_list(:id, 'my_select_list').getSelectedOptions[0] will give you the text. Hope this helps! -Tiffany On Jan 21, 11:16 am, Shlomit Gazit shlomitpatr...@gmail.com wrote: How can I find out what has been selected in a dropdown? I would like to always modify the find value but I should know first what the value was. Any idea anyone? -- 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 -- 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: find out the value in select list
I figured out: status_value = $ie.select_list(:name, selectedImperativeStatusId).value status_next_value = (status_value.to_i + 1).to_s() $ie.select_list(:name, selectedImperativeStatusId).select_value(# {status_next_value}) On Jan 21, 2:53 pm, Shlomit Gazit shlomitpatr...@gmail.com wrote: Hello Orde, I can get the current selection by either value or the name of the value. Either way it is a String. How can I increment the value in 1 in order to have a new value in the select_list? On Jan 21, 1:41 pm, orde ohil...@gmail.com wrote: Try .getSelectedItems[0] to get the currently selected option. Try .getAllContents to get an array of the available options. This info fromhttp://groups.google.com/group/watir-general/browse_thread/thread/224... Once you have an array of options, you should be able to iterate through them. Hope it helps. orde On Jan 21, 1:11 pm, Shlomit Gazit shlomitpatr...@gmail.com wrote: Hello Tiffany and Orde, getSelectedOptions gave me:undefined method `getSelectedOptions' for #Watir::SelectList:0x31482e8 error. In anyhow: I am doing: status_value = $ie.select_list(:name, selectedImperativeStatusId).value status_next_value = (status_value.to_f + 1).to_s *puts*(status_next_value.*class*) # 2 * puts*(status_next_value) # String * puts*(status_next_value) #3.0 $ie.select_list(:name, selectedImperativeStatusId).select_value( status_next_value) Although status_next_value is showing as a String class, I am getting: Watir::Exception::NoValueFoundException: No option with value of status_next_value in this select element. Somehow it is showing 3.0 instead of 3. Any idea? Basically I need each time to select a different selection from the list, than the one that has already been selected. On Thu, Jan 21, 2010 at 10:34 AM, Tiffany Fodor tcfo...@comcast.net wrote: Hi Shlomit! You can get the current selected values like this: browser.select_list(:id, 'my_select_list').getSelectedOptions This returns an array of all selected options, so if there's only one, browser.select_list(:id, 'my_select_list').getSelectedOptions[0] will give you the text. Hope this helps! -Tiffany On Jan 21, 11:16 am, Shlomit Gazit shlomitpatr...@gmail.com wrote: How can I find out what has been selected in a dropdown? I would like to always modify the find value but I should know first what the value was. Any idea anyone? -- 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 -- 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
Re: [wtr-general] Re: How to turn to another newline when input the info in the textarea?
On Thu, Oct 29, 2009 at 7:35 PM, Angrez Singh ang...@gmail.com wrote: try this: @browser.text_field,(ld...).set(Hello,\\nHappy new year) - Angrez On Thu, Oct 29, 2009 at 2:47 PM, yuping zhong littlezhong...@gmail.comwrote: Hi, Fill some info in the textarea,I use \n to turn to a newline. But it doesn't work. Such as: @browser.text_field,(ld...).set(Hello,\nHappy new year) But it still fill as: Hello,Happy new year I want to be: Hello, Happy new year Any idea of that? Thanks. -Zhong --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~--- -- 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
Re: [wtr-general] Re: How to turn to another newline when input the info in the textarea?
Hi,thanks Angrez, Should be :@browser.text_field,(ld...).set(Hello,\nHappy new year) On Fri, Jan 22, 2010 at 1:03 PM, Yuping Zhong littlezhong...@gmail.comwrote: On Thu, Oct 29, 2009 at 7:35 PM, Angrez Singh ang...@gmail.com wrote: try this: @browser.text_field,(ld...).set(Hello,\\nHappy new year) - Angrez On Thu, Oct 29, 2009 at 2:47 PM, yuping zhong littlezhong...@gmail.comwrote: Hi, Fill some info in the textarea,I use \n to turn to a newline. But it doesn't work. Such as: @browser.text_field,(ld...).set(Hello,\nHappy new year) But it still fill as: Hello,Happy new year I want to be: Hello, Happy new year Any idea of that? Thanks. -Zhong --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~--- -- 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