[wtr-general] Re: Watir on Linux

2010-08-12 Thread gs
Hi,

I have faced this issue many times on Linux, currently I work on Mac
and I have to say that there are all the time problems running Firefox
with Watir / FireWatir.

Sometimes I need to install JSSH few times - and magically after some
tries it works :)

Whenever I have the error ' Unable to connect to machine : 127.0.0.1
on
port 9997. Make sure that JSSh is properly installed and Firefox is
running with '-jssh' option '

the problem is that the Firefox is already running.

So its best to KILL IT using:   killall firefox-bin

After that Firefox works well.

I need to perform this action after each test as Firefox sometimes
stays in cache so good approach is to create a symlink in
your .bash_profile as:

alias kf='killall fiefox-bin'

and be sure to kill all instalnces firefox before running the test.

Hope that will help,
GS





On Aug 11, 5:20 pm, Brad bradask...@gmail.com wrote:
 Hello All,

 I've read and followed all the instructions on how to get Watir to run
 on Linux with FireFox.

 I'm using:
 Ruby version 1.8.7
 The Linux plugin jssh-3.6.x-Linux.xpi
 FireFox 3.6.8
 Watir 1.6.5

 When I do:
 require 'rubygems'
 require 'watir'

 Watir::Browser.default = 'firefox'
 b = Watir::Browser.new
 This brings up the FF Browser, yippie!
 But I get the dreaded: Unable to connect to machine : 127.0.0.1 on
 port 9997. Make sure that JSSh is properly installed and Firefox is
 running with '-jssh' option

 In the instructions it says to do: ./firefox-bin -jssh
 I'm kind of new to Linux but when I run that command I get an error ./
 firefox-bin: No such file or directory

 Hence Telnet isn't working either.

 Any help would be appreciated.

 Thanks.

 Brad

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] Where does watir stores object properties

2010-08-12 Thread Amit
Hi!

I want to know where does WATIR stores object properties.

For example, if i attach two windows

ie1 = Watir.IE.attach(:title,/sometext/)
ie2 = Watir.IE.attach(:title,/sometext/)

Now, we can do some action on both ie1  ie2.

I want to know where WATIR is storing this information so it can access
objects for both window.

Thank You

Amit

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Where does watir stores object properties

2010-08-12 Thread Željko Filipin
On Thu, Aug 12, 2010 at 2:42 PM, Amit amit.e...@gmail.com wrote:
 I want to know where WATIR is storing this information so it can access
objects for both window.

Why do you need that information?

To be precise, Watir is not storing it, but Ruby is (as far as I understand
it).

The most general answer would be in RAM. :)

Željko
--
watir.com - community manager
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them
vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Calendar Click

2010-08-12 Thread Super Kevy
I guess our test programmer does undestand the questions being
asked:
The question is about your system environment.  What is the version of
watir on your machine?

Željko gave you syntax to return the value via a command prompt.
His hint is a command line script.  In a *.rb file do this noting the
case sensitive syntax and would be about (4) Lines of code:

require rubygems
require watir
puts My version is: 
puts Watir::IE::VERSION


BTW: I Get 1.6.5 :)

Now if you read what mr van der Linden is saying. He suggests adding
sleep statements
Why? Maybe your browser is slow and the objects are not done rendering
to a completed state while your watir script is trying to execute
them.

So before or after some or your click commands you might want to wait
a couple seconds. Thats done with sleep as syntax
sleep 2000  # a 2 second pause.




On Aug 11, 8:06 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Wed, Aug 11, 2010 at 3:01 PM, madhu kumar madhu@gmail.com wrote:
  If i type this command directly in command prompt its working fine

 I do not know how to make this more explicit. If I do this in command
 prompt, I get 1.6.5. What do you get?

 C:\ruby -e 'require rubygems; require watir; puts Watir::IE::VERSION'
 1.6.5

 Željko

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Re: Calendar Click

2010-08-12 Thread Željko Filipin
On Thu, Aug 12, 2010 at 3:56 PM, Super Kevy kpe...@scholarshipamerica.org
wrote:
 sleep 2000  # a 2 second pause.

I think this will pause for 2000 seconds. :)

Željko

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Where does watir stores object properties

2010-08-12 Thread Amit
Hi Željko,

Actually, i was checking behavior of attach function in firewatir.
Currently, In firewatir, if we attach 2 windows then it loose control
over first one.

So, thats why i wanted to know wether it saves object properties or
not... and if yes then where..

Thank You
Amit

On 8/12/10, Željko Filipin zeljko.fili...@wa-research.ch wrote:
 On Thu, Aug 12, 2010 at 2:42 PM, Amit amit.e...@gmail.com wrote:
 I want to know where WATIR is storing this information so it can access
 objects for both window.

 Why do you need that information?

 To be precise, Watir is not storing it, but Ruby is (as far as I understand
 it).

 The most general answer would be in RAM. :)

 Željko
 --
 watir.com - community manager
 watirpodcast.com - host
 testingpodcast.com - audio podcasts on software testing. all of them
 vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: watir-general+unsubscr...@googlegroups.com


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] How to click on a span id?

