[wtr-general] Finding the position of element in webpage

2010-02-03 Thread Ramapulla Reddy
Does watir has a way to find the position of an element by giving its
id or name or xpath etc
if it has it would be good because we can use AutoIt to move mouse and
click etc

If its there can anyone help me out a way?

-- 
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: Finding the position of element in webpage

2010-02-03 Thread Ramapulla Reddy

I went through all those site before posting only.
The problem is the mouse over and right click events as mentioned in
those sites is not simulating the real
mouse right click.
I should get a context menu on clicking a image whose position is keep
changing.
I used the right click as mentioned in
a href=http://wiki.openqa.org/display/WTR/Right+Click+an
+Elementhttp://wiki.openqa.org/display/WTR/Right+Click+an+Element/
a

But i am not getting context menu. So if i can get position of that
image (and position of that image keeps changing) by some method like
ff.image.getposition(some id ) i can use AutoIt3.dll to move mouse
cursor really.


-- 
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: Finding the position of element in webpage

2010-02-03 Thread Ramapulla Reddy


On Feb 3, 4:04 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Wed, Feb 3, 2010 at 11:52 AM, Ramapulla Reddy ramapullare...@gmail.com
 wrote:

  Does watir has a way to find the position of an element by giving its
  id or name or xpath etc

 Please take a look at this:

 http://wiki.openqa.org/display/WTR/Tutorialhttp://watir.com/http://wiki.openqa.org/display/WTR/Project+Home

 Ask if you have questions.




I went through all those site before posting only.
The problem is the mouse over and right click events as mentioned in
those sites is not simulating the real
mouse right click.
I should get a context menu on clicking a image whose position is keep
changing.
I used the right click as mentioned in

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

But i am not getting context menu. So if i can get position of that
image (and position of that image keeps changing) by some method like
ff.image.getposition(some id ) i can use AutoIt3.dll to move mouse
cursor really.

-- 
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 find class property of an object in FireWatir?

2010-02-04 Thread Ramapulla Reddy


Get firebug add-on for firefox and click on  'click an element in the
page to inspect ' button in firebug panel
then click on any element for which you want to find the class
property.
It will highlight the html code of the element and see the class name
of the element if it has one.

I hope that will help you.

-- 
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 doesn't wait for the page to load after clicking a button

2010-02-10 Thread Ramapulla Reddy


I have faced same problem
and firewatir allows multiple attributes to use.

Try using wait_until function to check the element is loaded or not.

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