Skip to content

Commit 998fe67

Browse files
Merge pull request #22 from serenissimus/master
Fix python selenium capabilities comparator
2 parents 9bd4a47 + 6210aac commit 998fe67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pool/capabilities/comparator.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ func (c *Comparator) Compare(desired Capabilities, available Capabilities) bool
3838
if !c.isRegistered(name) {
3939
continue
4040
}
41+
if name == "platform" && currCap == "ANY" {
42+
currCap = available[name]
43+
}
4144
if !reflect.DeepEqual(currCap, available[name]) {
4245
return false
4346
}

0 commit comments

Comments
 (0)