Selenium Web Driver & Java. Element is not clickable at point (x, y). Other element would receive the click

WebDriverException: Element is not clickable at point (x, y) This is a typical org.openqa.selenium.WebDriverException which extends java.lang.RuntimeException. The fields of this exception are : BASE_SUPPORT_URL : protected static final java.lang.String BASE_SUPPORT_URL DRIVER_INFO : public static final java.lang.String DRIVER_INFO SESSION_ID : public static final java.lang.String SESSION_ID About your individual usecase, the error tells it all : … Read more

Of the many findElement(s)/By functions in Selenium, when would you use one over the other?

This question have been asked and answered in numerous forums in different formats. Considering them all if we prioritize the locators the list would be as follows : id: Select element with the specified id attribute. name: Select first element with the specified name attribute. link_text: Select link (anchor tag) element which contains text matching … Read more

What is the difference between ChromeDriver and WebDriver in selenium?

ChromeDriver driver = new ChromeDriver(); If you use ChromeDriver driver = new ChromeDriver(); the ChromeDriver instance which will get created through that we will be only able to invoke and act on the methods implemented by ChromeDriver and supported by Chrome Browser only. To act with other browsers we have to specifically create individual objects … Read more

Selenium “selenium.common.exceptions.NoSuchElementException” when using Chrome

NoSuchElementException selenium.common.exceptions.NoSuchElementException popularly known as NoSuchElementException is defined as : exception selenium.common.exceptions.NoSuchElementException(msg=None, screen=None, stacktrace=None) NoSuchElementException is basically thrown in 2 cases as follows : When using : webdriver.find_element_by_*(“expression”) //example : my_element = driver.find_element_by_xpath(“xpath_expression”) When using : element.find_element_by_*(“expression”) //example : my_element = element.find_element_by_*(“expression”) As per the API Docs just like any other selenium.common.exceptions, NoSuchElementException should contain … Read more

What Is Selenium And What Is WebDriver?

Selenium Selenium is a free (open source) automated testing suite for web applications across different browsers and platforms. Primarily it is used for automating web applications for testing purposes, but is certainly not limited to just that. Selenium has the support of all of the major browser vendors who have taken (or are taking) steps … Read more

Selenium – wait until element is present, visible and interactable

As per the best practices: If your usecase is to validate the presence of any element you need to induce WebDriverWait setting the expected_conditions as presence_of_element_located() which is the expectation for checking that an element is present on the DOM of a page. This does not necessarily mean that the element is visible. So the … Read more

Selenium WebDriver HTML Code

Your xpath is incorrect. You are trying to hit an absolute path with html/body/div[1]/div/div/div[2]/div[2]/div[2]/a. You are missing a / so instead it should be /html/body/div[1]/div/div/div[2]/div[2]/div[2]/a try: driver.findElement(By.xpath(“/html/body/div[1]/div/div/div[2]/div[2]/div[2]/a”)).click();