Comments (4)
@sociallistening, thank you for creating this issue. We will troubleshoot it as soon as we can.
Info for maintainers
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template
label.
If the issue is a question, add the I-question
label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted
label.
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable G-*
label, and it will provide the correct link and auto-close the
issue.
After troubleshooting the issue, please add the R-awaiting answer
label.
Thank you!
from selenium.
Use https://www.selenium.dev/documentation/selenium_manager/ instead of ChromeDriverManager
from selenium.
Use https://www.selenium.dev/documentation/selenium_manager/ instead of
ChromeDriverManager
i got
SessionNotCreatedException Traceback (most recent call last)
Cell In[20], line 50
47 chrome_options.add_argument('--lang=th')
49 # Use Selenium Manager to handle the driver
---> 50 driver = webdriver.Chrome(options=chrome_options)
52 def login(email, password):
53 logging.info("Attempting to log in...")
File ~\anaconda3\lib\site-packages\selenium\webdriver\chrome\webdriver.py:45, in WebDriver.init(self, options, service, keep_alive)
42 service = service if service else Service()
43 options = options if options else Options()
---> 45 super().init(
46 browser_name=DesiredCapabilities.CHROME["browserName"],
47 vendor_prefix="goog",
48 options=options,
49 service=service,
50 keep_alive=keep_alive,
51 )
File ~\anaconda3\lib\site-packages\selenium\webdriver\chromium\webdriver.py:66, in ChromiumDriver.init(self, browser_name, vendor_prefix, options, service, keep_alive)
57 executor = ChromiumRemoteConnection(
58 remote_server_addr=self.service.service_url,
59 browser_name=browser_name,
(...)
62 ignore_proxy=options._ignore_local_proxy,
63 )
65 try:
---> 66 super().init(command_executor=executor, options=options)
67 except Exception:
68 self.quit()
File ~\anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py:212, in WebDriver.init(self, command_executor, keep_alive, file_detector, options)
210 self._authenticator_id = None
211 self.start_client()
--> 212 self.start_session(capabilities)
214 self._websocket_connection = None
215 self._script = None
File ~\anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py:299, in WebDriver.start_session(self, capabilities)
292 """Creates a new session with the desired capabilities.
293
294 :Args:
295 - capabilities - a capabilities dict to start the session with.
296 """
298 caps = _create_caps(capabilities)
--> 299 response = self.execute(Command.NEW_SESSION, caps)["value"]
300 self.session_id = response.get("sessionId")
301 self.caps = response.get("capabilities")
File ~\anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py:354, in WebDriver.execute(self, driver_command, params)
352 response = self.command_executor.execute(driver_command, params)
353 if response:
--> 354 self.error_handler.check_response(response)
355 response["value"] = self._unwrap_value(response.get("value", None))
356 return response
File ~\anaconda3\lib\site-packages\selenium\webdriver\remote\errorhandler.py:229, in ErrorHandler.check_response(self, response)
227 alert_text = value["alert"].get("text")
228 raise exception_class(message, screen, stacktrace, alert_text) # type: ignore[call-arg] # mypy is not smart enough here
--> 229 raise exception_class(message, screen, stacktrace)
SessionNotCreatedException: Message: session not created
from disconnected: unable to connect to renderer
Stacktrace:
GetHandleVerifier [0x00007FF6E0B9B5D2+29090]
(No symbol) [0x00007FF6E0B0E689]
(No symbol) [0x00007FF6E09CB1CA]
(No symbol) [0x00007FF6E0A0CE6D]
(No symbol) [0x00007FF6E0A078E9]
(No symbol) [0x00007FF6E0A01E0A]
(No symbol) [0x00007FF6E0A5236D]
(No symbol) [0x00007FF6E0A51A20]
(No symbol) [0x00007FF6E0A46493]
(No symbol) [0x00007FF6E0A109B1]
(No symbol) [0x00007FF6E0A11B11]
GetHandleVerifier [0x00007FF6E0EB8C5D+3295277]
GetHandleVerifier [0x00007FF6E0F04843+3605523]
GetHandleVerifier [0x00007FF6E0EFA707+3564247]
GetHandleVerifier [0x00007FF6E0C56EB6+797318]
(No symbol) [0x00007FF6E0B1980F]
(No symbol) [0x00007FF6E0B153F4]
(No symbol) [0x00007FF6E0B15580]
(No symbol) [0x00007FF6E0B04A1F]
BaseThreadInitThunk [0x00007FF875F7257D+29]
RtlUserThreadStart [0x00007FF877D2AF28+40]
from selenium.
Hi, @sociallistening.
Please follow the issue template, we need more information to reproduce the issue.
Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.
Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.
Reply to this issue when all information is provided, thank you.
from selenium.
Related Issues (20)
- [🐛 Bug]: Error after updating to Chrome 128 HOT 7
- [🐛 Bug]: Race condition in ruby library for capybara system tests HOT 3
- [🐛 Bug]: Selenium edge driver cannot go to extension page using codes HOT 2
- [🐛 Bug]: eservice HOT 2
- [🐛 Bug]: "--headlessmode=new" with Chromedriver 128 in container results in SessionNotCreatedException HOT 5
- [🚀 Feature]: Make a separate patch release for the patch release artifacts HOT 1
- [🐛 Bug]: The URL transition method does not work. useAutomationExtension HOT 4
- [🐛 Bug]: DefaultSlotMatcher is considering extension capabilities to determine whether the slot matches the requested capabilities HOT 5
- [🐛 Bug]: Node not registering on Hub in the same machine for Client in their office N/W HOT 2
- [🐛 Bug]: Standalone server: "Internal Server Error" when starting new session via HTTP POST HOT 3
- [🚀 Feature]: `Service` shutting down via `__del__` is unintuitive (as `Remote` only consumes the service url) HOT 1
- [🐛 Bug]: "System.IO.IOException : Cannot access a closed stream" when disposing DevToolsSession HOT 5
- [🐛 Bug]: Grid is going down everyday and I need to manually restart the hub HOT 5
- [🐛 Bug]: NoAlertPresentException with Selenium Java 4.24.0 and Chrome under enableBiDi HOT 3
- [🐛 Bug]: Is it possible to run Selenium tests in headful mode using GitHub Actions? HOT 4
- [🐛 Bug]: [java] PageFactory.initElements overrides final fields HOT 2
- [🐛 Bug]: Invalid version returned by selenium.__version__ HOT 2
- [🐛 Bug]: Getting timeout error while executing scripts in parallel in Selenium 4.16.1 Grid HOT 2
- [🐛 Bug]: issue in managed download java example HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from selenium.