Okay, so I am working on my laptop rn and I copy and pasted my code from my PC and suddenly it's not working. I have installed the same Selenium but now it is acting up, I am receiving DeprecationWarnings, driver.find_element_by_xpath isn't working etc.
def click():
driver = webdriver.Chrome(executable_path="C:\webdrivers\chromedriver.exe", chrome_options=options_)
driver.get("http://www.discord.com")
driver.find_element_by_xpath()
This is an example of what I have written which is no longer working, the driver.find_element_by_xpath()
has a line through it! And when I rewrite this in another py file (in pycharm) it does not like me using driver, it comes up underlined in red.
Can somebody explain what on earth is going on?