[wtr-general] Re: How to click the graybutton?

2009-08-27 Thread Prajakta Jadhav
you need to write something like:

@browser.link(:href, "https://ome.swimconnection.com/ome/users/new";).click

 indicates a link. Its not a button.

-Prajakta

On Thu, Aug 27, 2009 at 3:42 PM, yuping zhong wrote:

> Dear All,
> I am an new user of Watir.
> Right now, I meet a issue that how to click the graybutton. Please see the
> attach,I support more info in the screenshot.
> Looks like this button is not a common button.
> I try the following following method,but it doesn't work.
> @browser.button(:value,"Signup Now!").click
>
> I hope someone can give me a hand!
>
> If the info is not enough, go to the following website and you can find
> this button.
> https://ome.swimconnection.com
>
> Many thanks!
>
> -Zhong
>
> >
>

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



[wtr-general] Re: Setting innerHTML of a div using Watir.

2009-09-17 Thread Prajakta Jadhav
Can you post the html code of this page?
Are there any frames outside the div?

On Fri, Sep 18, 2009 at 5:34 AM, Brian Rosenthal wrote:

> Hi,
>
> We’re using an “editable div”, and we need to be able to set its contents
> using Watir (in IE).  What’s the best way to do that?
>
> It doesn’t seem to respond to IE.text_field(...)... And
> IE.div(...).innerHTML does not work (nor set).
>
> (this syntax)
> 
>
> Thanks,
> Brian
> >
>

--~--~-~--~~~---~--~~
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: Need to print results of Mulitple scripts in one HTML file

2009-10-08 Thread Prajakta Jadhav
Shouldn't be a problem. Open the same html file in both the scripts for
logging the results. It will log the results one after another in the same
html file.

-Prajakta

On Fri, Oct 9, 2009 at 10:31 AM, Bindhu  wrote:

>
> Hi All,
>
> In batch file I have included 2 scripts to be executed. After a
> successful execution of this batch I want to print the results in one
> HTML file.
> As of now I am able to print the one HTML file for one script. But I
> want a single HTML file to be printed for multiple scripts which I
> have inculded on batch file.
> Please guide me.
>
> Right now I am using the code which is available in wiki..
>
> Thanks
> >
>

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



[wtr-general] Re: Need to print results of Mulitple scripts in one HTML file

2009-10-08 Thread Prajakta Jadhav
Sorry Bindhu, I have never used CLReport. so can't help you on it.
Though I can share with you the sample script that I use. It goes as follows
->

  def open_log_file(log_name)
if(File.exist?(log_name))   #If the log file already
exists, attach the new results to it
  @@log = File.open(log_name,"a")  #Log the test details in Log.html
file
  @@log.puts("")
else   #If the log file
does not already exist, create a new file
  @@log = File.open(log_name,"a")  #Log the test details in Log.html
file
  @@log.puts("")
  @@log.puts("")
end
  end

  def log_pass(summary, description, result)

@@log.puts("#{summary}#{description}#{result}Pass") #Log success
  end

  def log_fail(summary, description, result)

@@log.puts("#{summary}#{description}#{result}Fail") #Log failure
  end

  def test_01_new_test
open_log_file("Test_Results.html")
@@log.puts("Test For Forgot Password
Functionality")
log_pass("Test_Forgot_Password", "Sending mail for forgot password",
"Successful") #Log Success
log_fail("Test_Forgot_Password", "Sending mail for forgot password",
"Failed") #Log Failure
  end

-Prajakta


On Fri, Oct 9, 2009 at 11:36 AM, Bindhu  wrote:

>
> Thanks Prajakta and Rohan for ur quick reply,
> And sorry to bother you again...
>
> I the below code in every script
>
> r = CLReport.new()
> testReport = r.createReport('D:\\Automation\\ReportName')
>
><<<<< Script to be executed>>>>>>
>
> end
> r.addtoReport("testReport","TC_001", 'PASSED', "New Account Created
> for Regular Savings,Personal (10) and class code of Individual with
> Account No :")
> r.finishReport(testReport)
> rescue
>   r.addtoReport(testReport, 'Test crashed with reason '+$!, 'FAILED',
> 'Test crashed!')
>  r.finishReport(testReport)
>
> And based on ur sugesstion I m trying to use CLReport.open(). But it
> is not working. Please extend ur help.
>
> Rohan,
> I m really not aware what is rake.Can you please provide me some
> example.
>
> Thanks in Advance
>
> On Oct 9, 10:20 am, Prajakta Jadhav  wrote:
> > Shouldn't be a problem. Open the same html file in both the scripts for
> > logging the results. It will log the results one after another in the
> same
> > html file.
> >
> > -Prajakta
> >
> >
> >
> > On Fri, Oct 9, 2009 at 10:31 AM, Bindhu 
> wrote:
> >
> > > Hi All,
> >
> > > In batch file I have included 2 scripts to be executed. After a
> > > successful execution of this batch I want to print the results in one
> > > HTML file.
> > > As of now I am able to print the one HTML file for one script. But I
> > > want a single HTML file to be printed for multiple scripts which I
> > > have inculded on batch file.
> > > Please guide me.
> >
> > > Right now I am using the code which is available in wiki..
> >
> > > Thanks- Hide quoted text -
> >
> > - Show quoted text -
>  >
>

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



Re: [wtr-general] need help on how to close the new windows

2009-12-30 Thread Prajakta Jadhav
u will need to get the handle of new browsers that are opening
then execute browser.close for those browser windows

if you are clicking some link/image which in turn opens your new browser
window
then you will have to use some 'getwindow' type of method to get the handle
of that browser

-Prajakta

On Wed, Dec 30, 2009 at 2:43 PM, Tester  wrote:

> i am running a watir script on a url. The script opens pdf documents
> in new windows. There are more that 100 pdf files on opening each in
> new window the window hangs and I am not able to run the entire
> script. Can some one help me out in this.
> Is there a method such as ie.close to close the new browser window
> getting opened from the main window in watir?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To post to this group, send email to watir-general@googlegroups.com
> Before posting, please read the following guidelines:
> http://wiki.openqa.org/display/WTR/Support
> To unsubscribe from this group, send email to
> watir-general-unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/watir-general

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

Re: [wtr-general] need help on how to close the new windows

2009-12-30 Thread Prajakta Jadhav
If in case you are clicking on some link/image which in turn opens a new
browser window then u ll need to get the handle of that new window first.
Then u can execute browser.close on it.
U ll need to attach the new window to a new watir browser instance.
eg ->
ie2 = watir::IE.new
ie2.attach(:url, )
ie2.close



On Wed, Dec 30, 2009 at 2:43 PM, Tester  wrote:

> i am running a watir script on a url. The script opens pdf documents
> in new windows. There are more that 100 pdf files on opening each in
> new window the window hangs and I am not able to run the entire
> script. Can some one help me out in this.
> Is there a method such as ie.close to close the new browser window
> getting opened from the main window in watir?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To post to this group, send email to watir-general@googlegroups.com
> Before posting, please read the following guidelines:
> http://wiki.openqa.org/display/WTR/Support
> To unsubscribe from this group, send email to
> watir-general-unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/watir-general

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

Re: [wtr-general] Not able to edit Text Field

2010-01-11 Thread Prajakta Jadhav
You could use ie.send_keys(text) to enter the text after you have got the
focus on required div.
But I fear this is not a very right way to do this.

There should be something else available for this.



On Mon, Jan 11, 2010 at 4:46 PM, lokesh.agra...@gmail.com <
lokesh.agra...@gmail.com> wrote:

> Hi Guys,
>
> I am facing one problem.
> In my webpage I have table which has many TD/TR and Div
>
> Sample code
>
>  style="WIDTH: auto">lokesh
>
> Now, this Div is actually a text field where lokesh is written and I
> want to change it.
>
> I am able to find the div
> ie.table(:id, "ivr_template:params").div(:index,1).flash
>
> even I am able to get the text
> ie.table(:id, "ivr_template:params").div(:index,1).text = lokesh or
> ie.table(:id, "ivr_template:params")[2][2].text
>
> but I am not able to change this. As "set" method is not supported by
> div or table
>
> Can anyone give me solutions?
>
> Thanks in Advance
>
>
> Regards,
> Lokesh Agrawal
>
> --
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To post to this group, send email to watir-general@googlegroups.com
> Before posting, please read the following guidelines:
> http://wiki.openqa.org/display/WTR/Support
> To unsubscribe from this group, send email to
> watir-general-unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/watir-general
>
-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

Re: [wtr-general] Re: Getting the text inside the div

2010-01-13 Thread Prajakta Jadhav
Following should serve your purpose:

ie.div(:class, "testing_1).divs.each do |dv|
puts dv.text


-Prajakta



On Wed, Jan 13, 2010 at 4:41 PM, Soori  wrote:

> Hi John,
>
> .html will return the html with ,etc,
>
> I would like to get only the text inside the div .
>
> Thanks,
> Soori
> On Jan 13, 3:30 pm, John Kolokotronis  wrote:
> > Try  ie.div(:class, "testing_1).html instead...
> >
> > Regards,
> >
> > John
> >
> > On Jan 13, 10:20 am, Soori  wrote:
> >
> > > All
> >
> > > I am capturing the the text inside a div as mentioned below,
> >
> > > 
> > > testdata1
> > > test data2
> > > test:data3
> >
> > > ie.div(:class, "testing_1).text  captures the information on a single
> > > line...
> >
> > > I would like to print it as shown on the html above.
> >
> > > I got stuck in this.Please show me a way to proceed.
> >
> > > Thanks in advance,
> >
> > > /Soori
>
> --
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To post to this group, send email to watir-general@googlegroups.com
> Before posting, please read the following guidelines:
> http://wiki.openqa.org/display/WTR/Support
> To unsubscribe from this group, send email to
> watir-general-unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/watir-general
>
-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

[wtr-general] What has happened to http://wtr.rubyforge.org/rdoc/ ?

2010-02-01 Thread Prajakta Jadhav
This page is showing some index instead of the Watir's RDoc with 3 lists.
Did I miss something?
When did this page change?

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

Re: [wtr-general] How to click this strange link in Firewatir and Safariwatir?

2010-02-01 Thread Prajakta Jadhav
try
@browser.link(:class,"userMenuLink").click

Actually if :text works in IE, it should work in FF. Yet you could give the
above a try.

-Prajakta


On Tue, Feb 2, 2010 at 11:49 AM, Yuping Zhong wrote:

> Dear All,
>
> I want to use the Watir to click a link that looks like a button. Give the
> following detail:
>
> 
> Demand Curves
> 
>
> I use the following methods,but doesn't works:
>
> @browser.link(:text,"Demand Curves").click
> @browser.link(:text,"Demand Curves").click
>
> -
>
> By the way, @browser.link(:text,"Demand Curves").click works in IE. But
> doesn't works in FF and Safari.
>
> I attach the pictures.
>
> Many thanks!
>
> -Zhong
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To post to this group, send email to watir-general@googlegroups.com
> Before posting, please read the following guidelines:
> http://wiki.openqa.org/display/WTR/Support
> To unsubscribe from this group, send email to
> watir-general-unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/watir-general

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

Re: [wtr-general] Installation of Watir 1.6.5

2010-04-16 Thread Prajakta Jadhav
did you run 'gem update' command?
what does 'gem -v' command return to u? Is it greater than 1.3.5?
If not, then your update was not successful. you are still in the older
version.
You will need to install rubygem1.3.6 first
Then again run 'gem install watir'.


On Fri, Apr 16, 2010 at 3:11 PM, deepak  wrote:

> I'm trying to install watir 1..6.5 on a sytem without internet
> connectivity, I'm getting the below error.
> If anyone is aware of the problem please help.
>
> C:\ruby>gem install "D:\watir-1.6.5.gem"
> ERROR:  While executing gem ... (RuntimeError)
>Error instaling D:\watir-1.6.5.gem:
>watir requires win32-process >= 0.5.5
>
> --
> 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
>

-- 
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


Re: [wtr-general] Re: Installation of Watir 1.6.5

2010-04-20 Thread Prajakta Jadhav
your win32-process gem version is mismatching.
I am attaching the required gem with this mail.
Install it and then check.

If it asks for any more dependent gems you can get them at following link ->
 http://rubygems.org/gems/win32-process/versions/0.5.5

-Prajakta

On Tue, Apr 20, 2010 at 1:12 PM, deepak  wrote:

> Even after installing ruby 1.3.6 I'm getting the below error. I have
> attached the gem list, how to get win32-process 0.5.5
>
> C:\ruby>gem install --local "D:\watir-1.6.5.gem"
> ERROR:  Error installing D:\watir-1.6.5.gem:
>watir requires win32-process (>= 0.5.5, runtime)
>
> C:\ruby>gem list
>
> *** LOCAL GEMS ***
>
> fxri (0.3.6)
> fxruby (1.6.12)
> hpricot (0.6)
> log4r (1.0.5)
> rake (0.7.3)
> rubygems-update (1.3.6)
> sources (0.0.1)
> win32-api (1.0.4)
> win32-clipboard (0.4.3)
> win32-dir (0.3.2)
> win32-eventlog (0.4.6)
> win32-file (0.5.4)
> win32-file-stat (1.2.7)
> win32-process (0.5.3)
> win32-sapi (0.1.4)
> win32-sound (0.4.1)
> windows-api (0.2.0)
> windows-pr (0.7.2)
>
> On Apr 16, 3:02 pm, kiran yajamanyam 
> wrote:
> > Hi Deepak,
> >
> > Even i have faced this problem and For that solution is first install
> > rubygems and then install watir.  For your ref I have attached rubygems
> as
> > well. YOu can use the attached zip file
> >
> > - Kiran
> >
> >
> >
> >
> >
> > On Fri, Apr 16, 2010 at 3:11 PM, deepak  wrote:
> > > I'm trying to install watir 1..6.5 on a sytem without internet
> > > connectivity, I'm getting the below error.
> > > If anyone is aware of the problem please help.
> >
> > > C:\ruby>gem install "D:\watir-1.6.5.gem"
> > > ERROR:  While executing gem ... (RuntimeError)
> > >Error instaling D:\watir-1.6.5.gem:
> > >watir requires win32-process >= 0.5.5
> >
> > > --
> > > 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
> >
> > --
> > 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
> >
> >  rubygems-1.3.zip
> > 479KViewDownload- Hide quoted text -
> >
> > - Show quoted text -
>
> --
> 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
>

-- 
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


win32-process-0.5.5.gem
Description: Binary data


[wtr-general] Implementation of element object map for web automation.

2010-10-20 Thread Prajakta Jadhav
Hello,
I need to start automating my web application project. While I have used
watir before, this time I want to implement something new.

I want to implement GUI-Map file where object references of html elements
are stored. So I will create logical entities and map them to objects of
html elements present in my test application. Now in test script wherever
there is a need to refer to an html element object I can do so using its
logical name given in the map file. This allows me to have logical names for
ui objects instead of literal locator strings.
You can find more about this concept here:
http://functionaltestautomation.blogspot.com/2009/09/ui-elements-all-about-it.html

So I was thinking of implementing a text file e.g:
*Map.txt* with contents:

userna...@browser.text_field(:id, "Username")
passwo...@browser.text_field(:id, "Password")
submitbutt...@browser.button(:id, "Submit")

OR
I could create a hash object in a *Map.rb* file, e.g:

  @map = Hash.new
  @map["Username"]='@browser.text_field(:id, "Username")'
  @map["Password"]='@browser.text_field(:id, "Password")'
  @map["SubmitButton"]='@browser.button(:id, "Submit")'


And then I could get the contents in above files in my code.
The problem is that whether I read from a text file or a hash object, I am
going to get the contents in strings. So if I want to click on submit
button, I will write something like this in my code:

@map["SubmitButton"].click


And this will give me an error: "undefined method click for string element"

So my question is that, is there any way at all to extract the object
@browser.button(:id,
"Submit") out of the string '@browser.button(:id, "Submit")', so that I can
execute the click operation on it.

Also, I would like to know if there is a better way of implementing this UI
map than what I am thinking of. Hope someone can help me out.

Thanks,
Prajakta

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Implementation of element object map for web automation.

2010-10-21 Thread Prajakta Jadhav
Thank you. But I am already using our company made framework.

And I have found a quick solution for my problem here:
http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIcreateanapplication%2Fobjectmap%3F

This worked nicely. :)

On Thu, Oct 21, 2010 at 2:17 PM, Željko Filipin <
zeljko.fili...@wa-research.ch> wrote:

> On Thu, Oct 21, 2010 at 8:12 AM, Prajakta Jadhav <
> jadhav.praja...@gmail.com> wrote:
> > I would like to know if there is a better way of implementing this UI map
> than what I am thinking of.
>
> I would suggest you take a look at Taza:
>
> http://github.com/scudco/taza/
>
> Željko
> --
> watir.com - community manager
> watirpodcast.com - host
> testingpodcast.com - audio podcasts on software testing. all of them
>
>  --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Need to count specific DIVs within a DIV

2010-11-03 Thread Prajakta Jadhav
 I think you should try :

ie.div( :id, 'foo' ).divs.each {|d| puts 'found one!' if d.class == 'bar'}


Probably one '=' in your comparison is missing.


Also attaching my working sample script for reference here. Hope this helps.

ie.div(:id, id).divs.find_all{|dvi|

dvi.class_name == 'businessProfileActivity'

if(dvi.title == style) then

puts "found"


-Prajakta


On Thu, Nov 4, 2010 at 1:44 AM, Paul  wrote:

> Hi there, I need to count the number of DIV containers in a specific
> page so that I can iterate through each of them looking for specific
> information. I'm stuck trying to figure out how to do this.
>
> When I view the source I see that there are only 3 containers that I
> care about (the ones with 'class=bar').  The HTML structure looks
> something like:
> 
> 
>   
>  
>  ...
>   
>  
>  ...
>   
>  
>  ...
> 
> 
>
> What I've tried:
>
> irb: ie.div( :id, 'foo' ).divs.length
> => 350
>
> (That's way too many - I know the answer is 3.)
>
> irb: ie.div( :id, 'foo' ).divs.each {|d| puts 'found one!' if d.class
> = 'bar'}
> NoMethodError: undefined method `class=' for # located=false how=:index what=1>
>from (irb):23
>from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
> element_collections.rb:45:in `each'
>from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
> element_collections.rb:45:in `upto'
>from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
> element_collections.rb:45:in `each'
>
> That's too bad. I don't have any other way of specifically identifying
> these DIVs other than by class, and they all have the same class name.
>
> Suggestions?
>
> TIA
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Writing and running WATIR scripts

2010-11-17 Thread Prajakta Jadhav
Find the information here: http://screencast.com/t/k5LGJDT0Dap

On Thu, Nov 18, 2010 at 12:28 PM, Sudeep  wrote:

> Hi,
>
> I am completely new to WATIR.
> I have installed Ruby 1.9.2 and have also installed WATIR by the
> command:
>
> gem install watir
>
> WATIR has been installed but I donot know how to write the WATIR
> scripts
> and how to run them. Actually I know the syntax of writing it but do
> not
> know where to write and how to save and run it. Like for HTML we write
> it in Notepad and save with an extension name of .htm . The same way
> please can you tell me the procedure for writing and executing a WATIR
> script.
>
>
> Thanks in advance,
> Sudeep
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Writing and running WATIR scripts

2010-11-17 Thread Prajakta Jadhav
oops.. wrong link...
this is the correct one:
http://ruby.about.com/od/beginningruby/ss/visualinstal_7.htm

On Thu, Nov 18, 2010 at 12:37 PM, Prajakta Jadhav  wrote:

> Find the information here: http://screencast.com/t/k5LGJDT0Dap
>
>
> On Thu, Nov 18, 2010 at 12:28 PM, Sudeep  wrote:
>
>> Hi,
>>
>> I am completely new to WATIR.
>> I have installed Ruby 1.9.2 and have also installed WATIR by the
>> command:
>>
>> gem install watir
>>
>> WATIR has been installed but I donot know how to write the WATIR
>> scripts
>> and how to run them. Actually I know the syntax of writing it but do
>> not
>> know where to write and how to save and run it. Like for HTML we write
>> it in Notepad and save with an extension name of .htm . The same way
>> please can you tell me the procedure for writing and executing a WATIR
>> script.
>>
>>
>> Thanks in advance,
>> Sudeep
>>
>> --
>> Before posting, please read http://watir.com/support. In short: search
>> before you ask, be nice.
>>
>> watir-general@googlegroups.com
>> http://groups.google.com/group/watir-general
>> watir-general+unsubscr...@googlegroups.com<http://groups.google.com/group/watir-generalwatir-general+unsubscr...@googlegroups.com>
>>
>
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Re: Writing and running WATIR scripts

2010-11-17 Thread Prajakta Jadhav
Nope. As the page says: The Ruby One-Click Installer comes with a small
editor called Scite.
Go to Start menu -> Ruby (ur version) -> Scite
Scite editor will open.

Now when you write your script using this Scite editor and save it, it gets
saved as a .rb (i.e. a ruby file) by default.
You can right click on this file and edit it again using Scite etitor or
double click on it to run it.
Pressing F5 while file is opened in scite also runs the file.

-Prajakta

On Thu, Nov 18, 2010 at 12:58 PM, Sudeep  wrote:

> Hi Prajakta,
>
> Thank you for the reply. The screenshot shows that SCITE edito has
> been used. Do I need to download SCITE editor??
>
> On Nov 18, 12:07 pm, Prajakta Jadhav 
> wrote:
> > oops.. wrong link...
> > this is the correct one:
> http://ruby.about.com/od/beginningruby/ss/visualinstal_7.htm
> >
> > On Thu, Nov 18, 2010 at 12:37 PM, Prajakta Jadhav <
> jadhav.praja...@gmail.com
> >
> >
> >
> > > wrote:
> > > Find the information here:http://screencast.com/t/k5LGJDT0Dap
> >
> > > On Thu, Nov 18, 2010 at 12:28 PM, Sudeep 
> wrote:
> >
> > >> Hi,
> >
> > >> I am completely new to WATIR.
> > >> I have installed Ruby 1.9.2 and have also installed WATIR by the
> > >> command:
> >
> > >> gem install watir
> >
> > >> WATIR has been installed but I donot know how to write the WATIR
> > >> scripts
> > >> and how to run them. Actually I know the syntax of writing it but do
> > >> not
> > >> know where to write and how to save and run it. Like for HTML we write
> > >> it in Notepad and save with an extension name of .htm . The same way
> > >> please can you tell me the procedure for writing and executing a WATIR
> > >> script.
> >
> > >> Thanks in advance,
> > >> Sudeep
> >
> > >> --
> > >> Before posting, please readhttp://watir.com/support. In short: search
> > >> before you ask, be nice.
> >
> > >> watir-general@googlegroups.com
> > >>http://groups.google.com/group/watir-general
> > >> watir-general+unsubscr...@googlegroups.com
> <http://groups.google.com/group/watir-generalwatir-general+unsubscribe...>-
> Hide quoted text -
> >
> > - Show quoted text -
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Automating websiet implemented using AJAX

2010-11-18 Thread Prajakta Jadhav
Try using some other element property like name or value instead of id. You
could find their values using developer's tool bar.


2010/11/18 Hrishikesh Bose 

> may be i am new to the Watir.
>
> The problem i am facing is as following.
>
>
> . i need to automate a use case which is like a new window. i provide name
> and password and click save to create a new user.
>
> Now the Name and Password are text fields. I can get the ids using
> developer tool bar. but the next time i reload the page and try to run the
> automation script again, the text_field ids get changed to a new value and
> my test script fails
>
> so the first time i select the text field i get 
>
> Once the page is reloaded i get 
>
>
> what i should do so that even if these IDs are changing i can find the same
> element.
>
> thanks,
> hrishikesh bose
>
>
> On Thu, Nov 18, 2010 at 3:14 PM, Željko Filipin <
> zeljko.fili...@wa-research.ch> wrote:
>
>> On Thu, Nov 18, 2010 at 10:32 AM, Hrishikesh Bose <
>> hrishikesh.b...@gmail.com> wrote:
>> > so got this questions on whether we can use WATIR to automate AJAX web
>> pages.
>>
>> You should be able to do it. Most of us automate web applications with a
>> lot of javascript. Let us know if you have a problem with someting.
>>
>> Željko
>> --
>> watir.com - community manager
>> watirpodcast.com - host
>> testingpodcast.com - audio podcasts on software testing. all of them
>>
>>  --
>> Before posting, please read http://watir.com/support. In short: search
>> before you ask, be nice.
>>
>> watir-general@googlegroups.com
>> http://groups.google.com/group/watir-general
>> watir-general+unsubscr...@googlegroups.com
>>
>
>  --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Re: Javascript pop uo using firewatir

2010-11-22 Thread Prajakta Jadhav
Why does
Browser.link(":href","/users/1").click
have double quotes (" ") around :href?

That is not required and I am not sure if that will work either.

This is the syntax:
ie.link(:href, /page/).click

Try removing those double quotes.
Hope it works.



2010/11/22 Amit Kulkarni 

> Thanks a lot for the link.
> But i tried every option but no success.
> If you see carefully it uses a Ajax call.
>
>
> require 'rubygems'
> require 'firewatir'
> Watir::Browser.default = 'firefox'
> Browser = Watir::Browser.new
> Browser.goto("http://localhost:3000/users";)
> Browser.link(":href","/users/1").click
> --error referring to this line
> #Browser.execute_script("window.confirm = function() {return true}")
>
>
> def check_for_popups
> autoit = WIN32OLE.new('AutoItX3.Control')
> #
> # Do forever - assumes popups could occur anywhere/anytime in your
> application.
> loop do
> # Look for window with given title. Give up after 1 second.
> ret = autoit.WinWait('Destroy', '', 1)
> #
> # If window found, send appropriate keystroke (e.g. {enter}, {Y},
> {N}).
> if (ret==1) then autoit.Send('{enter}') end
> #
> # Take a rest to avoid chewing up cycles and give another thread a
> go.
> # Then resume the loop.
> sleep(3)
> end
> end
>
> $popup = Thread.new { check_for_popups }  # start popup handler
> at_exit { Thread.kill($popup) }
>
> After running i get the following error
>
> js_eval':  missing ; before statement (JsshSocket::JSSyntaxError)
> from
> /var/lib/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/jssh_socket.rb:27:in
> `js_eval_method'
> from
> /var/lib/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/element.rb:936:in
> `enabled?'
> from
> /var/lib/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/element.rb:922:in
> `assert_enabled'
> from
> /var/lib/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/element.rb:1072:in
> `click'
> from user_destroy.rb:6
>
>
>
> On Thu, Nov 18, 2010 at 2:36 PM, Željko Filipin <
> zeljko.fili...@wa-research.ch> wrote:
>
>> On Thu, Nov 18, 2010 at 8:21 AM, Amit Kulkarni <
>> amitkkulkarni...@gmail.com> wrote:
>> > On delete action popup is there which onclick it shows a pop up box
>> along with two buttons i.e. Ok and Cancel
>>
>> Maybe something from here could help you:
>>
>> http://wiki.openqa.org/display/WTR/Pop+Ups
>> http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups
>>
>> Željko
>> --
>> watir.com - community manager
>> watirpodcast.com - host
>> testingpodcast.com - audio podcasts on software testing. all of them
>>
>>  --
>> Before posting, please read http://watir.com/support. In short: search
>> before you ask, be nice.
>>
>> watir-general@googlegroups.com
>> http://groups.google.com/group/watir-general
>> watir-general+unsubscr...@googlegroups.com
>>
>
>  --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Unable to identify the object error

2010-12-06 Thread Prajakta Jadhav
Try using value of the option instead of label.
E.g: browser.select_list(:name,"ModuleID").set("13")

-Prajakta

On Mon, Dec 6, 2010 at 7:12 PM, Sudeep  wrote:

> Hi,
>
> I am getting the following error while setting a value to the drop
> down list.
>
> Watir Script :
> browser.select_list(:name,"ModuleID").set("Audits")
>
>
> HTML Code:
>
>  onchange="populateDIV(this); ModuleID_onChange();"
>
>
> onmouseout="hidePathOnPop();this.style.textDecoration='none';this.style.color
> ='#00';"
>
> onmouseover="this.style.textDecoration='underline';this.style.color
> ='#0033CC';"
>  id="ModuleID" name="ModuleID"  class="sysNavbarActiveSearch" size="1"
> >
>
> 
> < Module >
>
>    Audits
>    Document Control
>    Master Incident
>    mdole
>    Module12
>    Module123
>    Operational Control
>    play8
>    Quality Nonconformance
>    Standard Nonconformance
> 
>
>
> Error in the console :
>
> C:/Ruby186/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/element.rb:
> 58:in `assert_exists': Unable to locate element, using :name,
> "ModuleID" Watir::Exception::UnknownObjectException)
>from C:/Ruby186/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/
> input_eleme
> nts.rb:64:in `select_item_in_select_list'
>from C:/Ruby186/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/
> input_eleme
> nts.rb:48:in `set'
>from Intelex_Audit_1.txt:11
>
>
> I am not able to find the reason why is it not able to find the Object
> with name "ModuleId" whereas in the HTML it is clearly mentioned as
> the name.
>
> Please can you help me out?
>
> Regards,
> Sudeep
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Watir 1.7.0 Released

2011-01-06 Thread Prajakta Jadhav
Happy New Year to you too!
And thanks for the new Watir. :)

Is this Watir version tested on latest Ruby, i.e 1.9.2 or is Ruby 1.8.6
still the recommended ruby version for Watir?

Regards,
Prajakta



On Thu, Jan 6, 2011 at 2:26 PM, Jarmo  wrote:

> Hello and Happy New Year to everyone!
>
> This year's first Watir is here - version 1.7.0!
>
> Install it with:
>
> Windows:
>   gem install watir
>
> Linux/OS X:
>   gem install firewatir
>
> Changelog:
>
> === IE improvements
>
> * Fixed Watir::IE#close_all to close all IE windows, even the ones with
> tabs. Closes http://jira.openqa.org/browse/WTR-463 (Jarmo Pertman)
> * IE#wait waits now again until browser has a state of READYSTATE_COMPLETE
> due to strange timing issues. Closes 
> http://jira.openqa.org/browse/WTR-466(Jarmo Pertman)
> * Added CSS3 selectors with usage like browser.text_field(:css =>
> "input[name='text1']") (Jonas Tingeborn)
> * Updated bundled version of AutoIt to 3.3.6.1. Closes
> http://jira.openqa.org/browse/WTR-440 (Jarmo Pertman)
>
> === Firefox improvements
>
> * Fixed Element#exists? for cases where nested elements were used for
> locating (Alok Menghrajani)
> * Ignore uppercase tags in XHTML when searching for elements (Alok
> Menghrajani)
>
> === General improvements
>
> * Return Element#id correctly when using Element#when_present and friends
> methods. Closes http://jira.openqa.org/browse/WTR-469 (Jarmo Pertman)
>
> Whole Changelog is available at
> http://github.com/bret/watir/compare/v1.6.7...v1.7.0
>
> Watir Development Team
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Automating the object with in TD tag

2011-01-12 Thread Prajakta Jadhav
you could use src to identify it.
browser.image(:src => /gtk-ok/).click

Find more info here:
http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Container.html#M000324

-Prajakta

On Thu, Jan 13, 2011 at 10:43 AM, sweet flower  wrote:

> Hi,
> I was able to automate that using the Cell method.
>
> I have one more question. I have an object with in IMG tag.. but the
> properties are not enough to identify the same
>
> I have title, class, src and align properties alone.
> how can i use the image method to identify this?
> kindly help.
>
> By,
> Sanu. T
>
> On Wed, Jan 12, 2011 at 8:58 PM, Sanu  wrote:
>
>> Hi,
>>
>> I have an object with TD tag with out any object type specified.
>> That is actually a tag in the application.
>>
>> please find the HTML code below
>>
>> 
>> 
>>  #text
>> 

Re: [wtr-general] Automating the object with in TD tag

2011-01-13 Thread Prajakta Jadhav
Could you post the html content related to this image? Is it inside a frame?

-Prajakta

On Thu, Jan 13, 2011 at 1:04 PM, sweet flower  wrote:

>
> Hi Jadhav,
>
> I tried with SRC also... it is not working.
> any other way??
> On Thu, Jan 13, 2011 at 12:06 PM, Prajakta Jadhav <
> jadhav.praja...@gmail.com> wrote:
>
>> you could use src to identify it.
>> browser.image(:src => /gtk-ok/).click
>>
>> Find more info here:
>> http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Container.html#M000324
>>
>> -Prajakta
>>
>>   On Thu, Jan 13, 2011 at 10:43 AM, sweet flower wrote:
>>
>>>   Hi,
>>> I was able to automate that using the Cell method.
>>>
>>> I have one more question. I have an object with in IMG tag.. but the
>>> properties are not enough to identify the same
>>>
>>> I have title, class, src and align properties alone.
>>> how can i use the image method to identify this?
>>> kindly help.
>>>
>>> By,
>>> Sanu. T
>>>
>>>On Wed, Jan 12, 2011 at 8:58 PM, Sanu  wrote:
>>>
>>>> Hi,
>>>>
>>>> I have an object with TD tag with out any object type specified.
>>>> That is actually a tag in the application.
>>>>
>>>> please find the HTML code below
>>>>
>>>> 
>>>> 
>>>>  #text
>>>> 

Re: [wtr-general] Intermittent Watir issue with Firefox

2011-02-03 Thread Prajakta Jadhav
How are you using 'watir' for firefox? You should be using 'firewatir',
right?

-Prajakta

On Thu, Feb 3, 2011 at 7:43 PM, Stephen Mc Gowan  wrote:

> Hi,
>
> I'm seeing an intermittent watir issue with firefox. I really don't know
> whats causing it, I can't seem to cause it to happen reliably. I've seen a
> thread from last may discussing something similar and a really hacky work
> around:http://osdir.com/ml/watir-general/2010-05/msg00134.html
>
> I guess I'm hoping some better solution might have popped up in the
> meantime.
>
> It's giving me the following error.
>
>
> C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/jssh_socket.rb:19:in
> `js_eval': this.docShell is null (JsshSocket::JSTypeError)
>
> C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/firefox.rb:194:in
> `set_browser_document'
>
> C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/firefox.rb:52:in
> `initialize'
>
> C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/watir/browser.rb:65:in
> `new'
>
> C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/watir/browser.rb:65:in
> `new'
> from ./Ruby/goto.rb:7
>
> and goto.rb is here:
>
> require "rubygems"
> require "watir"
>
> puts('ruby: Using firefox')
> Watir::Browser.default = 'firefox'
> puts('ruby: Starting browser')
>
>
> b = Watir::Browser.new
> puts('ruby: Browser started')
> b.maximize
> b.goto(ARGV[0])
>
>
> Any ideas?
>
> Cheers,
> --
> Stephen Mc Gowan.
>
>  --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Related to multiple instance of IE

2011-04-15 Thread Prajakta Jadhav
Try these:

http://wiki.openqa.org/display/WTR/New+Browser+Windows


http://stackoverflow.com/questions/5630084/how-to-handle-new-browser-pop-up-after-clicking-a-js-button-in-watir


-Prajakta

On Fri, Apr 15, 2011 at 11:17 AM, vicky  wrote:

> Hi,
> I am new to watir.I have 1 query plz help me if you can
>  I have launched the 1 browser instance by watir code. now the link
> is present on that page by clicking on this page new window will gwt
> open new window gets opened then my test case passed and if not the it
> failed.
>  but i don't know how to identify that new window? do i need
> to create another instance of browser?
>
>   Plz help me if u know...Thanks in advance
>
>
> Regards,
> Vikrant
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Button click in IE8 using watir web-driver.

2011-12-09 Thread Prajakta Jadhav
Hello,

I am just following this script on http://watirwebdriver.com/:
require 'watir-webdriver'
b = Watir::Browser.new
b.goto 'bit.ly/watir-webdriver-demo'
b.text_field(:id => 'entry_0').set 'your name'
b.select_list(:id => 'entry_1').select 'Ruby'
b.select_list(:id => 'entry_1').selected? 'Ruby'
#~ b.div(:class => 'ss-form-entry').button.click   --
This line gives 'element not found' error, so changed this to:
b.button(:name =>  'submit').click
b.text.include? 'Thank you'

The "b.button(:name =>  'submit').click" does not work in IE8. I
tried .focus and .flash and they work, but .click does not.
It works correctly on chrome and firefox.

I have also tried:
b.button(:name =>  'submit').fire_event "mouseover"
b.button(:name => 'submit').fire_event "click"
which again does not work.

My protected mode setting is ON in all places and the pop-up blocker
is OFF. I do not have a Google Toolbar that might block anything.

Could somebody please help me find the problem here?
Could you try this script on your IE8 browser and see if it works for
you?

Thanks,
Prajakta

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: How can I open message in gmail inbox.

2009-05-26 Thread Prajakta Jadhav
Is it okay if the account concerned is Outlook Web Access.. or you require
only gmail or yahoo and such other mail accounts?
I have implemented exactly same functionality taht you are seraching for..
but in OWA
I can share it with you incase you can work with OWA

On Tue, May 26, 2009 at 10:37 PM, tknv  wrote:

>
> Thanks quick reply.
> It is useless in Watir General ?
>
> It is too complex...I can not know how complex that will be.
>
> Do you know another solution ?
> Because the aim is just check mail body,any web mail account is ok for
> testing.
>
> And more over,when use web mail for testing,at 1st try to use Gmail in
> general.
> Because most popular web mail account. It will be most common test
> case.
>
> Just I feel strange your content or I do not understand what is Watir
> General.
>
> Thanks
>
> On May 26, 4:08 pm, Wesley Chen  wrote:
> > Please don't try on Gmail.
> > It is too complex and it can't represent the common cases, so it is
> useless.
> >
> > Thanks.
> > Wesley Chen.
> >
> >
> >
> > On Tue, May 26, 2009 at 1:51 PM, tknv  wrote:
> >
> > > hi et,.al.
> > > I'd like to open gmail message for test sending password is collect or
> > > not.
> > > That's why need to open message to see message body.
> > > Then I try that code below.
> >
> > > ie = IE.attach(:url ,'http://mail.google.com/mail/?shva=1#inbox')
> > > canvas_frame = ie.frame(:id, 'canvas_frame')
> >
> > > after above try below
> >
> > > canvas_frame.span(:text, 'MymessageName').click
> > > but not works,watir click it,but not open message.(just MymessageName
> > > was yellow highlighten)
> >
> > > and also try below.72 is MymessageName span index.
> > > canvas_frame.span(:index, 72).click
> >
> > > and also try below
> > > canvas_frame.span(:index, 72).text.click
> > > This is error,not works
> >
> > > How can I open?
> >
> > > Thanks
> >
>

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



[wtr-general] Re: How do I click the dynanic link from web page..

2009-05-28 Thread Prajakta Jadhav
you can do it using the 'href' value of each edit user link.. since in your
case href is unique for each users 'edit user' link.
You can get the href value using the IE devlopers toolbar (google it out
incase you do not know about it) or get the value from source code of your
browser window
 eg..

$ie.link(:href, ".../AppControl?pg=ListUsers&ret=Edit user&employee
id=4").click


On Thu, May 28, 2009 at 11:52 AM, Swap  wrote:

>
> I am in learning stage of Watir. I want to write the code in watir to
> click the particula  'Edit user' link.
>
> Please reply me.
>
> 
>
>
>
>
>
>  First name Last
> name  User
> nameRoleAllocated file quota
> Occupied
> file quota  
>
>
>
> a
>a
>a
>Group admin10 MB.3.3
> KB.
> href="AppControl?pg=ListUsers&ret=Edit
> user&employee id=2">Edituser
>Edit profile
> pg=ListUsers&ret=Delete user&employee id=2")'>Delete
>
> href="AppControl?pg=ListUsers&ret=view
> gallery&employee id=2" id="view_gallery_link">View gallery
>
>
>
>
>
>
>  href="AppControl?pg=ListUsers&ret=Display profile&employee
> id=1">admin
>admin
>
>admin
>
>Admin
>90 MB.
>0.0 KB.
>
>
>  href="AppControl?pg=ListUsers&ret=Edit user&employee id=1">Edit
>user
>
>  href="AppControl?pg=ListUsers&ret=Edit profile&employee
> id=1">Edit
>profile
>
>  href='javascript:confirmDelete("AppControl?
> pg=ListUsers&ret=Delete user&employee id=1")'>Delete
>
> href="AppControl?
> pg=ListUsers&ret=messagebox&employee id=1">Mailbox
>
>
> href="AppControl?pg=ListUsers&ret=edit gallery"
> id="edit_gallery_link">Edit gallery
>
> href="AppControl?pg=ListUsers&ret=view
> gallery&employee id=1" id="view_gallery_link">View gallery
>
>
>
>
>
>
> name="employee_id" id="employee_id"
> value="4"/>
>
>
>  href="AppControl?pg=ListUsers&ret=Display profile&employee
> id=4">b
>b
>
>b
>
>Manager
>10 MB.
>0.0 KB.
>
>
>  href="AppControl?pg=ListUsers&ret=Edit user&employee id=4">Edit
>user
>
>  href="AppControl?pg=ListUsers&ret=Edit profile&employee
> id=4">Edit
>profile
>
>  href='javascript:confirmDelete("AppControl?
> pg=ListUsers&ret=Delete user&employee id=4")'>Delete
>
>
> href="AppControl?pg=ListUsers&ret=view
> gallery&employee id=4" id="view_gallery_link">View gallery
>
>
>
> >
>

--~--~-~--~~~---~--~~
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: Multiple Attributes for Text Fields

2009-06-01 Thread Prajakta Jadhav
thats really cool!

On Mon, Jun 1, 2009 at 9:12 PM, Chuck van der Linden wrote:

>
> On May 30, 4:50 am, karimnumerouno  wrote:
> > hi could any one share a link our some stuff of multi attribute
> > selection, it there any doc there
> >
>
> be a tool user:  http://www.lmgtfy.com/?q=watir+multiple+attributes
>  >
>

--~--~-~--~~~---~--~~
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 and flash audio

2009-06-01 Thread Prajakta Jadhav
I had this problem when I used "$ie.send_keys()" function.. this does not
work if user hasn't logged in to windows.
Maybe you are using some such GUI function in your script. Guess you ll have
to use some other alternative for that function.


On Mon, Jun 1, 2009 at 7:10 PM, Philbo  wrote:

>
> Hi,
>
> One of our Watir tests is based around a flash audio playback element
> embedded in a page. It's trying to test that playback occurs after
> clicking a Play button.
>
> I'm finding that when the test runs on our build server it fails, yet
> when I run it locally it passes. In addition to this, if I'm logged on
> to the build server when the test runs it passes also.
>
> My initial thought is that when no one is logged on to the build
> server some audio drivers are not loaded which is then affecting the
> flash playback.
>
> Does anyone have any ideas for a possible solution or work around?
> Maybe some way to force the drivers to load?
>
> To be clear, I don't want to test for an audio response from the page.
> I plan to do this by checking a playback progress bar. The problem is
> getting the flash element to play.
>
> Any help or wild ideas appreciated!
>
> Thanks,
> Philbo
>
> >
>

--~--~-~--~~~---~--~~
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: WatirCraft LLC is closing

2009-06-05 Thread Prajakta Jadhav
All the best Bret and Pete...!
And a bigg THANK YOU  for WATIR... :)


On 6/4/09, Bret Pettichord  wrote:
>
>
> Pete Dignan and I have decided to shut down WatirCraft LLC.
>
> I will begin working full time for Convio in July. Convio has made a big
> commitment to using Watir. I will continue to be involved in the Watir
> community, but Convio is a software company that uses Watir internally
> to test its software -- just like many of you. Convio has not made any
> commitment to sponsor contributions to Watir, except when they also
> serve their internal needs. I'm actually looking forward to going back
> to being mainly a tester, instead of a framework developer.
>
> It will take some time to figure out what this transition will mean for
> my involvement with Watir. For one, it means we will need more help
> running the Watir project. Getting the Watir 1.7 release out has been
> delayed due to this transition (and a sprained knee), but all that is
> behind me now, so that should be able to move out shortly.
>
> Some people have asked about the WatirCraft framework. Convio currently
> uses the Rasta framework, and I expect to get more involved with that
> framework, which Hugh McGowan (at Convio) has been working on quite
> diligently lately. Some time ago, I sketched out a plan to integrate
> Rasta into WatirCraft. I expect to take a second look at those plans.
>
> The WatirCraft framework itself is open-source and will continue to be
> hosted on Github and available for use.
>
> Bret
>
> --
> Bret Pettichord
> CTO, WatirCraft LLC, www.watircraft.com
> Lead Developer, Watir, www.watir.com
> Blog, www.io.com/~wazmo/blog
> Twitter, www.twitter.com/bpettichord
>
> Ask me about Watir training
> www.watircraft.com/training
>
>
> >
>

--~--~-~--~~~---~--~~
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: Can WATIR automate web applications developed using Sharepoint Technology ?

2009-06-10 Thread Prajakta Jadhav
I have automated a sharepoint application using watir...
not a very big deal.. but you will have to dig around a bit at times

On Wed, Jun 10, 2009 at 3:45 PM, Rahul Ahuja  wrote:

>
> Can WATIR automate web applications developed using Sharepoint
> Technology?
>
> Thanks & Regards,
> Rahul Ahuja
> >
>

--~--~-~--~~~---~--~~
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-15 Thread Prajakta Jadhav
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 specific command to capture this.
> >
> > > Thanks in Advance
> > > Rahul- 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
-~--~~~~--~~--~--~---