While learning Selenium in Python i opened the Python interpreter and wrote the following lines of code:
from selenium import webdriver
driver = webdriver.Chrome()
Selenium opened a new window and was working even though i haven't supplied a path to a chromedriver executable or have a path set in my operating system.
This is the output i got back from the intepreter:
The Python intepreter also in real time can perform interactions with the browser and print back in the console details about elements. Is there any use for this?
For example when clicking on the search button in Google.
from selenium import webdriver
from selenium.webdriver.common.by import By
driver = webdriver.Chrome()
driver.get("https://www.google.com")
driver.find_element(By.CSS_SELECTOR, "[name='btnK']")
This is the output i get back in the terminal
Thanks