Nyoba selenium

This commit is contained in:
yasir 2022-12-11 08:39:59 +07:00
parent 7f04a947ee
commit 4195264d3e

View file

@ -12,7 +12,7 @@ LOGGER = getLogger(__name__)
@app.on_message(filters.command(["pahe"], COMMAND_HANDLER)) @app.on_message(filters.command(["pahe"], COMMAND_HANDLER))
@capture_err @capture_err
async def pahe(_, msg): async def pahe(_, msg):
chromedriver_autoinstaller.install() # chromedriver_autoinstaller.install()
os.chmod("/MissKaty/chromedriver", 755) os.chmod("/MissKaty/chromedriver", 755)
chrome_options = webdriver.ChromeOptions() chrome_options = webdriver.ChromeOptions()
chrome_options.binary_location = "/usr/bin/google-chrome" chrome_options.binary_location = "/usr/bin/google-chrome"