We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
52.0.2
Linux Mint - Rebecca Python - 2.7.6 Selenium - 3.3.3 Geckodriver - 0.15.0
Guys, I am getting the above error when trying to run the following script :-
import time from selenium import webdriver from selenium.webdriver.firefox.firefox_binary import FirefoxBinary from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.common.exceptions import TimeoutException, \ ElementNotVisibleException binary = FirefoxBinary(r'/usr/local/bin/firefox') caps = DesiredCapabilities.FIREFOX.copy() caps['marionette'] = True def init_driver(): driver = webdriver.Firefox(firefox_binary=binary, capabilities=caps, executable_path=r'/usr/local/bin/geckodriver') driver.wait = WebDriverWait(driver, 5) return driver def lookup(driver, query): driver.get("http://www.google.com") try: box = driver.wait.until(EC.presence_of_element_located( (By.NAME, "q"))) button = driver.wait.until(EC.element_to_be_clickable( (By.NAME, "btnK"))) box.send_keys(query) try: button.click() except ElementNotVisibleException: button = driver.wait.until(EC.visibility_of_element_located( (By.NAME, "btnG"))) button.click() except TimeoutException: print("Box or Button not found in google.com") if __name__ == "__main__": driver = init_driver() lookup(driver, "Selenium") time.sleep(5) driver.quit()
I have followed all the steps described in this post but still it ain't working! Please help me with this!
The text was updated successfully, but these errors were encountered:
make your /usr/local/bin/geckodriver executable:
/usr/local/bin/geckodriver
$ sudo chmod +x /usr/local/bin/geckodriver'
Sorry, something went wrong.
I already did that @cgoldberg! Upon doing ls -ld, it shows "drwxrwxrwx"
No branches or pull requests
Firefox Version
52.0.2
Platform
Linux Mint - Rebecca
Python - 2.7.6
Selenium - 3.3.3
Geckodriver - 0.15.0
Guys, I am getting the above error when trying to run the following script :-
I have followed all the steps described in this post but still it ain't working!
Please help me with this!
The text was updated successfully, but these errors were encountered: