schollz / twittermatic

7 stars 3 forks source link

Error replying using windows phantomjs #12

Open schollz opened 9 years ago

schollz commented 9 years ago

Need to check the CSS for Replying...

musicsuggestions.json: INFO     Clicking reply
Traceback (most recent call last):
  File "lib.py", line 551, in _processTweet
    self._clickReply(tweetbox)
  File "lib.py", line 711, in _clickReply
    By.CSS_SELECTOR, ".tweet-box.rich-editor.notie")
  File "/usr/lib/python3.4/site-packages/selenium/webdriver/remote/webelement.py", line 474, in find_element
    {"using": by, "value": value})['value']
  File "/usr/lib/python3.4/site-packages/selenium/webdriver/remote/webelement.py", line 454, in _execute
    return self._parent.execute(command, params)
  File "/usr/lib/python3.4/site-packages/selenium/webdriver/remote/webdriver.py", line 201, in execute
    self.error_handler.check_response(response)
  File "/usr/lib/python3.4/site-packages/selenium/webdriver/remote/errorhandler.py", line 181, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: {"errorMessage":"Unable to find element with css selector '.tweet-box.rich-editor.notie'","request":{"headers":{"Accept":"application/json","Accept-Encoding":"identity","Connection":"close","Content-Length":"147","Content-Type":"application/json;charset=UTF-8","Host":"127.0.0.1:49247","User-Agent":"Python-urllib/3.4"},"httpVersion":"1.1","method":"POST","post":"{\"using\": \"css selector\", \"value\": \".tweet-box.rich-editor.notie\", \"sessionId\": \"c08a2270-70e8-11e5-8cb1-a3c559ee296c\", \"id\": \":wdc:1444658092576\"}","url":"/element","urlParsed":{"anchor":"","query":"","file":"element","directory":"/","path":"/element","relative":"/element","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/element","queryKey":{},"chunks":["element"]},"urlOriginal":"/session/c08a2270-70e8-11e5-8cb1-a3c559ee296c/element/%3Awdc%3A1444658092576/element"}}