[wtr-general] Re: How to perform a right click

2009-09-01 Thread Eason
This page is OK! Thank you Bill and thank you Raveendran!





Eason
2009-09-01



发件人: Bill Agee
发送时间: 2009-09-01 13:50:54
收件人: watir-general@googlegroups.com
抄送: 
主题: [wtr-general] Re: How to perform a right click

Or you can find the same info on the wiki, which is (I suspect) where the blog 
post in the previous mail came from. :)

http://wiki.openqa.org/display/WTR/Right+Click+an+Element




On Mon, Aug 31, 2009 at 10:43 PM, Raveendran P jazzezr...@gmail.com wrote:

Hi,

Try this --  
http://raveendran.wordpress.com/2009/07/24/mouse-clicks-in-watirruby/




2009/9/1 Eason nbkhic...@gmail.com

Hi all,
who could let me know how to use code to do right click?
I can not find such a method in the rdoc.

Please help, thank you!



Eason
2009-09-01







-- 
Regards,
P.Raveendran
http://raveendran.wordpress.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: customize xml generated by ci_reports

2009-09-01 Thread Dylan

Using the base ci_reporter install, the report_manager.rb file has an
variable called @basename, which gets the suite name added onto it in
the File.open call in write_report. To add date/time to this just add
Time.now.strftime(put your time formatting here) to the end of the
string in the File.open call.

It should look something like this: http://pastie.org/601390

-Dylan


On Aug 31, 9:47 pm, Marlon marlonmoja...@gmail.com wrote:
 Hi, how can I rename the filename of the xml created by ci_reporter? I
 need a repository and store the test results generated. ex. TEST-
 Class NameDate/Time.xml. Which part of the ci_reporter does the
 filenaming/file creation?

 Please help

 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] Reading special characters

2009-09-01 Thread GJHmf

Hi,

I'm testing a page that has pagination, that has the usual '«
Previous' and 'Next »' links on it.  My issue is that I'm having
trouble selecting/verifying a link that contains a special character.
An example HTML line in question is as follows, but I want to select/
verify the link using its text, '« Previous':

span class=disabled prev_page« Previous/span


Does anyone know how I can recognise the '«' character (ASCII 00AB,
laquo;), or any other non-standard character?

Naturally if there are any other solutions than using the text, I'm
all ears.

Thanks,


GJHmf

--~--~-~--~~~---~--~~
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: Reading special characters

2009-09-01 Thread Željko Filipin
On Tue, Sep 1, 2009 at 12:44 PM, GJHmf graham.harb...@webroster.net wrote:
 span class=disabled prev_page« Previous/span

Try this:

browser.span(:class, disabled prev_page).click

Ž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] Slider Problem

2009-09-01 Thread Ravinder Singroha

Hi,

We have a scenario wherein we need to drag and drop a slider in order
to define a filter for a specific range (time/price).

Please find attached the screen-shot for the sliders.

Steps to reach the concerned screen:-
1. Goto www.makemytrip.com
2. Select one-way trip, fill in details and click on Search button
3. Find the sliders for Price and Time range filters on the top left
panel Filter Your Results of the resulting Listing page.


Please do let us know if it would be possible to automate this
scenario using Watir.

Thx

Ravinder Singroha

--~--~-~--~~~---~--~~
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: Reading special characters

2009-09-01 Thread GJHmf

Thanks for these Željko,

Both work great in locating and verifying the special character is
there with .span.

Oddly having never used .span before, I'll be using the :class
suggestion to verify the link I have is disabled.  Knowing I can't
currently verify literal link text '\253 Previous' (as it doesn't
exist), for now I'll most likely using something similar to:

prevlink = browser.span(:class, disabled prev_page).exists?
  if prevlink == true
 puts  Previous link is disabled, this is correct
  end


In reply to the last part; I will admit I have (probably wrongly)
ignored the IRB tool upto now, so will toy around with that for a
while before troubling you with questions in that direction.


GJHmf
--~--~-~--~~~---~--~~
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: Reading special characters

2009-09-01 Thread GJHmf

While the .span suggestion is a short term solution in my test
environment for a disabled :class, for future reference I would still
like to know if there's any possible way of verifying '«' and '»'
characters in literal text on a page; as if I can verify a link exists
with that text, I can check to see if its disabled or not.

Many thanks,


GJHmf
--~--~-~--~~~---~--~~
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: Reading special characters

2009-09-01 Thread Željko Filipin
On Tue, Sep 1, 2009 at 2:57 PM, GJHmf graham.harb...@webroster.net wrote:
 if there's any possible way of verifying '«' and '»'
 characters in literal text on a page

browser.text.include?(\253 Previous)

Željko

--~--~-~--~~~---~--~~
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: Reading special characters

2009-09-01 Thread GJHmf

How annoying; I thought I had tried and failed on that very solution,
now it works.  My hands are up, it must have been a typo of some sort
on my part.

Once again, thanks Željko.
--~--~-~--~~~---~--~~
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: Reading special characters

2009-09-01 Thread Dylan

Also, you can get around the special character (so you dont have to
look each one up) by using a regex and the regular text:

browser.text.include?(/Previous/)

browser.span(:text,/Previous/).click

On Sep 1, 6:52 am, GJHmf graham.harb...@webroster.net wrote:
 How annoying; I thought I had tried and failed on that very solution,
 now it works.  My hands are up, it must have been a typo of some sort
 on my part.

 Once again, thanks Željko.
--~--~-~--~~~---~--~~
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 click a flash button to upload a picture?

2009-09-01 Thread Niharika Patro
Hi All,

Sorry to ask question out of focus here, but I was just curious to know if
there is something called flashwatir available?

If so, can recognize all flash objects using it?

Please provide some info on it..

Regards,
Niharika

On Wed, Sep 2, 2009 at 8:06 AM, Wesley Chen cjq@gmail.com wrote:

 Hi, Guys,
 I met a problem in my project, please see the picture attached.

 Get photos from my computer is a flash button.
 When click the button, it will display a upload file pop up.


 How can I click the button and select a file?
 Will I use flashwatir or autoit?


 Any suggestion would be quite appreciated.

 Thanks.
 Wesley Chen.

 


--~--~-~--~~~---~--~~
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: Check value of anonymous text field

2009-09-01 Thread Jin

hi,guy,
try in this way:
textF.each do |tf|
...
end

On Sep 2, 1:22 am, manar alalfi alalfi.ma...@gmail.com wrote:
 Hello,

 I want to print the name attribute of a text field in a page

 #collect Text fields elaments
 textF =  ie.text_fields.collect {|tf | puts tf}

 # iterate to check for none_null_ name text field
 for tf in textF do
   if ie.text_field(:name, tf.name).value != 'null'
            puts  tf.name.to_s
   end

 but the code gives an error:
 3: undefined method `name' for nil:NilClass (NoMethodError)

 any help?

 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: Modal dialog window opened from page_load event

2009-09-01 Thread Tony

Hi Ste,

Earlier the wait method would get stuck when there is a popup during
page laoding.
Now it exits from the waut method and waits for you to handle the
popup.

Refer to this to handle popups - (doesnt use autoit for this)
http://groups.google.com/group/watir-general/browse_thread/thread/c2ee4fdebe00a2d2/d42a15121e820178#d42a15121e820178

Thanks,
Tony
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---