Advertisement
Guest User

Galileocloudlogin

a guest
May 23rd, 2018
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.66 KB | None | 0 0
  1. from selenium import webdriver
  2.  
  3.  
  4. brow = webdriver.Firefox()
  5. brow.get('https://gateway01.galileocloud.net')
  6. print('Opened the browser')
  7.  
  8.                      
  9. username = brow.find_element_by_css_selector('div.field:nth-child(2) > div:nth-child(2)')
  10. username.send_keys('dbrooks@galileocloud.net')
  11. print('Inserted Username')
  12.  
  13. pword = brow.find_element_by_css_selector('div.field:nth-child(4) > div:nth-child(2) > input:nth-child(1)')
  14. pword.send_keys('WrongPassword')
  15. print('Insterted Password')
  16.  
  17. agree = brow.find_element_by_css_selector('div.field:nth-child(7) > input:nth-child(1)')
  18. agree.click()
  19. print('Clicked Agree')
  20.  
  21. submit = brow.find_element_by_css_selector('#Log_On')
  22. submit.click()
  23.  
  24. print('clicked submit')
  25.  
  26.  
  27. ________________Error I get when running program_____________________
  28.  
  29. Traceback (most recent call last):
  30.   File "C:\Python\Scripts\galileoLogin.py", line 10, in <module>
  31.     username.send_keys('dbrooks@galileocloud.net')
  32.   File "C:\Python\lib\site-packages\selenium\webdriver\remote\webelement.py", line 479, in send_keys
  33.     'value': keys_to_typing(value)})
  34.   File "C:\Python\lib\site-packages\selenium\webdriver\remote\webelement.py", line 628, in _execute
  35.     return self._parent.execute(command, params)
  36.   File "C:\Python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 314, in execute
  37.     self.error_handler.check_response(response)
  38.   File "C:\Python\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
  39.     raise exception_class(message, screen, stacktrace)
  40. selenium.common.exceptions.ElementNotInteractableException: Message: Element <div class="right"> is not reachable by keyboard
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement