fork(3) download
  1. from selenium import webdriver
  2. import time
  3. from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
  4. from selenium.webdriver.common.keys import Keys
  5.  
  6. binary = FirefoxBinary(r'C:\Program Files (x86)\Mozilla Firefox\firefox.exe') #location of firefox.exe
  7. b = webdriver.Firefox(firefox_binary=binary)
  8.  
  9. b.get('http://w...content-available-to-author-only...p.com')
  10. raw_input()
  11. print("Success!!!")
  12. elem = b.find_element_by_xpath('//span[contains(text(),"Name of group or your friend!")]') #modify here!
  13. elem.click()
  14. elem1 = b.find_elements_by_class_name('input')
  15. while True:
  16. elem1[1].send_keys('Message That you want to send!')
  17. b.find_element_by_class_name('send-container').click()
  18.  
Runtime error #stdin #stdout #stderr 0s 9024KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 1, in <module>
ImportError: No module named selenium