Category : selenium-chromedriver

This is my source code. I have found the src location. I try to use requests to store the file but the file cannot be opened after saving. import requests from selenium import webdriver from fake_useragent import UserAgent from selenium.webdriver.common.by import By ua = UserAgent() header = {‘User-Agent’:str(ua.random)} browser = webdriver.Chrome() URL = "https://mork.ro/NT2RR" “`browser.get(URL) ..

Read more

I am trying to write a Python script with Selenium to see if I can automate the registration process for a sample event I created. Here is the event page: https://www.tickettailor.com/events/testing4/621753 I am able to access the page and click on "Join the guestlist" button: from selenium import webdriver driver = webdriver.Chrome(‘path_to_chromedriver’) driver.get(‘https://www.tickettailor.com/events/testing4/621753’) button = ..

Read more

I have one run.py file that I execute: from tasks.tasks import Task with Task() as bot: bot.landing_page() And this is the Task.py file: from selenium import webdriver import os class Task(webdriver.Chrome): def __init__(self, driver_path=r";C:Seleniumdrivers"): self.driver_path = driver_path os.environ[‘PATH’] += self.driver_path super(Task, self).__init__() self.implicitly_wait(10) self.maximize_window() def landing_page(self): self.get(‘https://sampleurl.com’) I would like to add the following code ..

Read more