4/4/2023 0 Comments Install chromedriver python![]() ![]() URL = config.get("website", = driver.find_element_by_id("username") Create example files for your app to read fromĮxample.ini dummy configuration file where your app will read from: įrom import KeysĬHROME_DRIVER_PATH = config.get("chromedriver", "path")ĭURATION = config.getint("delay", "seconds")ĭriver = webdriver.Chrome(CHROME_DRIVER_PATH) Place your downloaded chromedriver.exe into a folder called driver/įeel free to change this accordingly if you want, but make sure the chromedriver path is updated in the example.ini later 3.Download the latest release of chrome driver here based on your Chrome browser version at chrome://settings/help.Feel free to use anything that you prefer. Here I am going to use pipenv as my Python packaging tool of choice. Selenium on the other hand is an open-sourced web-based automation tool used for testing, navigating in your browser, automating form filling, etc.įor starters, make sure you have the latest stable version of python and pip installed on your machine. In this post, we are going to create a sample project for our Python Selenium app into a single executable on Windows. In case you are lost anywhere or want to jump in quickly, you may refer to the source code here PyInstaller & Seleniumīasically, Pyinstaller abstracts all these steps by bundling all the dependencies together. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |