Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to click on <area> element containing href property #1822

Open
agravka opened this issue Dec 14, 2020 · 2 comments
Open

Unable to click on <area> element containing href property #1822

agravka opened this issue Dec 14, 2020 · 2 comments

Comments

@agravka
Copy link

agravka commented Dec 14, 2020

Hi,

I'm using geckodriver 0.28.0.
I got this element on my site:

<area alt="Fish" coords="2,180,72,250" href="Catalog.action?viewCategory=&amp;categoryId=FISH" shape="RECT">

When I do:

@FindBy(css = "area[alt='Fish']")
private WebElement btnFishImage;

WebDriverWait webDriverWait = getWebDriverWait();
webDriverWait.until(ExpectedConditions.elementToBeClickable(btnFishImage));
btnFishImage.click();

I get error:
org.openqa.selenium.ElementNotInteractableException: Element <area href="Catalog.action?viewCategory=&categoryId=FISH"> could not be scrolled into view

But when I replace click(); to sendKeys(Keys.ENTER); it works ok.

Please help.

Best regards
Marta Mazurkiewicz

@whimboo
Copy link
Collaborator

whimboo commented Dec 14, 2020

Could you please attach a trace-level log from geckodriver? Read more about reporting actionable bugs in our contribution guidelines. Also a HTML sample snippet would be nice to have, given that you didn't say anything about the surrounding HTML.

@whimboo
Copy link
Collaborator

whimboo commented Dec 27, 2020

Actually there is https://bugzilla.mozilla.org/show_bug.cgi?id=1502636 for that. Also see w3c/webdriver#1411 for a missing spec behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants