In Java Coordinates are a sub class of Point so you can just cast a coordinate into a point. I assume the structure is the same in C#.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
((IMouse)_driver).MouseMove(((ICoordinates)_driver.FindElement(By.XPath("//
a"))), 0, 0);
Mourasman
On 24 Nov, 05:56, Aniket Gadre <aniket....@gmail.com> wrote:
> Can anyone please help here? I need to move mouse over a particular
> element. I am not able to get the location in terms of ICoordinate object.
> I tried type casting Point object into ICoordinate object but no luck.
>
>
>
>
>
>
>
>
>
> On Thu, Nov 24, 2011 at 8:04 AM, Aniket Gadre <aniket....@gmail.com> wrote:
> > It doesn't seem to work in C# :(
>
> > On Wed, Nov 23, 2011 at 9:00 PM, Mark Collin <m...@ardescosolutions.com>wrote:
>
> >> In Java Coordinates are a sub class of Point so you can just cast a
> >> coordinate into a point. I assume the structure is the same in C#.****
>
> >> ** **
>
> >> *From:* seleniu...@googlegroups.com [mailto:
> >> seleniu...@googlegroups.com] *On Behalf Of *Aniket Gadre
> >> *Sent:* 23 November 2011 14:52
> >> *To:* seleniu...@googlegroups.com
> >> *Subject:* [selenium-users] Converting Point into ICoordinates for Mouse
> >> Move****
>
> >> ** **
>
> >> ****
>
> >> Hi All,****
>
> >> I am trying to use mouse move method of IMouse interface in C#. mousemove
> >> method accepts ICoordinates as parameter and element.location returns Point
> >> value. How can i convert "Point" object into "ICoordinates" object? I am
> >> unable to do typecasting.****
>
> >> --
> >> Best Regards,
> >> Aniket Gadre****
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Selenium Users" group.
> >> To post to this group, send email to seleniu...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> selenium-user...@googlegroups.com.
> >> For more options, visit this group at
> >>http://groups.google.com/group/selenium-users?hl=en.****
>
> >> -- This message contains confidential information and is intended only
> >> for the individual named. If you are not the named addressee you should not
> >> disseminate, distribute or copy this e-mail. Please notify the sender
> >> immediately by e-mail if you have received this e-mail by mistake and
> >> delete this e-mail from your system. If you are not the intended recipient
> >> you are notified that disclosing, copying, distributing or taking any
> >> action in reliance on the contents of this information is strictly
> >> prohibited. If you have received this email in error please notify
> >> postmas...@ardescosolutions.com
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Selenium Users" group.
> >> To post to this group, send email to seleniu...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> selenium-user...@googlegroups.com.
> >> For more options, visit this group at
> >>http://groups.google.com/group/selenium-users?hl=en.
>
> > --
> > Best Regards,
> > Aniket Gadre
> > Senior SME - Test Automation
> > Amdocs , Pune.
> > E-add: aniket.ga...@amdocs.com
>
> --
> Best Regards,
> Aniket Gadre
> Senior SME - Test Automation
> Amdocs , Pune.
> E-add: aniket.ga...@amdocs.com
--Jim
> E-add: aniket.ga...@amdocs.com
element = webDriver.FindElement(By.XPath("VALUE"));
IWebElement Toelement = webDriver.FindElement(By.XPath("VALUE"));
OpenQA.Selenium.Interactions.IAction dragAndDrop = builder.ClickAndHold(element).MoveToElement(Toelement).Release().Build();
dragAndDrop.Perform