Automate Login and fill out from web site form and extract table #147648
Unanswered
pablohacker81
asked this question in
Programming Help
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Body
I am encountering an issue with Selenium while automating the login process and subsequent form interactions for a web application. The script works as expected for opening the login page and locating the input fields. However, I am consistently running into the following error during login:
yaml
Code kopieren
Error during login: Message: element not interactable
(Session info: MicrosoftEdge=131.0.2903.99)
Environment Details:
Browser: Microsoft Edge (Version 131.0.2903.99)
Selenium Version: [Include your Selenium version]
Operating System: [Include your OS version]
Driver Path: C:\Users\PHacker\Documents\msedgedriver.exe
python
Code kopieren
from selenium import webdriver
from selenium.webdriver.edge.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from dotenv import load_dotenv
import os
Load credentials
load_dotenv(dotenv_path='bash.env')
username = os.getenv("LOGWIN_USERNAME")
password = os.getenv("LOGWIN_PASSWORD")
Path to EdgeDriver
driver_path = r'C:\Users\PHacker\Documents\msedgedriver.exe'
service = Service(driver_path)
driver = webdriver.Edge(service=service)
Web application URL
url = "https://lots.logwin-logistics.com/scm/dynamic.xhtml"
try:
# Open login page
driver.get(url)
except Exception as e:
print("Error:", e)
finally:
driver.quit()
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions