I've gone through a number of similar topics here but they all seem to vary in how the pop-up window is designed. I've tried a few different ways and here is the most recent. So before I enter the login info, I need to click that client login button to access the login form but I can't even get it to open, let alone entering login information.
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome('C:\Login Automation\chromedriver.exe')
driver.get("https://www.datamyne.com/ ")
clientlogin = driver.find_element_by_xpath("//div[@id='holder']").click()
username = driver.find_element_by_xpath("//*[@id='user']").send_keys('myusername')
password = driver.find_element_by_xpath("//*[@id='pass']").send_keys('mypassword')
the error I'm getting here is "NoSuchWindowException: Message: no such window: target window already closed from unknown error: web view not found"
the element of the first button is this:
<a style="position: relative" href="javascript:showHide('dialog-login');" class="green-btn user-login top-right-5">Client Login</a>
and then the actual login button is another javascript line:
<a href="javascript:loginDM();" style=" color: #fff; height: 40px; font-size: 29px; border-radius: 10px 0px 10px 10px;" class="green-btn bot-left-10"> Login</a>
Any tips as to how to approach this would be really appreciated!