from selenium import webdriver
d = webdriver.Chrome("/usr/bin/chromedriver")
d.get("https://google.co.in")
error:
[Running] python -u "/home/nourhene/py/hi.py"
Traceback (most recent call last):
File "/home/nourhene/py/hi.py", line 11, in <module>
d = webdriver.Chrome("/usr/bin/chromedriver")
File "/home/nourhene/.local/lib/python2.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 81, in __init__
desired_capabilities=desired_capabilities)
File "/home/nourhene/.local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "/home/nourhene/.local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/home/nourhene/.local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/home/nourhene/.local/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: crashed
(Driver info: chromedriver=2.26.436382 (70eb799287ce4c2208441fc057053a5b07ceabac),platform=Linux 4.4.0-19041-Microsoft x86_64)
python selenium webdriver chrome
241 Views Asked by nourhene hammouda At
1
There are 1 best solutions below
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in SELENIUM
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Compound classes stored in an array are not accessible in selenium java
- Fail Upload file in Selenium webdriver using Robot class
- Selenium crashes Firefox, how to reset the used profile / where is the default profile?
- Selenium Driver Service not found exception
- Unable to read excel if cell/column has drop down list enabled for Selenium webdriver TestNG
- Selenium C#: Store element's position on graph as a variable
- Selenium webdriver for handling dynamic ckeditors
- What can cause `UnreachableBrowserException: Could not start a new session`?
- Click on the 'compose' button in gmail inbox page
- python - selenium change frame not working
- Selecting Options from a Drop Down Menu in C# using Selenium
- Validation without skipping the test cases if one fails
- How can i increase session timeout (which is 30 minutes by default)
- Load additional CONFIG file with values
Related Questions in SELENIUM-WEBDRIVER
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Fail Upload file in Selenium webdriver using Robot class
- How do I use DataProvider with Apache POI
- I am not able to get Exact frame and not able to select exact element using selenium web drive
- Selenium C#: Store element's position on graph as a variable
- Selenium webdriver for handling dynamic ckeditors
- Easy to use multi browser automation tool for record, parameterize, debug, batch run of suites and results report
- Not able to select option from dropdown box in an android mobile application
- What can cause `UnreachableBrowserException: Could not start a new session`?
- Click on the 'compose' button in gmail inbox page
- python - selenium change frame not working
- How to select value from dropdown and double click on same selected item in selenium webdriver.?
- Selenium Firefox webdriver does not adopt profile
- Cannot assign an inst variable in Switch "--user-data-dir" in Selenium Wedriver Chrome
- Phantomjs fails when Protractor is run with selenium hub
Related Questions in SELENIUM-CHROMEDRIVER
- Cannot assign an inst variable in Switch "--user-data-dir" in Selenium Wedriver Chrome
- How does Nunit generate TestResult.xml
- driver.switchTo().defaultContent(); returning error when using current version of Chrome
- Open multiple sessions with Selenium-ChromeDriver
- Chrome driver hangs when using user data
- Firefox Selenium test freezes sometimes
- Selenium WebDriver Error on Windows: logging.js not found
- Selenium components for CodedUI does not launch chromedriver.exe
- How to wait for page to load completely using JavaScript in Selenium
- Selenium Webdriver _ issue related to 32bit/64bit server
- Launch Watir/Selenium Chrome driver binary from an arbitrary location
- selenium chromedriver: chrome.exe open the python logging filehandler file
- WebElement to do a google search
- Python Selenium return text, unicode object is not callable
- Setting up Protractor to automatically open and close Selenium
Related Questions in SELENIUM-WEBDRIVER-PYTHON
- Null values found in w3c capabilities. Keys are: [browserVersion] - Selenium Grid 4 with python
- Getting data based on multiple values in Selenium
- Error while trying to locate Web Elements with Selenium WebDriver
- How to click menu element in Wordpress admin panel using Selenium
- Python - Selenium autmation tab is getting closed automatically after execution
- Control Vivaldi browser
- Send keys to active element in Selenium Python
- How to login to `moz.com` with selenium?
- How can I adapt the following code to run in headless mode?
- How to select prompts on a dropdown menu using Selenium and Python
- How do I scrape multiple URLs using Selenium WebDriver?
- Using Selenium+Python, I am finding an element with the find element command, but the element is dynamic, how can I prevent it throwing an exception?
- python selenium webdriver chrome
- My xpath is not working - invalid selector: Unable to locate an element with the xpath expression
- The term "'pip' is not recognized as the name of a cmdlet, function, script file, or operable program" error installing Selenium Python bindings
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You are on Windows so it should be:
Instead of: