# - * - coding: utf-8 - * -
__author__="mischeng"
From the time the import sleep
The from the selenium import webdriver
The from selenium.webdriver.com mon. Keys import keys
If __name__=="__main__" :
Driver=webdriver. Chrome ()
Driver. The get (" http://www.python.org ")
-- -- -- -- -- -- -- -- -- -- - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
tip: always create the file 'C: \ Users \ \ Administrator \ PycharmProjects \ untitled2 \ DD py'. The file already exists.
CodePudding user response:
To delete or change the file name, I don't know your specific needsCodePudding user response:
Is the copy of a simple pycharm code, wrote to open a web page code, perform a hints file exists, you change a lot of name installed pycharm again and again to use ah distressCodePudding user response:
Is the automation in Google web page codeCodePudding user response:
You this is not a complete code? Automatically open web is what you want to create a file? I don't understand,,CodePudding user response:
Using selenium automates the browser to download the corresponding driver, chromedriver down?CodePudding user response:
Have never met this kind of question, the selenium using various configurations are installedCodePudding user response:
Could you create the script of the original format isn't py files, result in error reminder of the path of the nuptial file to cause you cannot be the interpreter compiled before operation, recommends pycharm to new a py files, and then paste the code in the past,CodePudding user response:
Is open in the right way, and cannot be directly open the python file, to open the python file in folder, open the python file again, is ok,