Skip to content

Commit ea3b91c

Browse files
committed
[grid] Using the right caps to check se:cdp
1 parent 3e469f1 commit ea3b91c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎java/src/org/openqa/selenium/grid/node/local/LocalNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ private Session createExternalSession(ActiveSession other, URI externalUri,
463463
.copyOf(requestCapabilities.merge(other.getCapabilities()));
464464

465465
// Add se:cdp if necessary to send the cdp url back
466-
if (isSupportingCdp || requestCapabilities.getCapability("se:cdp") != null) {
466+
if (isSupportingCdp || toUse.getCapability("se:cdp") != null) {
467467
String cdpPath = String.format("/session/%s/se/cdp", other.getId());
468468
toUse = new PersistentCapabilities(toUse).setCapability("se:cdp", rewrite(cdpPath));
469469
}

0 commit comments

Comments
 (0)