2010-08-12 Thread Chan Nguyen
I want to go to this page http://norcalmls.rapmlsstg.com/
And then click on Find Properties - BAREIS MLS; however I don't know
how :( ? I tried:

browser.link( :id, findarealtor ).click

But compiler said: Unable to locate element?
Any idea?

Thanks,

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Where does watir stores object properties

2010-08-12 Thread Ethan
Firewatir saves things in javascript variables, and reuses the same
variables, so when you attach to a new window, it reuses the same variables
as it does for the old window and you lose references to that window.

On Thu, Aug 12, 2010 at 10:36, Amit amit.e...@gmail.com wrote:

 Hi Željko,

 Actually, i was checking behavior of attach function in firewatir.
 Currently, In firewatir, if we attach 2 windows then it loose control
 over first one.

 So, thats why i wanted to know wether it saves object properties or
 not... and if yes then where..

 Thank You
 Amit

 On 8/12/10, Željko Filipin zeljko.fili...@wa-research.ch wrote:
  On Thu, Aug 12, 2010 at 2:42 PM, Amit amit.e...@gmail.com wrote:
  I want to know where WATIR is storing this information so it can access
  objects for both window.
 
  Why do you need that information?
 
  To be precise, Watir is not storing it, but Ruby is (as far as I
 understand
  it).
 
  The most general answer would be in RAM. :)
 
  Željko
  --
  watir.com - community manager
  watirpodcast.com - host
  testingpodcast.com - audio podcasts on software testing. all of them
  vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi
 
  --
  Before posting, please read http://watir.com/support. In short: search
  before you ask, be nice.
 
  You received this message because you are subscribed to
  http://groups.google.com/group/watir-general
  To post: watir-general@googlegroups.com
  To unsubscribe: 
  watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com
 

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Re: Watir script editor

2010-08-12 Thread Ethan
I recommend notepad++
http://notepad-plus-plus.org/

actually, I recommend trying a few and seeing what you like best because, as
evidenced by this thread, what any particular person wants out of an editor
varies widely.

On Thu, Aug 12, 2010 at 03:50, Željko Filipin zeljko.fili...@wa-research.ch
 wrote:

 On Thu, Aug 12, 2010 at 3:00 AM, joedio joe...@comcast.net wrote:
  You may also want to check out any of thse other Free IDE's:

 I would recommend netbeans:

 http://netbeans.org/

 Željko

  --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] How to click on a span id?

2010-08-12 Thread Eric Mathiesen
Are you in a frame perhaps?  Try using show_frames and show_all_elements,
its saved me tons of time.

On Aug 12, 2010 8:31 AM, Chan Nguyen atbl1...@gmail.com wrote:

I want to go to this page http://norcalmls.rapmlsstg.com/
And then click on Find Properties - BAREIS MLS; however I don't know
how :( ? I tried:

browser.link( :id, findarealtor ).click

But compiler said: Unable to locate element?
Any idea?

Thanks,

--
Before posting, please read http://watir.com/support. In short: search
before you ask, be nice.

You received this message because you are subscribed to
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe:
watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Firewatir attach method doesn't work properly

2010-08-12 Thread Ethan
What version of firefox are you using?

On Thu, Aug 12, 2010 at 06:17, Amit amit.e...@gmail.com wrote:

 Hi Ethan,

 I tried below code:

 require 'watir-vapir'

 ff = Vapir::Firefox.new
 ff.start(www.google.com)



 After executing above code, A new instance of firefox opened and got
 following error. Could you please tell me why i'm getting this error?

 C:/Ruby/lib/ruby/gems/1.8/gems/vapir-firefox-1.7.0/lib/vapir-firefox/jssh_socket.rb:118:in
 `initialize': Something went wrong loading Prototype - message SyntaxError:
 unterminated comment\n SyntaxError: return not in function\n TypeError:
 this.getUTCMonth is not a function\n SyntaxError: syntax error\n
 SyntaxError: return not in function\n SyntaxError: syntax error\n
 SyntaxError: syntax error\n \n SyntaxError: syntax error\n \n
 SyntaxError: syntax error\n \n SyntaxError: syntax error\n \n function
 () {\nif (!this.currentlyExecuting) {\ntry {\n
 this.currentlyExecuting = true;\nthis.execute();\n}
 catch (e) {\n} finally {\nthis.currentlyExecuting =
 false;\n}\n}\n}\n SyntaxError: syntax error\n SyntaxError:
 syntax error\n SyntaxError: invalid label\n SyntaxError: invalid label\n
 SyntaxError: invalid label\n SyntaxError: invalid label\n SyntaxError:
 invalid label\n SyntaxError: invalid label\n SyntaxError: syntax error\n
 SyntaxError: syntax error\n \n \n \n \n \n \n \n \n \n \n \n \n
 \n \n \n \n \n \n \n \n \n \n \n SyntaxError: unterminated
 comment\n ReferenceError: document is not defined\n TypeError:
 this.replace is not a function\n SyntaxError: return not in function\n
 SyntaxError: invalid label\n SyntaxError: missing ; before statement\n
 SyntaxError: syntax error\n \n \n \n \n \n \n \n \n \n \n \n \n
 \n \n \n \n \n \n \n \n SyntaxError: unterminated comment\n
 SyntaxError: return not in function\n SyntaxError: syntax error\n \n \n
 \n \n \n ReferenceError: reference to undefined XML name *::*\n \n \n
 \n \n \n \n \n \n \n \n \n SyntaxError: return not in function\n
 SyntaxError: invalid label\n SyntaxError: invalid label\n SyntaxError:
 invalid label\n SyntaxError: invalid label\n SyntaxError: invalid label\n
 \n SyntaxError: invalid label\n SyntaxError: invalid label\n SyntaxError:
 invalid label\n SyntaxError: invalid label\n SyntaxError: invalid label\n
 \n \n \n \n SyntaxError: invalid label\n SyntaxError: invalid label\n
 SyntaxError: invalid label\n SyntaxError: syntax error\n SyntaxError:
 syntax error\n SyntaxError: return not in function\n SyntaxError: syntax
 error\n SyntaxError: return not in function\n SyntaxError: syntax error\n
 SyntaxError: syntax error\n \n function (object) {\nif (object 
 Object.isFunction(object.toTemplateReplacements)) {\nobject =
 object.toTemplateReplacements();\n}\nreturn
 this.template.gsub(this.pattern, function (match) {if (object == null)
 {return match[1] + \\;}var before = match[1] || \\;if (before ==
 \\) {return match[2];}var ctx = object, expr = match[3];var pattern =
 /^([^.[]+|\\[((?:.*?[^])?)\\])(\\.|\\[|$)/;match = pattern.exec(expr);if
 (match == null) {return before;}while (match != null) {var comp =
 match[1].startsWith(\[\) ? match[2].gsub(\]\, \]\) :
 match[1];ctx = ctx[comp];if (null == ctx || \\ == match[3]) {break;}expr =
 expr.substring(\[\ == match[3] ? match[1].length : match[0].length);match
 = pattern.exec(expr);}return before + String.interpret(ctx);});\n}\n
 SyntaxError: syntax error\n \n \n \n \n \n \n \n \n \n \n \n \n
 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
 \n \n \n \n \n \n \n \n \n \n \n \n \n SyntaxError: return not
 in function\n SyntaxError: invalid label\n SyntaxError: invalid label\n
 SyntaxError: invalid label\n SyntaxError: invalid label\n SyntaxError:
 invalid label\n SyntaxError: invalid label\n SyntaxError: invalid label\n
 SyntaxError: invalid label\n SyntaxError: invalid label\n SyntaxError:
 invalid label\n SyntaxError: invalid label\n SyntaxError: invalid label\n
 SyntaxError: invalid label\n SyntaxError: invalid label\n SyntaxError:
 invalid label\n SyntaxError: syntax error\n SyntaxError: syntax error\n
 SyntaxError: return not in function\n SyntaxError: return not in
 function\n ReferenceError: iterable is not defined\n \n SyntaxError:
 return not in function\n SyntaxError: syntax error\n SyntaxError: return
 not in function\n ReferenceError: string is not defined\n SyntaxError:
 return not in function\n SyntaxError: syntax error\n \n \n \n \n \n
 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
 \n \n \n \n \n \n SyntaxError: unterminated comment\n \n \n
 SyntaxError: return not in function\n SyntaxError: syntax error\n \n \n
 \n \n \n \n \n ReferenceError: Enumerable is not defined\n \n
 function reverse() {\n[native code]\n}\n \n TypeError: Object.extend
 is not a function\n \n \n \n \n \n \n \n SyntaxError: syntax
 error\n SyntaxError: return not in function\n SyntaxError: syntax error\n
 \n \n \n \n \n \n \n \n 

Re: [wtr-general] How to click on a span id?

2010-08-12 Thread Basim Baassiri
It is clear from the source the html element associated with
id findarealtor is a span and not a
try
browser.image(:name, findrealestateprof).click

On Thu, Aug 12, 2010 at 11:30 AM, Chan Nguyen atbl1...@gmail.com wrote:

 I want to go to this page http://norcalmls.rapmlsstg.com/
 And then click on Find Properties - BAREIS MLS; however I don't know
 how :( ? I tried:

 browser.link( :id, findarealtor ).click

 But compiler said: Unable to locate element?
 Any idea?

 Thanks,

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Firewatir attach method doesn't work properly

2010-08-12 Thread Amit
its 3.06

On Thu, Aug 12, 2010 at 8:56 PM, Ethan notet...@gmail.com wrote:

 What version of firefox are you using?


 On Thu, Aug 12, 2010 at 06:17, Amit amit.e...@gmail.com wrote:

 Hi Ethan,

 I tried below code:

 require 'watir-vapir'

 ff = Vapir::Firefox.new
 ff.start(www.google.com)



 After executing above code, A new instance of firefox opened and got
 following error. Could you please tell me why i'm getting this error?

 C:/Ruby/lib/ruby/gems/1.8/gems/vapir-firefox-1.7.0/lib/vapir-firefox/jssh_socket.rb:118:in
 `initialize': Something went wrong loading Prototype - message SyntaxError:
 unterminated comment\n SyntaxError: return not in function\n TypeError:
 this.getUTCMonth is not a function\n SyntaxError: syntax error\n
 SyntaxError: return not in function\n SyntaxError: syntax error\n
 SyntaxError: syntax error\n \n SyntaxError: syntax error\n \n
 SyntaxError: syntax error\n \n SyntaxError: syntax error\n \n function
 () {\nif (!this.currentlyExecuting) {\ntry {\n
 this.currentlyExecuting = true;\nthis.execute();\n}
 catch (e) {\n} finally {\nthis.currentlyExecuting =
 false;\n}\n}\n}\n SyntaxError: syntax error\n SyntaxError:
 syntax error\n SyntaxError: invalid label\n SyntaxError: invalid label\n
 SyntaxError: invalid label\n SyntaxError: invalid label\n SyntaxError:
 invalid label\n SyntaxError: invalid label\n SyntaxError: syntax error\n
 SyntaxError: syntax error\n \n \n \n \n \n \n \n \n \n \n \n \n
 \n \n \n \n \n \n \n \n \n \n \n SyntaxError: unterminated
 comment\n ReferenceError: document is not defined\n TypeError:
 this.replace is not a function\n SyntaxError: return not in function\n
 SyntaxError: invalid label\n SyntaxError: missing ; before statement\n
 SyntaxError: syntax error\n \n \n \n \n \n \n \n \n \n \n \n \n
 \n \n \n \n \n \n \n \n SyntaxError: unterminated comment\n
 SyntaxError: return not in function\n SyntaxError: syntax error\n \n \n
 \n \n \n ReferenceError: reference to undefined XML name *::*\n \n \n
 \n \n \n \n \n \n \n \n \n SyntaxError: return not in function\n
 SyntaxError: invalid label\n SyntaxError: invalid label\n SyntaxError:
 invalid label\n SyntaxError: invalid label\n SyntaxError: invalid label\n
 \n SyntaxError: invalid label\n SyntaxError: invalid label\n SyntaxError:
 invalid label\n SyntaxError: invalid label\n SyntaxError: invalid label\n
 \n \n \n \n SyntaxError: invalid label\n SyntaxError: invalid label\n
 SyntaxError: invalid label\n SyntaxError: syntax error\n SyntaxError:
 syntax error\n SyntaxError: return not in function\n SyntaxError: syntax
 error\n SyntaxError: return not in function\n SyntaxError: syntax error\n
 SyntaxError: syntax error\n \n function (object) {\nif (object 
 Object.isFunction(object.toTemplateReplacements)) {\nobject =
 object.toTemplateReplacements();\n}\nreturn
 this.template.gsub(this.pattern, function (match) {if (object == null)
 {return match[1] + \\;}var before = match[1] || \\;if (before ==
 \\) {return match[2];}var ctx = object, expr = match[3];var pattern =
 /^([^.[]+|\\[((?:.*?[^])?)\\])(\\.|\\[|$)/;match = pattern.exec(expr);if
 (match == null) {return before;}while (match != null) {var comp =
 match[1].startsWith(\[\) ? match[2].gsub(\]\, \]\) :
 match[1];ctx = ctx[comp];if (null == ctx || \\ == match[3]) {break;}expr =
 expr.substring(\[\ == match[3] ? match[1].length : match[0].length);match
 = pattern.exec(expr);}return before + String.interpret(ctx);});\n}\n
 SyntaxError: syntax error\n \n \n \n \n \n \n \n \n \n \n \n \n
 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
 \n \n \n \n \n \n \n \n \n \n \n \n \n SyntaxError: return not
 in function\n SyntaxError: invalid label\n SyntaxError: invalid label\n
 SyntaxError: invalid label\n SyntaxError: invalid label\n SyntaxError:
 invalid label\n SyntaxError: invalid label\n SyntaxError: invalid label\n
 SyntaxError: invalid label\n SyntaxError: invalid label\n SyntaxError:
 invalid label\n SyntaxError: invalid label\n SyntaxError: invalid label\n
 SyntaxError: invalid label\n SyntaxError: invalid label\n SyntaxError:
 invalid label\n SyntaxError: syntax error\n SyntaxError: syntax error\n
 SyntaxError: return not in function\n SyntaxError: return not in
 function\n ReferenceError: iterable is not defined\n \n SyntaxError:
 return not in function\n SyntaxError: syntax error\n SyntaxError: return
 not in function\n ReferenceError: string is not defined\n SyntaxError:
 return not in function\n SyntaxError: syntax error\n \n \n \n \n \n
 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
 \n \n \n \n \n \n SyntaxError: unterminated comment\n \n \n
 SyntaxError: return not in function\n SyntaxError: syntax error\n \n \n
 \n \n \n \n \n ReferenceError: Enumerable is not defined\n \n
 function reverse() {\n[native code]\n}\n \n TypeError: Object.extend
 is not a function\n \n \n \n \n \n \n \n SyntaxError: syntax
 error\n SyntaxError: 

[wtr-general] Re: How to click on a span id?

2010-08-12 Thread Chan Nguyen
Wow, very quick response. Awesome ;) Thanks alot, I actually use
href properites. It worked ^_^ . Another solution, Ruby power ;)


On Aug 12, 8:39 am, Eric Mathiesen mathiese...@gmail.com wrote:
 Are you in a frame perhaps?  Try using show_frames and show_all_elements,
 its saved me tons of time.

 On Aug 12, 2010 8:31 AM, Chan Nguyen atbl1...@gmail.com wrote:

 I want to go to this pagehttp://norcalmls.rapmlsstg.com/
 And then click on Find Properties - BAREIS MLS; however I don't know
 how :( ? I tried:

 browser.link( :id, findarealtor ).click

 But compiler said: Unable to locate element?
 Any idea?

 Thanks,

 --
 Before posting, please readhttp://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed 
 tohttp://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe:
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Problem finding a way to access a link

2010-08-12 Thread orde
If at all possible, try to get a developer to add an id tag (or some
unique element attribute like name or value) to the href so that you
can locate it more easily.

Otherwise, you could try something like this:

$browser.link(:href, /some_unique_part_of_href/).click
or
$browser.link(:href, /some_unique_part_of_href/).fire_event('onclick')

Hope it helps.

orde

On Aug 12, 11:14 am, Melissa meisa...@gmail.com wrote:
 I'm trying to get my Watir test to click the link below, and I'm
 coming up empty. I've tried accessing it by text, href, title, cell,
 table, link index and anything else I could think of. It's such messy
 code - I'm starting to wonder if it's even possible to get at it.

 Any thoughts on what I can use to click the link? Thanks for any tips!

 td nowrap title=Business Objects To Query width=100 height=20
 bgcolor=#efefe7 align=center style=font-size:90%;border-
 right:#94a6ce 1px solid;padding-right:4px;border-top:#94a6ce 1px
 solid;padding-left:4px;border-left:#94a6ce 1px solid;width:
 100px;color:black;border-bottom:#FF9900 1px solid;font-
 family:tahoma;height:20px;background-color:#efefe7;text-
 align:center;text-decoration:none;font face=tahoma color=black
 a
 href=javascript:document.aspnetForm.__ctl00_TemplateBody_DesignShell1_ctl0 
 0_ctl00_SectionTabStrip_State__.value='1';__doPostBack('ctl00$TemplateBody
 $DesignShell1$ctl00$ctl00$SectionTabStrip','1')
 font color=blackSources/font/a/font
 /td

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] How to verify the browser contains text in another page?

2010-08-12 Thread Chan Nguyen
Hi everyone,
I encountered a problem that when clicking on a link, it will open a
separate page. In other words, I will have 2 pages, so if I want to
verify the web is doing correctly? What should I do?
1. Verify text in a new opened page?
2. Verify some condition in current page?
For both 1  2, I don't really know how to start? Can anyone share me
an example?
Thanks,

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] How to access a href link which is a java script?

2010-08-12 Thread Chan Nguyen
Hi,
I used Firebug to locate the element, it's a text link. And here is
element's HTML:
a onclick=parent.document.getElementById('Main_Body').src =
'customizehomepage.aspx?hidMLS=BARI';return false; href=javascript:
\; class=sWhiteLinkCustomize Home Page/a
I tried :
ie.link( :class, sWhiteLink ).click
but Watir does not regconize it? Any idea?

Thanks,

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: How to access a href link which is a java script?

2010-08-12 Thread orde
Try:

ie.link(:class, sWhiteLink).fire_event('onclick')

For reference: 
http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Element.html#M000557

Hope it helps.

orde

On Aug 12, 1:43 pm, Chan Nguyen atbl1...@gmail.com wrote:
 Hi,
 I used Firebug to locate the element, it's a text link. And here is
 element's HTML:
 a onclick=parent.document.getElementById('Main_Body').src =
 'customizehomepage.aspx?hidMLS=BARI';return false; href=javascript:
 \; class=sWhiteLinkCustomize Home Page/a
 I tried :
 ie.link( :class, sWhiteLink ).click
 but Watir does not regconize it? Any idea?

 Thanks,

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: How to access a href link which is a java script?

2010-08-12 Thread Chan Nguyen
Thanks a lot order,
I got it worked when I tried :
ie.link( :text, Customize Home Page ).


On Aug 12, 1:48 pm, orde ohil...@gmail.com wrote:
 Try:

 ie.link(:class, sWhiteLink).fire_event('onclick')

 For 
 reference:http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Element.html#M000557

 Hope it helps.

 orde

 On Aug 12, 1:43 pm, Chan Nguyen atbl1...@gmail.com wrote:

  Hi,
  I used Firebug to locate the element, it's a text link. And here is
  element's HTML:
  a onclick=parent.document.getElementById('Main_Body').src =
  'customizehomepage.aspx?hidMLS=BARI';return false; href=javascript:
  \; class=sWhiteLinkCustomize Home Page/a
  I tried :
  ie.link( :class, sWhiteLink ).click
  but Watir does not regconize it? Any idea?

  Thanks,

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: How to verify the browser contains text in another page?

2010-08-12 Thread orde
1. Verify text in a new opened page?

browser.text.include?(string_to_verify)  # assuming you've attached
to the new page

 2. Verify some condition in current page?

Just an example: browser.link(:id, 'id').exists?

And you would probably want to put that into a begin/rescue/end
statement to handle a failure case gracefully:

begin
  # assert/verify something (e.g. browser.text.include?
(string_to_verify))
rescue
  # log the failure if it fails.
