[wtr-general] Re: firewatir form submit working???

2009-06-16 Thread Angrez Singh
So jason you mean to say if you are submitting "form" which is inside a
"Frame/IFrame" it doesn't work. But if that is directly on the page it
works. Am I correct here?

- Angrez

On Wed, Jun 17, 2009 at 3:37 AM, orde  wrote:

>
> Took a closer look.
>
> WORKS:
>
> http://www.jobware.de/
>
> ff.form(:index, 1).text_field(:index, 1).value = "ruby"
> ff.form(:index, 1).submit
>
> DOESN'T WORK:
>
> http://www.monster.de
>
> ff.form(:index, 1).text_field(:name, "ctl00$ctl00$searchBox
> $_ptbKeywords").value = "12345"
> ff.form(:index, 1).submit
>
> BUT THIS WORKS:
>
> browser.form(:index, 1).text_field(:name, "ctl00$ctl00$searchBox
> $_ptbKeywords").value = "12345"
> browser.link(:id, 'ctl00_ctl00_searchBox_MessagizedButton1').click
>
> The above link has an href attribute of
> "javascript:AjaxSearch_DoSearchRedirect()", so there's some redirect
> magic going on there.
>
> COMPARING THE FORM TAGS:
>
> http://www.jobware.de -  action="/st/index.html" name="easyfinder">
> http://www.monster.de -  action="home.aspx" method="post" name="aspnetForm">
>
> Since action="home.aspx" in form id="aspnetForm", it looks like the
> form data is sent to the home page, which then refreshes.
>
> Hope that helps...
>
> orde
>
> On Jun 16, 4:08 am, jason  wrote:
> > Orde,
> > thanks for looking at this.
> > unfortunately thats not the answer - maybe even a little off track.
> >
> > I am getting a lot cases where form.submit does not work as expected.
> >
> > another case iswww.monster.de
> >
> > ff.form(:index, 1).text_field(:name, "ctl00$ctl00$searchBox
> > $_ptbKeywords").value = "12345"
> > ff.form(:index, 1).submit
> >
> > The page renders no result from the form.submit (just a page
> > refresh).
> >
> > I thought that this might have something to do with the fact that that
> > the form has no submit buttons in it - so tried a from that does have
> > input buttons defined:
> >
> > https://careers3.accenture.com/taleo/taleo.asp?countryname=Germany
> >
> > ff.frame(:index, 1).form(:index, 1).text_field(:name,
> > "jobNumberSearch").value = "12345"
> > ff.frame(:index, 1).form(:index, 1).submit
> >
> > also here, the page renders no result from the form.submit (it just
> > refreshes the page)
> >
> > however, this page works just fine:
> >
> > http://www.jobware.de/
> >
> > ff.form(:index, 1).text_field(:index, 1).value = "ruby"
> > ff.form(:index, 1).submit
> >
> > and because i thought it might have somthing to do with iframes being
> > declaired on in the page i built a html document with the google
> > search page in the iframe,
> > that also worked as expected.
> >
> > So I really am stuck on why. I cannot figure out what the causing this
> > behaviour - it least if I knew,  could try fixing it.
> > has anyone got any ideas? I am more looking for the cause, rather than
> > a work around.
> >
> > thanks a million.
> >
> > Jason.
> >
> > On 15 Jun., 22:43, orde  wrote:
> >
> > > Looks like it's a cross-domain issue.
> >
> > > This code:
> >
> > > browser = Watir::IE.start('http://www.adecco.de/GERMAN/candidates/
> > > jobsuche/Pages/DEJobSuche.aspx')
> > > puts browser.show_frames
> >
> > > yields this message:
> >
> > > frame index: 1 Access Denied, seehttp://
> wiki.openqa.org/display/WTR/FAQ#access-denied
> >
> > > So, check outhttp://wiki.openqa.org/display/WTR/FAQ#access-denied.
> > > There are a few workarounds listed there (e.g. go directly to frame
> > > URL, add URL to browser's trusted sites, tweak etc/host file).
> >
> > > Hope that helps.
> >
> > > orde
> >
> > > PS: I'm using IE7 + watir 1.8.6 + ruby 1.6.2.
> >
> > > On Jun 15, 8:08 am, jason  wrote:
> >
> > > > HI I have a simple case that i cannot seem to make work. i.e. fill
> out
> > > > a form and submit it and see a new resulting page.
> >
> > > > here the real example:
> >
> > > > ff.goto("http://www.adecco.de/GERMAN/candidates/jobsuche/Pages/
> > > > DEJobSuche.aspx")
> > > > ff.frame(:index, 1).form(:index, 1).text_field(:index , 1).set
> > > > ("hello")
> > > > ff.frame(:index, 1).form(:index, 1).submit
> >
> > > > the submit_form method in firewatir does get called and the browser
> > > > does recieve the .submit command but
> > > > the page just rebuilds the form - even with the word hello that i set
> > > > it with.
> >
> > > > and ideas why a page is not being generated.
> >
> > > > hoping that i am missing somthing very simple.
> >
> > > > thanks for your help
> >
> > > > jason.
> >
> >
> >
>

--~--~-~--~~~---~--~~
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] Can't click on text in a cell which is located in undefined tables

2009-06-16 Thread shiran

Hi all,

Below name texts (Jayasooriya, Jayawardena) are located in cells of a
un named table. But they are working like links. When double click on
that text, method 'select submit' is getting called. I am not being
able to double click on this text using watir. Appreciate your help on
this problem with working code segments.


  


Jayasooriya  
Jayawardena


--~--~-~--~~~---~--~~
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: firewatir form submit working???

2009-06-16 Thread orde

Took a closer look.

WORKS:

http://www.jobware.de/

ff.form(:index, 1).text_field(:index, 1).value = "ruby"
ff.form(:index, 1).submit

DOESN'T WORK:

http://www.monster.de

ff.form(:index, 1).text_field(:name, "ctl00$ctl00$searchBox
$_ptbKeywords").value = "12345"
ff.form(:index, 1).submit

BUT THIS WORKS:

browser.form(:index, 1).text_field(:name, "ctl00$ctl00$searchBox
$_ptbKeywords").value = "12345"
browser.link(:id, 'ctl00_ctl00_searchBox_MessagizedButton1').click

The above link has an href attribute of
"javascript:AjaxSearch_DoSearchRedirect()", so there's some redirect
magic going on there.

COMPARING THE FORM TAGS:

http://www.jobware.de - 
http://www.monster.de - 

Since action="home.aspx" in form id="aspnetForm", it looks like the
form data is sent to the home page, which then refreshes.

Hope that helps...

orde

On Jun 16, 4:08 am, jason  wrote:
> Orde,
> thanks for looking at this.
> unfortunately thats not the answer - maybe even a little off track.
>
> I am getting a lot cases where form.submit does not work as expected.
>
> another case iswww.monster.de
>
> ff.form(:index, 1).text_field(:name, "ctl00$ctl00$searchBox
> $_ptbKeywords").value = "12345"
> ff.form(:index, 1).submit
>
> The page renders no result from the form.submit (just a page
> refresh).
>
> I thought that this might have something to do with the fact that that
> the form has no submit buttons in it - so tried a from that does have
> input buttons defined:
>
> https://careers3.accenture.com/taleo/taleo.asp?countryname=Germany
>
> ff.frame(:index, 1).form(:index, 1).text_field(:name,
> "jobNumberSearch").value = "12345"
> ff.frame(:index, 1).form(:index, 1).submit
>
> also here, the page renders no result from the form.submit (it just
> refreshes the page)
>
> however, this page works just fine:
>
> http://www.jobware.de/
>
> ff.form(:index, 1).text_field(:index, 1).value = "ruby"
> ff.form(:index, 1).submit
>
> and because i thought it might have somthing to do with iframes being
> declaired on in the page i built a html document with the google
> search page in the iframe,
> that also worked as expected.
>
> So I really am stuck on why. I cannot figure out what the causing this
> behaviour - it least if I knew,  could try fixing it.
> has anyone got any ideas? I am more looking for the cause, rather than
> a work around.
>
> thanks a million.
>
> Jason.
>
> On 15 Jun., 22:43, orde  wrote:
>
> > Looks like it's a cross-domain issue.
>
> > This code:
>
> > browser = Watir::IE.start('http://www.adecco.de/GERMAN/candidates/
> > jobsuche/Pages/DEJobSuche.aspx')
> > puts browser.show_frames
>
> > yields this message:
>
> > frame index: 1 Access Denied, 
> > seehttp://wiki.openqa.org/display/WTR/FAQ#access-denied
>
> > So, check outhttp://wiki.openqa.org/display/WTR/FAQ#access-denied.
> > There are a few workarounds listed there (e.g. go directly to frame
> > URL, add URL to browser's trusted sites, tweak etc/host file).
>
> > Hope that helps.
>
> > orde
>
> > PS: I'm using IE7 + watir 1.8.6 + ruby 1.6.2.
>
> > On Jun 15, 8:08 am, jason  wrote:
>
> > > HI I have a simple case that i cannot seem to make work. i.e. fill out
> > > a form and submit it and see a new resulting page.
>
> > > here the real example:
>
> > > ff.goto("http://www.adecco.de/GERMAN/candidates/jobsuche/Pages/
> > > DEJobSuche.aspx")
> > > ff.frame(:index, 1).form(:index, 1).text_field(:index , 1).set
> > > ("hello")
> > > ff.frame(:index, 1).form(:index, 1).submit
>
> > > the submit_form method in firewatir does get called and the browser
> > > does recieve the .submit command but
> > > the page just rebuilds the form - even with the word hello that i set
> > > it with.
>
> > > and ideas why a page is not being generated.
>
> > > hoping that i am missing somthing very simple.
>
> > > thanks for your help
>
> > > jason.
>
>
--~--~-~--~~~---~--~~
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] 30 Second Pauses When Scripting Hotmail

2009-06-16 Thread Bill Mosteller

I'm whipping up a script for Hotmail that signs on, goes to the inbox,
refreshes it, and opens a message from the inbox.  When the script
hits the inbox for the first time, or the message, it often pauses for
about 30 seconds.  I suspect it's waiting for the animated ad on the
right hand side of the window to finish, but I cannot prove it.

Thirty seconds is a long time for a script to waste, any ideas how to
get around this?

Thanks.

Bill Mosteller
Eloqua
--~--~-~--~~~---~--~~
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: Why Do Exists? Exceptions Occur?

2009-06-16 Thread wsm

I believe Mark has it right.  Crisper script, exists? is on line 65:

inboxtbl = $ie.frame(:id, 'UIFrame').table(:class, 'InboxTable')
rows = inboxtbl.row_count_excluding_nested_tables()
puts TimeStr() + "Back from in-box click, " + rows.to_s + " rows"

if inboxtbl.row(:index, (rows + 1).to_s).cell(:class, 'Sbj').exist?
puts TimeStr() + "Row " + (rows + 1).to_s + " exists!"
end # if exists?


similar results:
16:11:31 Back from in-box click, 12 rows
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in
`assert_ex
ists': Unable to locate element, using :index,
"13" (Watir::Exception::UnknownOb
jectException)
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
element.rb:126
:in `document'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
locator.rb:31:
in `each_element'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
locator.rb:38:
in `locate'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
container.rb:7
49:in `locate_tagged_element'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
table.rb:328:i
n `locate'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
element.rb:273
:in `exist?'
from C:/QA/ECS_Tests/HotWatir.rb:65

So I guess what we're saying is that the .exists? really applies only
to the immediately previous element, if an earlier element fails, we
get the exception.  That's orderly, if not desirable.

Bill Mosteller
Eloqua
--~--~-~--~~~---~--~~
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: Why Do Exists? Exceptions Occur?

2009-06-16 Thread Mark Anderson



> -Original Message-
> From: watir-general@googlegroups.com [mailto:watir-
> gene...@googlegroups.com] On Behalf Of Bill Mosteller
> Sent: Tuesday, June 16, 2009 7:49 AM
> To: Watir General
> Cc: arti.si...@eloqua.com
> Subject: [wtr-general] Why Do Exists? Exceptions Occur?
> 
> 
> A little loop to run through a Hotmail inbox (line 59 is the if
> statement):
> 
> puts TimeStr() + "Back from in-box click"
> sleep(1)
> 
> (1..20).each do |x|
>   inboxrow = $ie.frame(:id, 'UIFrame').table(:class, 'InboxTable').row
> (:index, x).cell(:class, 'Sbj')

I believe that the line above is where your exception is happening, and it
never reaches the .exist? test below.

If it can't find a row with :index of 13, then it is going to have trouble
finding a cell on that row.

I tend to overproof my code, confirming that each item in a chain exists so
that if the table isn't there, I get the error at the table level.

Let me know if you need additional help.

>   if inboxrow.exist? then
>   puts TimeStr() + x.to_s + " " + inboxrow.text
>   else
>   puts TimeStr() + "No row " + x.to_s
>   break
>   end # if inboxrow.exist?
>   end # each
> 
> The output:08:45:25 Back from in-box click
> 08:45:26 1 FW: * TEST * 20090615HTMLEmail - Friend * TEST *?
> 08:45:26 2 20090609HTMLEmail - Friend?
> 08:45:26 3 20090609HTMLEmail - Friend?
> 08:45:26 4 ECS Automation?
> 08:45:26 5 ECS Automation?
> 08:45:27 6 ECS Automation?
> 08:45:27 7 ECS Automation?
> 08:45:27 8 Welcome to Eloqua Conversion Suite?
> 08:45:27 9 sub?
> 08:45:27 10 Hotmail gives you more than just email in May?
> 08:45:27 11 "Check this out! You roc...@#$*"?
> 08:45:27 12 la di da?
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in
> `assert_ex
> ists': Unable to locate element, using :index, 13
> (Watir::Exception::UnknownObje
> ctException)
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> element.rb:126
> :in `document'
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> locator.rb:31:
> in `each_element'
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> locator.rb:38:
> in `locate'
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> container.rb:7
> 49:in `locate_tagged_element'
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> table.rb:328:i
> n `locate'
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> element.rb:273
> :in `exist?'
> from C:/QA/ECS_Tests/HotWatir.rb:59
> from C:/QA/ECS_Tests/HotWatir.rb:57:in `each'
> from C:/QA/ECS_Tests/HotWatir.rb:57
> 
> So what good is exists?; I know how to fix this, I replace
> the .exists?  with a begin/rescue/end bracket, but that seems like a
> lot of trouble when I would have expected exists? to have simply said
> "no."
 

__ Information from ESET NOD32 Antivirus, version of virus signature
database 4160 (20090616) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: FireWatir 1.6.2 unittests don't run

2009-06-16 Thread Andrew

I got past this error, but not all of the tests appear to be working
yet.  After getting the latest code from git, I copied the watir
\commonwatir\unittests\setup folder to Ruby\lib\ruby\gems\1.8\gems
\watir-1.6.2\unittests.  However, core_tests.rb won't run any tests,
but window_test.rb will run fine.

On May 4, 2:43 pm, satish  wrote:
> Hi Paul,
>
> Can you please let us know what you did you to get this Unit Tests to
> work. I am having same problem too.
> Can you please let me know where to create that folders and what to
> copy etc.
>
> Really appreate your help.
>
> Thank you very much.
> Satish.
>
> On Apr 9, 11:35 am, Moochie  wrote:
>
> > Paul,
>
> > Did you ever update the wiki?  I'm not finding you direction sto get
> > passed this issue, and since I'm hitting the issue, and believe others
> > will.  It would be nice to help other so the will not get a
> > frustrated.
>
> > Many thanks,
>
> > Darin
>
> > On Apr 7, 12:14 am, Paul Carvalho  wrote:
>
> > > I opened Jira ticket #WTR-301 to address the problem.  I'll look over
> > > the wiki information again and see what I can do to help clarify the
> > > steps to get up and running until the problem is addressed in a future
> > > gem release/install.  The present wiki information seems to be really
> > > geared towards developers, which is a big turn-off for me. ;)
>
> > > Cheers.  Paul C.
>
> > > (BTW, I apologised to Al off-list for my prior post.  I didn't mean to
> > > harsh on him.. I was just frustrated at the time I spent trying to
> > > resolve the problem when the only advice I could find on the wiki said
> > > that I need to "Get the source code and unit tests from SVN."  To me,
> > > asking a tester to install development tools to retrieve development
> > > source to make something work just seems like the wrong way to go, you
> > > know?  Ah well,suchis life sometimes in the Open Source world. ;)
> > > Keep moving forward.)
>
> > > On Apr 6, 11:27 am, Bret Pettichord  wrote:
>
> > > > Paul,
>
> > > > Could you update the wiki with this information please?
>
> > > > Bret- 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
-~--~~~~--~~--~--~---



[wtr-general] Re: Why Do Exists? Exceptions Occur?

2009-06-16 Thread James

I'm fairly sure your script isn't even getting to the "exists?"
line.
You need to tack it directly onto the $ie.frame.etc. instead of trying
to assign it to a variable first and then using ".exists?" on it.

I agree it would be nice if you could write it the way you have, but
it does make sense the way it's implemented.

James


On Jun 16, 8:48 am, Bill Mosteller  wrote:
> A little loop to run through a Hotmail inbox (line 59 is the if
> statement):
>
> puts TimeStr() + "Back from in-box click"
> sleep(1)
>
> (1..20).each do |x|
>         inboxrow = $ie.frame(:id, 'UIFrame').table(:class, 'InboxTable').row
> (:index, x).cell(:class, 'Sbj')
>         if inboxrow.exist? then
>         puts TimeStr() + x.to_s + " " + inboxrow.text
>         else
>         puts TimeStr() + "No row " + x.to_s
>         break
>         end # if inboxrow.exist?
>         end # each
>
> The output:08:45:25 Back from in-box click
> 08:45:26 1 FW: * TEST * 20090615HTMLEmail - Friend * TEST *?
> 08:45:26 2 20090609HTMLEmail - Friend?
> 08:45:26 3 20090609HTMLEmail - Friend?
> 08:45:26 4 ECS Automation?
> 08:45:26 5 ECS Automation?
> 08:45:27 6 ECS Automation?
> 08:45:27 7 ECS Automation?
> 08:45:27 8 Welcome to Eloqua Conversion Suite?
> 08:45:27 9 sub?
> 08:45:27 10 Hotmail gives you more than just email in May?
> 08:45:27 11 "Check this out! You roc...@#$*"?
> 08:45:27 12 la di da?
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in
> `assert_ex
> ists': Unable to locate element, using :index, 13
> (Watir::Exception::UnknownObje
> ctException)
>         from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> element.rb:126
> :in `document'
>         from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> locator.rb:31:
> in `each_element'
>         from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> locator.rb:38:
> in `locate'
>         from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> container.rb:7
> 49:in `locate_tagged_element'
>         from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> table.rb:328:i
> n `locate'
>         from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> element.rb:273
> :in `exist?'
>         from C:/QA/ECS_Tests/HotWatir.rb:59
>         from C:/QA/ECS_Tests/HotWatir.rb:57:in `each'
>         from C:/QA/ECS_Tests/HotWatir.rb:57
>
> So what good is exists?; I know how to fix this, I replace
> the .exists?  with a begin/rescue/end bracket, but that seems like a
> lot of trouble when I would have expected exists? to have simply said
> "no."
--~--~-~--~~~---~--~~
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: Automating a File uploader popup

2009-06-16 Thread George

Hi Natasha,

Have you tried file_field?

browser = Watir::IE.attach(...)
browser.file_field(:id,"open_file").set(filepath)


On Jun 16, 6:26 am, Natasha Ranney  wrote:
> Hi
>
> Thanks for the pointer.
>
> Unfortunately I don't think it will help, as it looks for HTML tag  type = file> :(
>
> But following is the piece of code that invokes the popup in my case:
>
> 
>                         
>                                 
>                                  class="middle">Upload your images to MOO
>
>                                 
>                         
>                 
>
> And the above is using a Flash method to invoke File uploader.
> Thanks,
> Natasha
>
> 
> From: Željko Filipin 
> To: watir-general@googlegroups.com
> Sent: Tuesday, 16 June, 2009 12:46:15
> Subject: [wtr-general] Re: Automating a File uploader popup
>
> On Tue, Jun 16, 2009 at 10:47 AM, Natasha  wrote:
> > One of the links on our company website invokes a file uploader popup
> > window.
>
> This does not work?
>
> http://wiki.openqa.org/display/WTR/File+Uploads
>
> Željko
> --http://watirpodcast.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir Podcast #25 with Dave Hoover of SafariWatir

2009-06-16 Thread George

I'd like to know if SafariWatir will one day be compatible with the
PC...


On Jun 16, 3:11 am, Željko Filipin  wrote:
> I am recording a podcast with Dave Hoover of SafariWatir this Friday 7pm
> utc.
>
> If you have any questions for him, please post them here.
>
> What is that podcast thing, you ask? Take a look:
>
> http://watirpodcast.com/
>
> Željko Filipin
--~--~-~--~~~---~--~~
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] Firewatir browser incorrectly reading URLs that contain a hash ("#") symbol

2009-06-16 Thread Aaron

I'm using Firewatir to navigate a website that uses AJAX links. When
one of these AJAX links are clicked, the URL "some/url" turns into
"some/url#something/else". However, the url field of my browser object
only returns "some/url"; it ignores whatever is after the hash symbol.
This only occurs when Watir uses Firefox; I get the full URL when
Watir uses Internet Explorer. Is it possible to work around this?

--~--~-~--~~~---~--~~
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: Automating a File uploader popup

2009-06-16 Thread Natasha Ranney
Hi

Thanks for the pointer. 

Unfortunately I don't think it will help, as it looks for HTML tag  :(

But following is the piece of code that invokes the popup in my case:





Upload your images to MOO





And the above is using a Flash method to invoke File uploader.
Thanks,
Natasha





From: Željko Filipin 
To: watir-general@googlegroups.com
Sent: Tuesday, 16 June, 2009 12:46:15
Subject: [wtr-general] Re: Automating a File uploader popup

On Tue, Jun 16, 2009 at 10:47 AM, Natasha  wrote:
> One of the links on our company website invokes a file uploader popup
> window.

This does not work?

http://wiki.openqa.org/display/WTR/File+Uploads

Željko
--
http://watirpodcast.com/



  
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Why Do Exists? Exceptions Occur?

2009-06-16 Thread Bill Mosteller

A little loop to run through a Hotmail inbox (line 59 is the if
statement):

puts TimeStr() + "Back from in-box click"
sleep(1)

(1..20).each do |x|
inboxrow = $ie.frame(:id, 'UIFrame').table(:class, 'InboxTable').row
(:index, x).cell(:class, 'Sbj')
if inboxrow.exist? then
puts TimeStr() + x.to_s + " " + inboxrow.text
else
puts TimeStr() + "No row " + x.to_s
break
end # if inboxrow.exist?
end # each

The output:08:45:25 Back from in-box click
08:45:26 1 FW: * TEST * 20090615HTMLEmail - Friend * TEST *?
08:45:26 2 20090609HTMLEmail - Friend?
08:45:26 3 20090609HTMLEmail - Friend?
08:45:26 4 ECS Automation?
08:45:26 5 ECS Automation?
08:45:27 6 ECS Automation?
08:45:27 7 ECS Automation?
08:45:27 8 Welcome to Eloqua Conversion Suite?
08:45:27 9 sub?
08:45:27 10 Hotmail gives you more than just email in May?
08:45:27 11 "Check this out! You roc...@#$*"?
08:45:27 12 la di da?
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in
`assert_ex
ists': Unable to locate element, using :index, 13
(Watir::Exception::UnknownObje
ctException)
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
element.rb:126
:in `document'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
locator.rb:31:
in `each_element'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
locator.rb:38:
in `locate'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
container.rb:7
49:in `locate_tagged_element'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
table.rb:328:i
n `locate'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
element.rb:273
:in `exist?'
from C:/QA/ECS_Tests/HotWatir.rb:59
from C:/QA/ECS_Tests/HotWatir.rb:57:in `each'
from C:/QA/ECS_Tests/HotWatir.rb:57

So what good is exists?; I know how to fix this, I replace
the .exists?  with a begin/rescue/end bracket, but that seems like a
lot of trouble when I would have expected exists? to have simply said
"no."
--~--~-~--~~~---~--~~
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] Running scripts on Mozilla 1.5.0.3

2009-06-16 Thread Durgesh Nadkarni
Hi,

I have installed the mozilla version 1.5.0.3. But when I ran the scripts it
gave me following error.

=
1) Error:
test_Gmail_Working(Gmail):
Watir::Exception::UnableToStartJSShException: 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

c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefox.rb:271:in
`set_defaults'

c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefox.rb:161:in
`initialize'

c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/browser.rb:65:in
`new'

c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/browser.rb:65:in
`new'
checkbox.rb:19:in `test_Gmail_Working'

1 tests, 0 assertions, 0 failures, 1 errors
>Exit code: 1
===

Previously the same scripts were working fine with Mozilla 3.0. So is there
any way to sort out this issue so that the same script would run on the
older version of Mozilla browser?

Thanks & Regards
Durgesh.

--~--~-~--~~~---~--~~
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: Automating a File uploader popup

2009-06-16 Thread Željko Filipin
On Tue, Jun 16, 2009 at 10:47 AM, Natasha  wrote:
> One of the links on our company website invokes a file uploader popup
> window.

This does not work?

http://wiki.openqa.org/display/WTR/File+Uploads

Željko
--
http://watirpodcast.com/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: What languages are supported using Watir

2009-06-16 Thread Željko Filipin
On Mon, Jun 15, 2009 at 3:02 PM, Rahul Ahuja  wrote:
> Which all languages mentioned below are supported by Watir.

What do you mean by that?

Can you enter text written in those languages in text box with Watir?

I know there are problems with some languages, but I also think there is way
to make it work in any language.

Željko
--
http://watirpodcast.com/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: firewatir form submit working???

2009-06-16 Thread jason

Orde,
thanks for looking at this.
unfortunately thats not the answer - maybe even a little off track.

I am getting a lot cases where form.submit does not work as expected.

another case is www.monster.de

ff.form(:index, 1).text_field(:name, "ctl00$ctl00$searchBox
$_ptbKeywords").value = "12345"
ff.form(:index, 1).submit

The page renders no result from the form.submit (just a page
refresh).

I thought that this might have something to do with the fact that that
the form has no submit buttons in it - so tried a from that does have
input buttons defined:

https://careers3.accenture.com/taleo/taleo.asp?countryname=Germany

ff.frame(:index, 1).form(:index, 1).text_field(:name,
"jobNumberSearch").value = "12345"
ff.frame(:index, 1).form(:index, 1).submit

also here, the page renders no result from the form.submit (it just
refreshes the page)

however, this page works just fine:

http://www.jobware.de/

ff.form(:index, 1).text_field(:index, 1).value = "ruby"
ff.form(:index, 1).submit

and because i thought it might have somthing to do with iframes being
declaired on in the page i built a html document with the google
search page in the iframe,
that also worked as expected.

So I really am stuck on why. I cannot figure out what the causing this
behaviour - it least if I knew,  could try fixing it.
has anyone got any ideas? I am more looking for the cause, rather than
a work around.

thanks a million.

Jason.









On 15 Jun., 22:43, orde  wrote:
> Looks like it's a cross-domain issue.
>
> This code:
>
> browser = Watir::IE.start('http://www.adecco.de/GERMAN/candidates/
> jobsuche/Pages/DEJobSuche.aspx')
> puts browser.show_frames
>
> yields this message:
>
> frame index: 1 Access Denied, 
> seehttp://wiki.openqa.org/display/WTR/FAQ#access-denied
>
> So, check outhttp://wiki.openqa.org/display/WTR/FAQ#access-denied.
> There are a few workarounds listed there (e.g. go directly to frame
> URL, add URL to browser's trusted sites, tweak etc/host file).
>
> Hope that helps.
>
> orde
>
> PS: I'm using IE7 + watir 1.8.6 + ruby 1.6.2.
>
> On Jun 15, 8:08 am, jason  wrote:
>
> > HI I have a simple case that i cannot seem to make work. i.e. fill out
> > a form and submit it and see a new resulting page.
>
> > here the real example:
>
> > ff.goto("http://www.adecco.de/GERMAN/candidates/jobsuche/Pages/
> > DEJobSuche.aspx")
> > ff.frame(:index, 1).form(:index, 1).text_field(:index , 1).set
> > ("hello")
> > ff.frame(:index, 1).form(:index, 1).submit
>
> > the submit_form method in firewatir does get called and the browser
> > does recieve the .submit command but
> > the page just rebuilds the form - even with the word hello that i set
> > it with.
>
> > and ideas why a page is not being generated.
>
> > hoping that i am missing somthing very simple.
>
> > thanks for your help
>
> > jason.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Watir Podcast #25 with Dave Hoover of SafariWatir

2009-06-16 Thread Željko Filipin
I am recording a podcast with Dave Hoover of SafariWatir this Friday 7pm
utc.

If you have any questions for him, please post them here.

What is that podcast thing, you ask? Take a look:

http://watirpodcast.com/

Željko Filipin

--~--~-~--~~~---~--~~
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] Automating a File uploader popup

2009-06-16 Thread Natasha

Hi All,

One of the links on our company website invokes a file uploader popup
window.

Techinally its a Flash method that calls the native OS file browser
and then handles the response.

Is it possible to automate it using Watir or any Ruby library?

Thanks,
Natasha
--~--~-~--~~~---~--~~
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] Automating a File uploader popup

2009-06-16 Thread Natasha

Hi All,

One of the links on our company website invokes a file uploader popup
window.

Techinally its a Flash method that calls the native OS file browser
and then handles the response.

Is it possible to automate it using Watir or any Ruby library?

Thanks,
Natasha
--~--~-~--~~~---~--~~
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 get static text value in a variable

2009-06-16 Thread Wesley Chen
I am sure you can fix the problem by yourself.
index =>1 means the first element
if index =>2, means the second element in the HTML


Thanks.
Wesley Chen.


On Tue, Jun 16, 2009 at 3:37 PM, Rahul Ahuja  wrote:

>
> Thanks Wesley,
>
> But the solutions shared by you doesn't seems to work for the reasons
> unknown to me.
> Getting an error: in `assert_exists': Unable to locate element,
> using :index, 1 (Watir::Exception::UnknownObjectException)
>
> Please suggest how to go ahead.
>
> Thanks & Warm Regards,
> Rahul
>
> On Jun 15, 10:20 am, Wesley Chen  wrote:
> > It is a little complex about the script.
> > If you want the comment before the first "Delete" button, you can try
> below
> > code:
> > $ie.button(:class =>"MS_OneMerck_CommentSubmit",
> > :index=>1).parent.parent.cell(:index,1).texte
> >
> > If you want the comment before the second "delete" button,
> > you just need change the :index =>2 in the code above.
> >
> > Expect it could help.
> >
> > Thanks.
> > Wesley Chen.
> >
> >
> >
> > On Mon, Jun 15, 2009 at 8:12 PM, Rahul Ahuja 
> wrote:
> >
> > > Hi,
> >
> > > I am facing a similar issue at some other page in the application.
> >
> > > Here is the sample HTML code for your ready reference:
> > > The text I am interested in is: "Comments: This is article is for
> > > validating comments enabling using automation "
> >
> > > The attributes associated with it are:
> >
> > > vAlign
> > > noWrap
> > > width
> >
> > > Comments: <> > > id="ctl00_m_g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef_litDisplayComments"
> > > style="DISPLAY: inline-block; WIDTH: 500px"> > > src="http://one-it.merck.com/_layouts/images/merck_images/
> > > comment_bubble.jpg<
> http://one-it.merck.com/_layouts/images/merck_images/%0Acomment_bubbl...>"
> > > /> TEST_MSS1:  > > noWrap width="400">Comments: This is article is for validating
> > > comments enabling using automation  > > align="right" width="100"> > > style="TEXT-ALIGN: center" onclick=" location.href='http://one-
> > > it.merck.com/Pages/SIT_TEST_AUTOMATION_CONTENTENABLED_POC.aspx?
> > > DId=234cf2d8-99b7-4c5a-811a-dfc863e11623<
> http://it.merck.com/Pages/SIT_TEST_AUTOMATION_CONTENTENABLED_POC.aspx..
> .>'"
> > > type="button"
> > > value="Delete" />  > > colSpan="4">June 15,2009 08:01AM  > > src="http://one-it.merck.com/_layouts/images/merck_images/
> > > comment_bubble.jpg<
> http://one-it.merck.com/_layouts/images/merck_images/%0Acomment_bubbl...>"
> > > /> TEST_MSS1:  > > noWrap width="400">Comments: This is article is for validating
> > > comments enabling using automation  > > align="right" width="100"> > > style="TEXT-ALIGN: center" onclick=" location.href='http://one-
> > > it.merck.com/Pages/SIT_TEST_AUTOMATION_CONTENTENABLED_POC.aspx?
> > > DId=234cf2d8-99b7-4c5a-811a-dfc863e11623<
> http://it.merck.com/Pages/SIT_TEST_AUTOMATION_CONTENTENABLED_POC.aspx..
> .>'"
> > > type="button"
> > > value="Delete" />  > > colSpan="4">June 15,2009 08:01AM  > > style="PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px;
> > > PADDING-TOP: 4px" colSpan="4">Add a
> > > Comment: > > TR> > > id="ctl00_m_g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef_txtComments"
> > > style="WIDTH: 500px; HEIGHT: 100px" name="ctl00$m
> > > $g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef$txtComments"> > > TR> > > id="ctl00_m_g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef_btnSubmit"
> > > onclick='javascript:WebForm_DoPostBackWithOptions(new
> > > WebForm_PostBackOptions("ctl00$m$g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef
> > > $btnSubmit", "", true, "CommentSubmit", "", false, false))'
> > > type="submit" name="ctl00$m$g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef
> > > $btnSubmit" value="Submit" />    > > id="ctl00_m_g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef_rfvRequiredField"
> > > style="VISIBILITY: hidden; COLOR: red"
> >
> > >
> controltovalidate="ctl00_m_g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef_txtCommen­ts"
> > > errormessage="Please, enter comment." validationGroup="CommentSubmit"
> > > initialvalue="" isvalid>Please, enter comment. > > TR> > > ms-standardheader?="">Thank you for your comments. > > TD>
> >
> > > On Jun 15, 3:23 am, Prajakta Jadhav  wrote:
> > > > try this -->
> > > > puts ie.cell(:class,"ms-OneMerckQuickPollMessageDisplayCell").text
> >
> > > > Prajakta
> >
> > > > On Mon, Jun 15, 2009 at 12:44 PM, Rahul Ahuja  >
> > > wrote:
> >
> > > > > But, there is no :id property associated with it.
> >
> > > > > Thanks Wesley Chen for your quick response.
> > > > > But, unfortunately the solution shared doesnt seem to work.
> >
> > > > > html code is:
> > > > > 
> > > > >   You have already submitted your response.
> > > > > 
> >
> > > > > Hence, the only attribute I have to access text is" class". Please
> > > > > suggest how to go ahead with it.
> >
> > > > > Thanks,
> > > > > Rahul
> >
> > > > > On Jun 15, 3:06 am, Wesley Chen  wrote:
> > > > > > puts ie.cell(:id,...).text
> > > > > > Thanks.
> > > > > > Wesley Chen.
> >
> > > > > > On Mon, Jun 15, 2009 at 2:48 PM, Rahul Ahuja <
> mightyah...@gmail.com>
> > > 

[wtr-general] Re: How to get static text value in a variable

2009-06-16 Thread Rahul Ahuja

Thanks Wesley,

But the solutions shared by you doesn't seems to work for the reasons
unknown to me.
Getting an error: in `assert_exists': Unable to locate element,
using :index, 1 (Watir::Exception::UnknownObjectException)

Please suggest how to go ahead.

Thanks & Warm Regards,
Rahul

On Jun 15, 10:20 am, Wesley Chen  wrote:
> It is a little complex about the script.
> If you want the comment before the first "Delete" button, you can try below
> code:
> $ie.button(:class =>"MS_OneMerck_CommentSubmit",
> :index=>1).parent.parent.cell(:index,1).texte
>
> If you want the comment before the second "delete" button,
> you just need change the :index =>2 in the code above.
>
> Expect it could help.
>
> Thanks.
> Wesley Chen.
>
>
>
> On Mon, Jun 15, 2009 at 8:12 PM, Rahul Ahuja  wrote:
>
> > Hi,
>
> > I am facing a similar issue at some other page in the application.
>
> > Here is the sample HTML code for your ready reference:
> > The text I am interested in is: "Comments: This is article is for
> > validating comments enabling using automation "
>
> > The attributes associated with it are:
>
> > vAlign
> > noWrap
> > width
>
> > Comments: <> > id="ctl00_m_g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef_litDisplayComments"
> > style="DISPLAY: inline-block; WIDTH: 500px"> > src="http://one-it.merck.com/_layouts/images/merck_images/
> > comment_bubble.jpg"
> > /> TEST_MSS1:  > noWrap width="400">Comments: This is article is for validating
> > comments enabling using automation  > align="right" width="100"> > style="TEXT-ALIGN: center" onclick=" location.href='http://one-
> > it.merck.com/Pages/SIT_TEST_AUTOMATION_CONTENTENABLED_POC.aspx?
> > DId=234cf2d8-99b7-4c5a-811a-dfc863e11623'"
> > type="button"
> > value="Delete" />  > colSpan="4">June 15,2009 08:01AM  > src="http://one-it.merck.com/_layouts/images/merck_images/
> > comment_bubble.jpg"
> > /> TEST_MSS1:  > noWrap width="400">Comments: This is article is for validating
> > comments enabling using automation  > align="right" width="100"> > style="TEXT-ALIGN: center" onclick=" location.href='http://one-
> > it.merck.com/Pages/SIT_TEST_AUTOMATION_CONTENTENABLED_POC.aspx?
> > DId=234cf2d8-99b7-4c5a-811a-dfc863e11623'"
> > type="button"
> > value="Delete" />  > colSpan="4">June 15,2009 08:01AM  > style="PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px;
> > PADDING-TOP: 4px" colSpan="4">Add a
> > Comment: > TR> > id="ctl00_m_g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef_txtComments"
> > style="WIDTH: 500px; HEIGHT: 100px" name="ctl00$m
> > $g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef$txtComments"> > TR> > id="ctl00_m_g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef_btnSubmit"
> > onclick='javascript:WebForm_DoPostBackWithOptions(new
> > WebForm_PostBackOptions("ctl00$m$g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef
> > $btnSubmit", "", true, "CommentSubmit", "", false, false))'
> > type="submit" name="ctl00$m$g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef
> > $btnSubmit" value="Submit" />    > id="ctl00_m_g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef_rfvRequiredField"
> > style="VISIBILITY: hidden; COLOR: red"
>
> > controltovalidate="ctl00_m_g_6dd8f05f_3c51_4cad_9326_440c39aaa8ef_txtCommen­ts"
> > errormessage="Please, enter comment." validationGroup="CommentSubmit"
> > initialvalue="" isvalid>Please, enter comment. > TR> > ms-standardheader?="">Thank you for your comments. > TD>
>
> > On Jun 15, 3:23 am, Prajakta Jadhav  wrote:
> > > try this -->
> > > puts ie.cell(:class,"ms-OneMerckQuickPollMessageDisplayCell").text
>
> > > Prajakta
>
> > > On Mon, Jun 15, 2009 at 12:44 PM, Rahul Ahuja 
> > wrote:
>
> > > > But, there is no :id property associated with it.
>
> > > > Thanks Wesley Chen for your quick response.
> > > > But, unfortunately the solution shared doesnt seem to work.
>
> > > > html code is:
> > > > 
> > > >       You have already submitted your response.
> > > > 
>
> > > > Hence, the only attribute I have to access text is" class". Please
> > > > suggest how to go ahead with it.
>
> > > > Thanks,
> > > > Rahul
>
> > > > On Jun 15, 3:06 am, Wesley Chen  wrote:
> > > > > puts ie.cell(:id,...).text
> > > > > Thanks.
> > > > > Wesley Chen.
>
> > > > > On Mon, Jun 15, 2009 at 2:48 PM, Rahul Ahuja 
> > > > wrote:
>
> > > > > > I want to compare value of textfield appeared on webpage with
> > > > > > expected
> > > > > > output.
>
> > > > > > for example:
> > > > > > One my web application; i have a submit button. Wheneven I click
> > it;
> > > > > > following message is displayed.
>
> > > > > > You have already submitted your response.
>
> > > > > > Following is the html code for it:
>
> > > > > > 
> > > > > >       You have already submitted your response.
> > > > > > 
>
> > > > > > Please do let me know spe

[wtr-general] Re: Languages supported by Watir

2009-06-16 Thread Rahul Ahuja

Yes.

On Jun 15, 11:35 pm, Alister Scott  wrote:
> Do you mean in your web application that you are testing?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---