i want select li dropdown to click enter image description here
driver.find_element((By.XPATH, "//li[@class='ellipsis1']")).click()
error :
selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: 'using' must be a string
and i change the code to
driver.find_element(By.XPATH, "//li[@class='ellipsis1']").click()
error :
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//li[@class='ellipsis1']"}
What should I do?