Hey there,
I’m trying to deploy an app that automates a payment with some user-inputted fields. I don’t think all that is important though considering the driver doesn’t run in the first place.
Here is the error I get when I submit the user-inputted form:
File "/home/adminuser/venv/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
I’ve seen other topics posted with the same issue but I don’t think they were resolved.
Here is the code that produces the issue:
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.chrome.options import Options
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import NoSuchElementException
import schedule
import time
def login(number1, password1):
options = Options()
options.add_experimental_option("detach", True)
options.add_argument('--headless')
options.add_argument('--disable-gpu')
options.add_argument("--no-sandbox")
options.add_argument("--disable-dev-shm-usage")
options.add_argument("--disable-features=NetworkService")
options.add_argument("--window-size=1920x1080")
options.add_argument("--disable-features=VizDisplayCompositor")
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)
All these options arguments are from another post – I’ve just been trying everything but to no avail.
I can post more of my code, too, if someone thinks the problem maybe elsewhere. Thanks!