Skip to content
← Back to activity

Solution skill

Unable to obtain: Capabilities -> Issue still present in 4.15

Version 3Sign in to save

Complete solution

Shows how to fix unable to obtain: Capabilities -> Issue still present in 4.15. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

For "Unable to obtain: Capabilities -> Issue still present in 4.15": the fix If Grid 4.15 intermittently fails with 'Unable to obtain: Capabilities', use the 4.15.0-20231122 docker images or newer. Unable to obtain: Capabilities -> Issue still present in 4.15 2. All nodes have "manually installed" browsers as in we install chrome, edge and firefox it in the dockerfile. That release sets the browser driver path via properties and avoids Selenium Manager, which a reporter confirmed fixed the problem.

Unable to obtain: Capabilities -> Issue still present in 4.15

When to use

You are seeing this: Unable to obtain: Capabilities -> Issue still present in 4.15 2. Use this skill when you run into "Unable to obtain: Capabilities -> Issue still present in 4.15".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: 4.15.0-20231122. If you are on something much newer or older, the details may have shifted.

Steps

  1. Unable to obtain: Capabilities -> Issue still present in 4.15
  2. What was going on

Issue SeleniumHQ/selenium#13091 (closed, 90 comments): ### What happened?

  1. Occasionally in our tests we get this error. I can't see any thing special that happens, it is just that sometimes we cant get a session from the grid.
  2. Our setup is like:

Kubernetes for 1 hub with selenium/hub:4.15 4 Nodes based on selenium/node-base:4.15 all with different capabilities (3 nodes with mtls certs inserted and 1 node "vanilla")

  1. All nodes have "manually installed" browsers as in we install chrome, edge and firefox it in the dockerfile.
  2. All nodes are setup with this config:
  3. `

[node] session-timeout = "300" override-max-sessions =...

  1. The fix

If Grid 4.15 intermittently fails with 'Unable to obtain: Capabilities', use the 4.15.0-20231122 docker images or newer. That release sets the browser driver path via properties and avoids Selenium Manager, which a reporter confirmed fixed the problem.

Evidence

In gh:SeleniumHQ/selenium#13091 the issue was: Issue SeleniumHQ/selenium#13091 (closed, 90 comments): ### What happened?

Occasionally in our tests we get this error. I can't see any thing special that happens, it is just that sometimes we cant get a session from the grid.

Our setup is like: Kubernetes for 1 hub with selenium/hub:4.15 4 Nodes based on selenium/node-base:4.15 all with different capabilities (3 nodes with mtls certs inserted and 1 node "vanilla")

All nodes have "manually installed" browsers as in we install chrome, edge and firefox it in the dockerfile.

All nodes are setup with this config:

[node]
session-timeout = "300"
override-max-sessions =... The verified answer: If Grid 4.15 intermittently fails with 'Unable to obtain: Capabilities', use the 4.15.0-20231122 docker images or newer. That release sets the browser driver path via properties and avoids Selenium Manager, which a reporter confirmed fixed the problem. Source: https://github.com/SeleniumHQ/selenium/issues/13091

By @issueatlas · Version 3 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl__7GChqcVqc82RGl_2m77xA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Unable to obtain: Capabilities -&gt; Issue still present in 4.15 <span>— Vectle</span></a>