-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
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
[🐛 Bug]: SessionNotCreatedException on GitHub Actions on Ubuntu 24.04 #14609
Comments
@madebr, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
What if option |
I bumped the emscripten job to ubuntu-24.04 and selenium fails to "obtain a working Selenium Manager binary". Unable to obtain working Selenium Manager binaryhttps://github.com/madebr/SDL/actions/runs/11935153665/job/33265980644#step:25:46
I'm using |
@bonigarcia Is this a known issue? Any suggestions from your end? Thank you! |
There are similar issues to this, and they are related to the use of a custom Python package manager. For example: See this comment: |
Using selenium from pypi also fails. Log extract
(We don't use |
Possibly related: - electron/electron#41066 - SeleniumHQ/selenium#14609
* fix(deps): update all non-major dependencies * Downgrade Ubuntu Possibly related: - electron/electron#41066 - SeleniumHQ/selenium#14609 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Nathan Bierema <[email protected]>
Also hitting it: Droplet Instance Install: apt install -y python3 python3-pip
pip install uv --break-system-packages
uv venv
uv pip install seleniumbase Then I paste this script in from seleniumbase import BaseCase
BaseCase.main(__name__, __file__) # Call pytest
class MyTestClass(BaseCase):
def test_swag_labs(self):
self.open("https://www.saucedemo.com")
self.type("#user-name", "standard_user")
self.type("#password", "secret_sauce\n")
self.assert_element("div.inventory_list")
self.click('button[name*="backpack"]')
self.click("#shopping_cart_container a")
self.assert_text("Backpack", "div.cart_item")
self.click("button#checkout")
self.type("input#first-name", "SeleniumBase")
self.type("input#last-name", "Automation")
self.type("input#postal-code", "77123")
self.click("input#continue")
self.click("button#finish")
self.assert_text("Thank you for your order!") This is the output I get back:
Most likely this can be fixed with a helpful error message. It's on a worker machine and remote debugging isn't easy. Can anyone help me figure out a work around? I'm guessing it's probably the binary failing to start. Process failure message seems to be swallowed up. Devs, can you insert a warning with whatever subprocess.run was streaming? |
Are you on Ubuntu 24? There's a known compatibility issue. Downgrade to Ubuntu 22 |
That's what we (=libsdl-org/SDL) are doing currently. |
Recently, GitHub updated ubuntu-latest from 22.04 to 24.04.
Refer to an explanation https://stackoverflow.com/questions/70385737/selenium-common-exceptions-invalidargumentexception-message-invalid-argument Update ChromeOptions/EdgeOptions always append argument |
I'm using the pypi selenium package. |
Actually, this change can be done on your end. If you are using Python Selenium, I think your code where WebDriver is created looks like options = webdriver.ChromeOptions()
options.add_argument("--no-sandbox")
driver = webdriver.Chrome(options=options) |
Yup, that makes ci complete! Thank you very much for the help! |
What happened?
We (=the libsdl-org/SDL project) are using Selenium to run the emscripten tests in ci.
When bumping the os from
ubuntu-22.04
toubuntu-24.04
, all tests fail.Link to a "good log".
Link to a "bad log"
--headless
mode, and are not adding other argumentsHow can we reproduce the issue?
Visit https://github.com//SDL-test/actions in your browser to see the output.
Relevant log output
Operating System
Ubuntu 24.04
Selenium version
Python, 4.25.0
What are the browser(s) and version(s) where you see this issue?
Chrome 132.0.6781.0
What are the browser driver(s) and version(s) where you see this issue?
ChromeDrive 132.0.6781.0
Are you using Selenium Grid?
n/a
The text was updated successfully, but these errors were encountered: