Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Quality Assurance Introduction to Selenium Automation Nation Sub Pages are Pages, Too!

Stewart Haynes
PLUS
Stewart Haynes
Courses Plus Student 898 Points

Unable to click Remove in Chrome

When trying to remove 'David Riesz,' I'm getting an error: WebDriverError: unknown error: Element is not clickable at point (171, 928)

It seems Chrome webdriver is trying to click the middle of the button element. When inspecting the element, you can see the button is bottom-left justified in relation to the element, and the middle of the actual button element is empty space. Any ideas on a work-around?

Its possible that the button is not visible for the click to be performed. You can try to scroll or moveToElement first and then perform click. try action.moveToElement(element).click().perform(); before click.

Adding the following worked for me:

driver.sleep(9000).then(() => { homePage .findInviteeByName('David Riesz') .remove();

});