I am trying to login a webpage using Selenium webdriver in Google Chrome. The input box pop ups for login credentials don't have any ID or class. Inspect element features itself not there when I right click on the input box. When I click F12 and check the elements, the input box is not highlighted which means the input box is not part of html content.
When I load the URL, by default the focus goes to username box. So I wanted to use send_keys but this is not working without elements. Is there any other alternate method to send text to username & password fields?
Below is the code I tried.
driver = webdriver.Chrome(ChromeDriverManager().install())
driver.get('https://www.somewebsite.com/')
time.sleep(15)
action = ActionChains(driver)
action.send_keys('userxxxxx').perform()
action.send_keys(Keys.TAB).perform()
action.send_keys('pwdxxxxx')
action.send_keys(Keys.TAB).perform()
action.send_keys(Keys.ENTER).perform()
Attached the screenshot of right click and elements.
When I execute the above code, no error messages. It steps through the further line of codes.
How can I fix this?