To click()
on the svg icon you can use the following solution:
driver.find_element_by_xpath('//div[@class="some-class"]/*[name()="svg"][@aria-label="Search"]').click()
You can find a couple of relevant discussions in:
More Related Contents:
- How to access to ‘rect’ type element through Selenium-Python
- How to sleep Selenium WebDriver in Python for milliseconds
- How to select a drop-down menu value with Selenium using Python?
- Select iframe using Python + Selenium
- Python : no module named selenium
- How to switch to new window in Selenium for Python?
- Unable to locate element using selenium chrome webdriver in python selenium
- Don’t wait for a page to load using Selenium in Python
- Find the reCAPTCHA element and click on it — Python + Selenium
- Selenium not able to click on Get Data button on using Python
- How to set the timeout of ‘driver.get’ for python selenium 3.8.0?
- Python webdriver to handle pop up browser windows which is not an alert
- How to fix Selenium WebDriverException: The browser appears to have exited before we could connect?
- SyntaxError: Failed to execute ‘evaluate’ on ‘Document’: The string ‘//img[contains(‘1236548597′)]’ is not a valid XPath expression
- function for switching frames in python, selenium
- “NoSuchWindowException: no such window: window was already closed” while switching tabs using Selenium and WebDriver through Python3
- How to hide Firefox window (Selenium WebDriver)?
- Python Selenium – get href value
- Selenium on MAC, Message: ‘chromedriver’ executable may have wrong permissions
- ElementNotInteractableException: Message: element not interactable error sending text in search field using Selenium Python
- selenium two xpath tests in one
- How to find element by part of its id name in selenium with python
- NoSuchElementException: Message: Unable to locate element while trying to click on the button VISA through Selenium and Python
- selenium.common.exceptions.ElementNotVisibleException: Message: element not visible while trying to access an element with Python + Selenium
- Webpage Is Detecting Selenium Webdriver with Chromedriver as a bot
- How to select multiple options from multi select list using Selenium-Python?
- Python Selenium driver.execute_script WebDriverException: Message: unknown error: call function result missing ‘value’
- What is unittest in selenium Python?
- How to select element using XPATH syntax on Selenium for Python?
- selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service chromedriver.exe while opening chrome browser