Re: [wtr-general] Re: How to turn to another newline when input the info in the textarea?

2010-01-21 Thread Yuping Zhong
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 wrote: > > > On Thu, Oct 29, 2009 at 7:35 PM, Angrez Singh wrote: > >> try this: >> >> @browser.text_field,(ld"...").set("Hello,\\nHappy new year") >> >> - Angr

Re: [wtr-general] Re: How to turn to another newline when input the info in the textarea?

2010-01-21 Thread Yuping Zhong
On Thu, Oct 29, 2009 at 7:35 PM, Angrez Singh wrote: > try this: > > @browser.text_field,(ld"...").set("Hello,\\nHappy new year") > > - Angrez > > On Thu, Oct 29, 2009 at 2:47 PM, yuping zhong wrote: > >> >> Hi, >> >> Fill some info in the textarea,I use "\n" to turn to a newline. But it >> doesn

Re: [wtr-general] Re: popup handling

2010-01-21 Thread Wesley Chen
If the methods above can't work, you can try the one below. # When it displays the "OKCancel" or "OK" pop up, it will click it def popup_clicker(ie = $ie, buttonname= "OK") require 'watir/contrib/enabled_popup' hwnd = ie.enabled_popup(15) if(hwnd) #yeah! a popup

[wtr-general] Re: find out the value in select list

2010-01-21 Thread Shlomit Gazit
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 wrote: > Hello Orde, > > I ca

[wtr-general] Re: find out the value in select list

2010-01-21 Thread Shlomit Gazit
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 wrote: > Try .getSelectedItems[0] to get the currently selected option.

[wtr-general] Re: find out the value in select list

2010-01-21 Thread orde
Try .getSelectedItems[0] to get the currently selected option. Try .getAllContents to get an array of the available options. This info from http://groups.google.com/group/watir-general/browse_thread/thread/22400557ce0ef33d/d2b1ff0fe5559bf4?lnk=gst&q=get+value+of+select_list#d2b1ff0fe5559bf4 Once

Re: [wtr-general] Re: find out the value in select list

2010-01-21 Thread Shlomit Gazit
Hello Tiffany and Orde, getSelectedOptions gave me:undefined method `getSelectedOptions' for # 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*) #

Re: [wtr-general] Re: :after? and :before? methods not supported for all elements?

2010-01-21 Thread Charley Baker
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 wrot

[wtr-general] Re: Drag and Drop using Watir

2010-01-21 Thread tester86
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 cli

RE: [wtr-general] RE: Drag and Drop using Watir

2010-01-21 Thread Alan Baird
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

Re: [wtr-general] Re: :after? and :before? methods not supported for all elements?

2010-01-21 Thread marekj
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/camp

[wtr-general] RE: Drag and Drop using Watir

2010-01-21 Thread tester86
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.

[wtr-general] find out the value in select list

2010-01-21 Thread Shlomit Gazit
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

[wtr-general] Re: popup handling

2010-01-21 Thread orde
I think you need to use click_no_wait on this line: ie.button(:value, 'Click').click Also, lots of info here: http://wiki.openqa.org/display/WTR/Pop+Ups Hope it helps... orde On Jan 21, 9:28 am, Naveen devadass wrote: > Hi All, > >  I am using following script to handle the pop up > > but th

[wtr-general] popup handling

2010-01-21 Thread Naveen devadass
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

[wtr-general] Re: Getting undefined method when trying to check a checkbox

2010-01-21 Thread QAguy
Thanks. Figured out what the issue was based on your advice. Appericate it. On Jan 21, 7:24 am, Željko Filipin wrote: > On Wed, Jan 20, 2010 at 9:50 PM, QAguy wrote: > > browser.checkbox(:id, "select_all_checkbox").set > > This should work but is giving me: undefined method `checkbox' for > >

Re: [wtr-general] WatiN versus WatiR

2010-01-21 Thread Felipe Knorr Kuhn
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

Re: [wtr-general] WatiN versus WatiR

2010-01-21 Thread Željko Filipin
On Wed, Jan 20, 2010 at 10:27 PM, .WatiNNewbie 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

Re: [wtr-general] how to click on a row in a table

2010-01-21 Thread Željko Filipin
On Thu, Jan 21, 2010 at 10:54 AM, raju 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 "W

Re: [wtr-general] Re: :after? and :before? methods not supported for all elements?

2010-01-21 Thread Željko Filipin
On Thu, Jan 21, 2010 at 9:48 AM, Jarmo Pertman 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 anyw

Re: [wtr-general] Getting undefined method when trying to check a checkbox

2010-01-21 Thread Željko Filipin
On Wed, Jan 20, 2010 at 9:50 PM, QAguy 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

[wtr-general] Re: how to click on a row in a table

2010-01-21 Thread raju
Super its working. Thanks for ur quick reply Thanks, Raju On Jan 21, 4:00 pm, Wesley Chen 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

Re: [wtr-general] how to click on a row in a table

2010-01-21 Thread Wesley Chen
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

[wtr-general] how to click on a row in a table

2010-01-21 Thread raju
how to click on a row in a table html code is: UserID Username Name Email Registe

[wtr-general] Re: :after? and :before? methods not supported for all elements?

2010-01-21 Thread Jarmo Pertman
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, ple

[wtr-general] Re: :after? and :before? methods not supported for all elements?

2010-01-21 Thread Jarmo Pertman
That's what was my question - is it expected behaviour that text_field should not be accessed this way. If you look here http://wiki.openqa.org/display/WTR/Ways+Available+To+Identify+HTML+Element then there is an example of using :after? (although not :before?, though this is also available), but