'Selenium webdriver goes to blank 'data' page
main.py:
import functions
functions.browserLogin()
functions.py:
import vars
from selenium import webdriver
global banner
webDriver = webdriver.Chrome('C:\Program Files (x86)\chromedriver.exe')
def browserLogin():
login = input("Type your name")
if login.lower() == "exit":
return False
else:
vars.logger.info(f"{login} has opened the program.")
webDriver.get(f'http://{vars.repPhoneIP}/servlet?m=mod_listener&p=login&q=loginForm&jumpto=status')
webDriver.implicitly_wait(5)
vars.py:
import logging
from selenium import webdriver
from selenium.webdriver.common.by import By
# testing variables
repPhoneIP = 'owbgowignwoign'
url1 = f'http://{repPhoneIP}/servlet?m=mod_listener&p=login&q=loginForm&jumpto=status'
webDriver = webdriver.Chrome('C:\Program Files (x86)\chromedriver.exe')
# loginSubmit = webDriver.find_element(By.XPATH, '//*[@id="idConfirm"]')
# testing ~~ repPhoneIP = input("What is your phone's IP address?")
# variables
running = True
calling = False
These are parts of 3 files that I'm working on and I know its these 3 files and lines because everything else is hashed out. It will not open the web page properly.
It will open the webdriver, but not the webpage. It shows a blank data page on Chrome. I've tried deleting the cache on regedit.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|