Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7765511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:11:04+00:00 2026-06-01T15:11:04+00:00

I have an link in HTML and I use Page Object pattern to write

  • 0

I have an link in HTML and I use Page Object pattern to write scripts with Selenium. But I can’t perform MouseMove action when object is initialized with pageFactory.
So, I have such class:

class BingPage
{
private readonly IWebDriver driver;
public static readonly String BASE_URL = "http://bing.com/";
[FindsBy(How = How.XPath, Using = ".//*[@id='scpt2']/a[text()='Shopping']")]
private IWebElement ShoopingLink;

public BingPage(IWebDriver driver)
{
    this.driver = driver;
    //Page Factory will use Driver to init searchButton and queryEdit objects
    PageFactory.InitElements(driver, this);
}

public void HoverShoppingLink()
{
    Actions builder = new Actions(driver);

    IWebElement elem = driver.FindElement(By.XPath(".//*[@id='scpt2']/a[text()='Shopping']"));
    builder.MoveToElement(elem).Build().Perform();//This will work

    builder.MoveToElement(ShoopingLink).Build().Perform(); //This will fail
}
}

Line marked with comment “This will fail” will throw an exception “Must provide a location for a move action. Parameter name: actionTarget”

But when I manually lookup element – it works.
Could someone tell me why?

It is selenium 2.0 for .Net, .Net 4.0 with IE driver.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T15:11:05+00:00Added an answer on June 1, 2026 at 3:11 pm

    Because the proxy object (ProxiedWebElementInterceptor) created for the element doesn’t proxy ILocatable, which is what the Actions class requires of its methods. This is a bug in the .NET bindings. It has been fixed in the current sources, and will be available in the next public release (2.21), available soon.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

in my code for index.html I use jQuery and have a link with id
I have an html page which has a link called open. Once the link
I have noticed that, from Google Maps page, you can get an embed link
Just a basic html link question. I have an intranet setup, and I need
i have one image in my html and i have 5 different link, i
I have a html like this: <html> <head> <link rel=stylesheet type=text/css media=all href=style.css> </head>
I have the following HTML <p>Some text <a title=link href=http://link.com/ target=_blank>my link</a> more text
I have link for example domain.com/de/controler/action?param=value and I want make actionlink to keep same
I have a page (index.html) which has a frame: <html> <body> <iframe src=otherPage.html />
I hope someone can offer any help!! I have web page that initiates a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.