[wtr-general] Re: It doesn't work when clicking a button in Updatepanel

2011-06-27 Thread Green Yin
Yes, I can sure that. The page will go to the next page if clicking the Add button by manually. On Jun 22, 3:13 pm, Ankur Gera ankurg...@gmail.com wrote: Hi Green,  Are your sure that after clicking btnAdd button manually you go to the next page? Thanks Regards, Ankur Gera On Mon,

[wtr-general] Re: It doesn't work when clicking a button in Updatepanel

2011-06-27 Thread Green Yin
Hi Ashok, I've tried with the regular expressions, the page just still refresh without going to next page. I can see that the button has been clicked by automatically, that is, the button has been located. Before we didn't use the UpdatePannel control, we never met the problem. On Jun 22, 9:17 

[wtr-general] Re: It doesn't work when clicking a button in Updatepanel

2011-06-27 Thread Green Yin
Hi Chuck, Sorry, I never use the IRB, but I could sure that it wasn't a time issue. I thought it was related to the updatepannel control, before we never met the problem before applying the control. On Jun 23, 9:07 am, Chuck van der Linden sqa...@gmail.com wrote: On Jun 20, 3:08 am, Green Yin

[wtr-general] Re: Support More HTML Tags -- Watir Gem Add-on?

2011-06-27 Thread Alastair Montgomery
When you say it didn't work were there syntax errors or did it just didn't work? Try pointing your question over at StackOverflow.com tagged with Ruby and Watir tags, I've had good help on from there. -- Before posting, please read http://watir.com/support. In short: search before you ask, be

Re: [wtr-general] what is the main scenario of watirgrid?

2011-06-27 Thread Željko Filipin
On Mon, Jun 27, 2011 at 5:06 AM, Ekin Han nbkhic...@gmail.com wrote: I have used the watirgrid last week, but i still do not know the main scenario of watir grid. You are using the tool, but you do not know what it is supposed to do? So what is the main objective of this framework? From

[wtr-general] Re: How to make the scripts more effective at slow connection?

2011-06-27 Thread Danijel
Hi Amit, Like said joedio, you need to add when you are loading new pages, every page has it's own recognizing element, until this element is present then wait, after finding element you can continiue with test execution. it's same for AJAX. br,Dani -- Before posting, please read

Re: [wtr-general] Re: How to make the scripts more effective at slow connection?

2011-06-27 Thread Amit Bobade
Thanks for your valuable advice. :) On Mon, Jun 27, 2011 at 2:24 PM, Danijel danijel.vuko...@gmail.com wrote: Hi Amit, Like said joedio, you need to add when you are loading new pages, every page has it's own recognizing element, until this element is present then wait, after finding

Re: [wtr-general] Re: Watir 1.8.7 how to use cruisecontrol for an unattended job

2011-06-27 Thread Charles Richard
One more question if that's ok. If i setup another separate Hudson master instance on my server where i want my ruby scripts to run, should that work as well? I tried this as I've read online that having a master hudson linux instance and a slave Windows instance could be quite problematic.

[wtr-general] Re: Watir 1.8.7 how to use cruisecontrol for an unattended job

2011-06-27 Thread Hugh McGowan
We've got it set up with a master Linux and Windows slaves and have not had an issue. I was not able to get the slave running headless, however, because the script on the windows slave would not run with the correct permissions. We login as the user we want it to run as and launch the process from

[wtr-general] How to get list content

