un4ckn0wl3z / AutomateSendingFbMessengerToAllFriends

Python+Selenium | Flood Facebook Messenger
4 stars 3 forks source link

Error with Webdriver and xpath expression #1

Open david-vendel opened 6 years ago

david-vendel commented 6 years ago

Hey, I have a problem probably locating firefox.exe, even when I changed Program Files for x86 one.. I use Win10 Traceback (most recent call last): File "as.py", line 75, in <module> fox.AutomateFox() File "as.py", line 12, in AutomateFox driver = webdriver.Firefox(firefox_binary=binary) File "C:\Users\David\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 152, in __init__ self.service.start() File "C:\Users\David\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\common\service.py", line 83, in start os.path.basename(self.path), self.start_error_message) selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.

david-vendel commented 6 years ago

OK I have solved this by adding Mozilla Firefox folder to PATH.

david-vendel commented 6 years ago

I have another issue now: After sign up, it sais:

Given xpath expression "XPATH SIGNATURE" is invalid: SyntaxError: The expression is not a legal expression.