end

For some info on exception handling, check out
http://ruby-doc.org/docs/ProgrammingRuby/html/tut_exceptions.html (or
your favorite .rb reference doc).

Hope it helps.

orde




On Aug 12, 1:22 pm, Chan Nguyen atbl1...@gmail.com wrote:
 Hi everyone,
 I encountered a problem that when clicking on a link, it will open a
 separate page. In other words, I will have 2 pages, so if I want to
 verify the web is doing correctly? What should I do?
 1. Verify text in a new opened page?
 2. Verify some condition in current page?
 For both 1  2, I don't really know how to start? Can anyone share me
 an example?
 Thanks,

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Unable to locate checkbox element ?

2010-08-12 Thread Brendan Grainger
Is it just me or is the id you're looking for wrong:

 browser.checkbox( :id, 'icblModules_0' ).clear

should be

 browser.checkbox( :id, 'cblModules_2' ).clear


if you're trying to check the checkbox you have listed there.


On Aug 12, 2010, at 5:15 PM, Chan Nguyen wrote:

 Hi everyone,
 I followed a very simple example in Watir tutorial website
 http://wiki.openqa.org/display/WTR/Checkboxes.
 Here is the element HTML code:
 input type=checkbox checked=checked name=cblModules:2
 id=cblModules_2
 Then I tried
 browser.checkbox( :id, 'icblModules_0' ).clear
 but the compiler keeps complaining :
 
 C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:
 56:in `assert_exists': Unable to locate element, using :id,
 icblModules_0 (Watir::Exception::UnknownObjectException)
 
 Any idea?
 
 Thanks,
 
 -- 
 Before posting, please read http://watir.com/support. In short: search before 
 you ask, be nice.
 
 You received this message because you are subscribed to 
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: watir-general+unsubscr...@googlegroups.com

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Unable to locate checkbox element ?

2010-08-12 Thread arihan sinha
Have you given the correct id name?

it seems from html code the id is *cblModules_2* but you have used i*
cblModules_0*

On Thu, Aug 12, 2010 at 10:15 PM, Chan Nguyen atbl1...@gmail.com wrote:

 Hi everyone,
 I followed a very simple example in Watir tutorial website
 http://wiki.openqa.org/display/WTR/Checkboxes.
 Here is the element HTML code:
 input type=checkbox checked=checked name=cblModules:2
 id=cblModules_2
 Then I tried
 browser.checkbox( :id, 'icblModules_0' ).clear
 but the compiler keeps complaining :

 C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:
 56:in `assert_exists': Unable to locate element, using :id,
 icblModules_0 (Watir::Exception::UnknownObjectException)

 Any idea?

 Thanks,

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Unable to locate checkbox element ?

2010-08-12 Thread Ethan
deep nesting with most elements is no issue, but there is some mention of a
frame there. if it's inside a frame, then you'll need to access the frame
first, then the checkbox in the frame.

On Thu, Aug 12, 2010 at 18:42, Chan Nguyen atbl1...@gmail.com wrote:

 This is what I copied when using TestWise Recorder :
 # can't yet handle followFrame
 browser.checkbox(:id, cblModules_0).clear
 browser.checkbox(:id, cblModules_1).clear

 browser.checkbox(:id, cblModules_2).clear
 browser.checkbox(:id, cblModules_3).clear

 I think the reason that it failed because it's nested really deep. I can
 see a huge trtd slope when viewing with Firebug. Is there another way to
 get around this issue? Thanks



 On Thu, Aug 12, 2010 at 3:28 PM, Chan Nguyen atbl1...@gmail.com wrote:

 Hi Arihan,
 Yes, I checked the id name carefully. I don't really know why it failed,
 too obvious to be right :(
 Thanks,


 On Thu, Aug 12, 2010 at 3:04 PM, arihan sinha arihan.si...@gmail.comwrote:

 Have you given the correct id name?

 it seems from html code the id is *cblModules_2* but you have used i*
 cblModules_0*


 On Thu, Aug 12, 2010 at 10:15 PM, Chan Nguyen atbl1...@gmail.comwrote:

 Hi everyone,
 I followed a very simple example in Watir tutorial website
 http://wiki.openqa.org/display/WTR/Checkboxes.
 Here is the element HTML code:
 input type=checkbox checked=checked name=cblModules:2
 id=cblModules_2
 Then I tried
 browser.checkbox( :id, 'icblModules_0' ).clear
 but the compiler keeps complaining :

 C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:
 56:in `assert_exists': Unable to locate element, using :id,
 icblModules_0 (Watir::Exception::UnknownObjectException)

 Any idea?

 Thanks,

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com


  --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com



  --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Unable to locate checkbox element ?

2010-08-12 Thread Chan Nguyen
Hi Ethan,

Can you show me an example, I saw a Frame in Firebug. I couldn't copy the
whole HTML when viewing with FB, so weird.
iframe frameborder=0 onload=setUnload()
src=customizehomepage.aspx?hidMLS=SDNA class=MainBody name=Main_Body
id=Main_Body style=height: 124px;/iframe
And those checkboxes are nested into 2 more tables :(. How can I deal with
these kind of situations ?


On Thu, Aug 12, 2010 at 3:47 PM, Ethan notet...@gmail.com wrote:

 deep nesting with most elements is no issue, but there is some mention of a
 frame there. if it's inside a frame, then you'll need to access the frame
 first, then the checkbox in the frame.

 On Thu, Aug 12, 2010 at 18:42, Chan Nguyen atbl1...@gmail.com wrote:

 This is what I copied when using TestWise Recorder :
 # can't yet handle followFrame
 browser.checkbox(:id, cblModules_0).clear
 browser.checkbox(:id, cblModules_1).clear

 browser.checkbox(:id, cblModules_2).clear
 browser.checkbox(:id, cblModules_3).clear

 I think the reason that it failed because it's nested really deep. I can
 see a huge trtd slope when viewing with Firebug. Is there another way to
 get around this issue? Thanks



 On Thu, Aug 12, 2010 at 3:28 PM, Chan Nguyen atbl1...@gmail.com wrote:

 Hi Arihan,
 Yes, I checked the id name carefully. I don't really know why it failed,
 too obvious to be right :(
 Thanks,


 On Thu, Aug 12, 2010 at 3:04 PM, arihan sinha arihan.si...@gmail.comwrote:

 Have you given the correct id name?

 it seems from html code the id is *cblModules_2* but you have used i*
 cblModules_0*


 On Thu, Aug 12, 2010 at 10:15 PM, Chan Nguyen atbl1...@gmail.comwrote:

 Hi everyone,
 I followed a very simple example in Watir tutorial website
 http://wiki.openqa.org/display/WTR/Checkboxes.
 Here is the element HTML code:
 input type=checkbox checked=checked name=cblModules:2
 id=cblModules_2
 Then I tried
 browser.checkbox( :id, 'icblModules_0' ).clear
 but the compiler keeps complaining :

 C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:
 56:in `assert_exists': Unable to locate element, using :id,
 icblModules_0 (Watir::Exception::UnknownObjectException)

 Any idea?

 Thanks,

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com


  --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com



  --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com


  --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Re: Unable to locate checkbox element ?

2010-08-12 Thread Chan Nguyen
Hi all,
I think my situation is really bad, I check the HTML code. The nesting level
is very high. I check most of the tutorial, the example is so simple, while
my case is so complex :( ! Can anyone help me to access the check box
element in my case. Thank. ( HTML from firebug is attached )


On Thu, Aug 12, 2010 at 5:35 PM, orde ohil...@gmail.com wrote:

 Search this group for iframe:

 http://groups.google.com/group/watir-general/search?group=watir-generalq=%3Ciframe%3Eqt_g=Search+this+group

 Or check the tutorial:
 http://wiki.openqa.org/display/WTR/Printable+Tutorial
 and
 http://wiki.openqa.org/display/WTR/Printable+Tutorial#PrintableTutorial-Frames

 On Aug 12, 4:34 pm, Chan Nguyen atbl1...@gmail.com wrote:
  Hi Ethan,
 
  Can you show me an example, I saw a Frame in Firebug. I couldn't copy the
  whole HTML when viewing with FB, so weird.
  iframe frameborder=0 onload=setUnload()
  src=customizehomepage.aspx?hidMLS=SDNA class=MainBody
 name=Main_Body
  id=Main_Body style=height: 124px;/iframe
  And those checkboxes are nested into 2 more tables :(. How can I deal
 with
  these kind of situations ?
 
 
 
  On Thu, Aug 12, 2010 at 3:47 PM, Ethan notet...@gmail.com wrote:
   deep nesting with most elements is no issue, but there is some mention
 of a
   frame there. if it's inside a frame, then you'll need to access the
 frame
   first, then the checkbox in the frame.
 
   On Thu, Aug 12, 2010 at 18:42, Chan Nguyen atbl1...@gmail.com wrote:
 
   This is what I copied when using TestWise Recorder :
   # can't yet handle followFrame
   browser.checkbox(:id, cblModules_0).clear
   browser.checkbox(:id, cblModules_1).clear
 
   browser.checkbox(:id, cblModules_2).clear
   browser.checkbox(:id, cblModules_3).clear
 
   I think the reason that it failed because it's nested really deep. I
 can
   see a huge trtd slope when viewing with Firebug. Is there another
 way to
   get around this issue? Thanks
 
   On Thu, Aug 12, 2010 at 3:28 PM, Chan Nguyen atbl1...@gmail.com
 wrote:
 
   Hi Arihan,
   Yes, I checked the id name carefully. I don't really know why it
 failed,
   too obvious to be right :(
   Thanks,
 
   On Thu, Aug 12, 2010 at 3:04 PM, arihan sinha 
 arihan.si...@gmail.comwrote:
 
   Have you given the correct id name?
 
   it seems from html code the id is *cblModules_2* but you have used
 i*
   cblModules_0*
 
   On Thu, Aug 12, 2010 at 10:15 PM, Chan Nguyen atbl1...@gmail.com
 wrote:
 
   Hi everyone,
   I followed a very simple example in Watir tutorial website
  http://wiki.openqa.org/display/WTR/Checkboxes.
   Here is the element HTML code:
   input type=checkbox checked=checked name=cblModules:2
   id=cblModules_2
   Then I tried
   browser.checkbox( :id, 'icblModules_0' ).clear
   but the compiler keeps complaining :
 
   C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:
   56:in `assert_exists': Unable to locate element, using :id,
   icblModules_0 (Watir::Exception::UnknownObjectException)
 
   Any idea?
 
   Thanks,
 
   --
   Before posting, please readhttp://watir.com/support. In short:
 search
   before you ask, be nice.
 
   You received this message because you are subscribed to
  http://groups.google.com/group/watir-general
   To post: watir-general@googlegroups.com
   To unsubscribe: 
   watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com
 watir-general%2bunsubscr...@goog legroups.com
 
--
   Before posting, please readhttp://watir.com/support. In short:
 search
   before you ask, be nice.
 
   You received this message because you are subscribed to
  http://groups.google.com/group/watir-general
   To post: watir-general@googlegroups.com
   To unsubscribe: 
   watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com
 watir-general%2bunsubscr...@goog legroups.com
 
--
   Before posting, please readhttp://watir.com/support. In short: search
   before you ask, be nice.
 
   You received this message because you are subscribed to
  http://groups.google.com/group/watir-general
   To post: watir-general@googlegroups.com
   To unsubscribe: 
   watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com
 watir-general%2bunsubscr...@goog legroups.com
 
--
   Before posting, please readhttp://watir.com/support. In short: search
   before you ask, be nice.
 
   You received this message because you are subscribed to
  http://groups.google.com/group/watir-general
   To post: watir-general@googlegroups.com
   To unsubscribe: 
   watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com
 watir-general%2bunsubscr...@goog legroups.com

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 

Re: [wtr-general] Re: Unable to locate checkbox element ?

2010-08-12 Thread Chan Nguyen
I got it fixed ;). Thanks guys, much simpler than I thought.

fr = browser.frame( :id, Main_Body )
fr.checkbox( :id, cblModules_0 ).clear

So this problem is only with frame? Is there any other element that we
have to do this kind of nested call ?
What's the easiest way to access an element?
What's the most usable way to access an element? I asked this because when I
use Selenium, I often use xpath, but xpath seems very brittle, any
changes to the element can break the test code.
I would appreciate any feedback or recommendation. Thanks ;)

On Thu, Aug 12, 2010 at 8:36 PM, Chan Nguyen atbl1...@gmail.com wrote:

 Hi all,
 I think my situation is really bad, I check the HTML code. The nesting
 level is very high. I check most of the tutorial, the example is so simple,
 while my case is so complex :( ! Can anyone help me to access the check box
 element in my case. Thank. ( HTML from firebug is attached )



 On Thu, Aug 12, 2010 at 5:35 PM, orde ohil...@gmail.com wrote:

 Search this group for iframe:

 http://groups.google.com/group/watir-general/search?group=watir-generalq=%3Ciframe%3Eqt_g=Search+this+group

 Or check the tutorial:
 http://wiki.openqa.org/display/WTR/Printable+Tutorial
 and
 http://wiki.openqa.org/display/WTR/Printable+Tutorial#PrintableTutorial-Frames

 On Aug 12, 4:34 pm, Chan Nguyen atbl1...@gmail.com wrote:
  Hi Ethan,
 
  Can you show me an example, I saw a Frame in Firebug. I couldn't copy
 the
  whole HTML when viewing with FB, so weird.
  iframe frameborder=0 onload=setUnload()
  src=customizehomepage.aspx?hidMLS=SDNA class=MainBody
 name=Main_Body
  id=Main_Body style=height: 124px;/iframe
  And those checkboxes are nested into 2 more tables :(. How can I deal
 with
  these kind of situations ?
 
 
 
  On Thu, Aug 12, 2010 at 3:47 PM, Ethan notet...@gmail.com wrote:
   deep nesting with most elements is no issue, but there is some mention
 of a
   frame there. if it's inside a frame, then you'll need to access the
 frame
   first, then the checkbox in the frame.
 
   On Thu, Aug 12, 2010 at 18:42, Chan Nguyen atbl1...@gmail.com
 wrote:
 
   This is what I copied when using TestWise Recorder :
   # can't yet handle followFrame
   browser.checkbox(:id, cblModules_0).clear
   browser.checkbox(:id, cblModules_1).clear
 
   browser.checkbox(:id, cblModules_2).clear
   browser.checkbox(:id, cblModules_3).clear
 
   I think the reason that it failed because it's nested really deep. I
 can
   see a huge trtd slope when viewing with Firebug. Is there another
 way to
   get around this issue? Thanks
 
   On Thu, Aug 12, 2010 at 3:28 PM, Chan Nguyen atbl1...@gmail.com
 wrote:
 
   Hi Arihan,
   Yes, I checked the id name carefully. I don't really know why it
 failed,
   too obvious to be right :(
   Thanks,
 
   On Thu, Aug 12, 2010 at 3:04 PM, arihan sinha 
 arihan.si...@gmail.comwrote:
 
   Have you given the correct id name?
 
   it seems from html code the id is *cblModules_2* but you have used
 i*
   cblModules_0*
 
   On Thu, Aug 12, 2010 at 10:15 PM, Chan Nguyen atbl1...@gmail.com
 wrote:
 
   Hi everyone,
   I followed a very simple example in Watir tutorial website
  http://wiki.openqa.org/display/WTR/Checkboxes.
   Here is the element HTML code:
   input type=checkbox checked=checked name=cblModules:2
   id=cblModules_2
   Then I tried
   browser.checkbox( :id, 'icblModules_0' ).clear
   but the compiler keeps complaining :
 
  
 C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:
   56:in `assert_exists': Unable to locate element, using :id,
   icblModules_0 (Watir::Exception::UnknownObjectException)
 
   Any idea?
 
   Thanks,
 
   --
   Before posting, please readhttp://watir.com/support. In short:
 search
   before you ask, be nice.
 
   You received this message because you are subscribed to
  http://groups.google.com/group/watir-general
   To post: watir-general@googlegroups.com
   To unsubscribe: 
   watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com
 watir-general%2bunsubscr...@goog legroups.com
 
--
   Before posting, please readhttp://watir.com/support. In short:
 search
   before you ask, be nice.
 
   You received this message because you are subscribed to
  http://groups.google.com/group/watir-general
   To post: watir-general@googlegroups.com
   To unsubscribe: 
   watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com
 watir-general%2bunsubscr...@goog legroups.com
 
--
   Before posting, please readhttp://watir.com/support. In short:
 search
   before you ask, be nice.
 
   You received this message because you are subscribed to
  http://groups.google.com/group/watir-general
   To post: watir-general@googlegroups.com
   To unsubscribe: 
   watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com
 watir-general%2bunsubscr...@goog legroups.com
 
--
   Before posting, please readhttp://watir.com/support. In short: search
   before you ask, be 

[wtr-general] Running bat files in command prompt

2010-08-12 Thread cyril.gonsal...@mastek.com
Hi,

I want to run four bat file namely,

a.bat
b.bat
c.bat and d.bat in  command prompt.

(all files are located in D:\myprog\)

Also i want to keep opened command prompts i.e. I want a.bat, b.bat
etc to keep running at the same time in differenct command prompts.

i used

cmd_NamSer = D:\myprog\a.bat
cmd_NamSer1 = D:\myprog\b.bat
cmd_NamSer2= D:\myprog\c.bat
cmd_NamSer3 = D:\myprog\d.bat

system(cmd_NamSer)
system(cmd_NamSer1)
system(cmd_NamSer2)
system(cmd_NamSer3)

but while executing, it opens(executes) only 1st bat file i.e. a.bat

To open another one, i have to close 1st command prompt.

But i need to keep open all 4 command prompts with bat files running
in it.

Please help !!!

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com