2011-06-27 Thread Parag Dave
Hi All Geeks, Here i have some easy question ;) (That's why i am asking) $browser.table(:id, 'recent_records').to_a returns the number of row in the table, but if i want to count the number of list ul li id=32 li id=33 li id=34 li id=35 ul Here

Re: [wtr-general] Re: Jssh Socket error

2011-06-27 Thread Abe Heward
Tried updating to Ruby 1.9.2 and Watir 1.9.0 today. Immediately ran into this same problem again when I tried to run a test script with Firefox. Firefox doesn't want to open. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

[wtr-general] Re: How to get list content

2011-06-27 Thread orde
This should point you in the right direction: http://rdoc.info/gems/watir/1.9.0/Watir/Container#lis-instance_method Hope it helps. orde On Jun 27, 9:13 am, Parag Dave parag...@gmail.com wrote: Hi All Geeks, Here i have some easy question ;) (That's why i am asking) $browser.table(:id,

Re: [wtr-general] Re: Watir 1.8.7 how to use cruisecontrol for an unattended job

2011-06-27 Thread Charles Richard
Hi Hugh, Thanks for the reply. I do require a headless setup and i just discovered about Celerity today which is basically a headless Watir so i think I'll use this if I can. I already tried one script and it ran fine on my linux box. One script which is more complicated gave me an error but

[wtr-general] Watir-Webdriver alters text containing tabs.

2011-06-27 Thread Abe Heward
Reporting this here because I'm not sure where else to post it and also because it's perhaps already been reported as a bug. I have a web page that contains tab-delimited text. When I go to that page using Watir and the following code... x = browser.text p x The output I get looks like this:

[wtr-general] Attach to existing window in Watir-Webdriver

2011-06-27 Thread Abe Heward
Watir has the .attach method. How do I attach to an existing browser window using watir-webdriver? I need this because, for example, I have scripts that delete the browser cookies file and if they can't do this they look to see if there are open browser windows, close them, then try to delete

Re: [wtr-general] Attach to existing window in Watir-Webdriver

2011-06-27 Thread Abe Heward
Found something that will hopefully be helpful... http://www.natontesting.com/2009/09/21/kill-process-by-name-using-ruby-on-windows/ -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

Re: [wtr-general] Watir-Webdriver alters text containing tabs.

2011-06-27 Thread Jari Bakken
On Mon, Jun 27, 2011 at 10:13 PM, Abe Heward abe.hew...@gmail.com wrote: It's not an HTML page. It's a .log file, containing straight text, including the tabs. What's the purpose of using Watir for this? Why not just read the file from Ruby? -- Before posting, please read

Re: [wtr-general] Watir-Webdriver alters text containing tabs.

2011-06-27 Thread Abe Heward
It's been a simple matter of putting the link to the file in the browser address bar. I suppose I can switch to opening it directly, though. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

[wtr-general] Re: what is the main scenario of watirgrid?

2011-06-27 Thread @90kts
Essentially what Željko said. Most people that email me about it seem to be using watirgrid to distribute tests over a small amount (less than 10) remote machines. Sometimes in order to speed up tests (manually carved up and distributed) or to run the same test but in different browsers at the

Re: [wtr-general] Watir-Webdriver alters text containing tabs.

2011-06-27 Thread Abe Heward
Ah. Okay. Here's why I can't do that: Because the file is on a server whose drive is not mapped locally. So, File.open(http://69.71.52.209/tmp/fb-pixels.log;, r) results in a The system cannot find the file specified. error. -- Before posting, please read http://watir.com/support. In short:

[wtr-general] Re: It doesn't work when clicking a button in Updatepanel

2011-06-27 Thread Chuck van der Linden
You should learn to use IRB, it is a very useful means of developing and debugging ruby code. http://lmgtfy.com/?q=how+to+use+ruby+irb You are probably correct that the 'problem' is the updatepanel control. The solution maybe as simple as allowing it a second or two for client side code to run

Re: [wtr-general] Watir-Webdriver alters text containing tabs.

2011-06-27 Thread Jari Bakken
On Mon, Jun 27, 2011 at 11:23 PM, Abe Heward abe.hew...@gmail.com wrote: Ah. Okay. Here's why I can't do that: Because the file is on a server whose drive is not mapped locally. So, File.open(http://69.71.52.209/tmp/fb-pixels.log;, r) results in a The system cannot find the file specified.

Re: [wtr-general] Watir-Webdriver alters text containing tabs.

2011-06-27 Thread Abe Heward
Sweetness! You rock. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com

[wtr-general] Use of $browser.back (IE 8 vs IE7, or 1.8.7 vs 1.8.6)

2011-06-27 Thread BillyMobilly
On IE 7 with ruby version 1.8.6, the use of $browser.back() has never been a problem. But in IE 8 with ruby version 1,8,7, it doesn't work reliably, it keeps failing (passes with first use but subsequent uses seem to fail). I get a method_missing message. After verifying text I simply use

Re: [wtr-general] counting headers

2011-06-27 Thread Raveendran P
Hi Anne, I have no idea how Watir can do this... But i can give the ruby solution to you Solution: 1. Collect the entire HTML of the page -- @text=@ie.html 2. Search the text h2 in that sting -- @text.scan(h2).length Example a=Raveendran -- h2Test1/h2h2test2/h2 COUNT= a.scan(h2).length