Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from selenium import webdriver
- brow = webdriver.Firefox()
- brow.get('https://gateway01.galileocloud.net')
- print('Opened the browser')
- username = brow.find_element_by_css_selector('div.field:nth-child(2) > div:nth-child(2)')
- username.send_keys('dbrooks@galileocloud.net')
- print('Inserted Username')
- pword = brow.find_element_by_css_selector('div.field:nth-child(4) > div:nth-child(2) > input:nth-child(1)')
- pword.send_keys('WrongPassword')
- print('Insterted Password')
- agree = brow.find_element_by_css_selector('div.field:nth-child(7) > input:nth-child(1)')
- agree.click()
- print('Clicked Agree')
- submit = brow.find_element_by_css_selector('#Log_On')
- submit.click()
- print('clicked submit')
- ________________Error I get when running program_____________________
- Traceback (most recent call last):
- File "C:\Python\Scripts\galileoLogin.py", line 10, in <module>
- username.send_keys('dbrooks@galileocloud.net')
- File "C:\Python\lib\site-packages\selenium\webdriver\remote\webelement.py", line 479, in send_keys
- 'value': keys_to_typing(value)})
- File "C:\Python\lib\site-packages\selenium\webdriver\remote\webelement.py", line 628, in _execute
- return self._parent.execute(command, params)
- File "C:\Python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 314, in execute
- self.error_handler.check_response(response)
- File "C:\Python\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
- raise exception_class(message, screen, stacktrace)
- selenium.common.exceptions.ElementNotInteractableException: Message: Element <div class="right"> is not reachable by keyboard
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement