Skip to content

Commit

Permalink
Fix #23
Browse files Browse the repository at this point in the history
  • Loading branch information
alcounit committed Mar 10, 2021
1 parent 60217b0 commit 0990701
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (app *App) HandleSession(w http.ResponseWriter, r *http.Request) {
mergo.Merge(&caps, *fmc)
caps.ValidateCapabilities()

browser, err = app.browsers.Find(caps.BrowserName, caps.BrowserVersion)
browser, err = app.browsers.Find(caps.GetBrowserName(), caps.BrowserVersion)
if err == nil {
break
}
Expand Down
4 changes: 2 additions & 2 deletions selenium/selenium.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ type Capabilities struct {

//ValidateCapabilities ...
func (c *Capabilities) ValidateCapabilities() {
if c.W3CBrowserVersion == "" {
if c.W3CBrowserVersion != "" {
c.BrowserVersion = c.W3CBrowserVersion
}

if c.WC3PlatformName == "" {
if c.WC3PlatformName != "" {
c.Platform = c.WC3PlatformName
}
}
Expand Down

0 comments on commit 0990701

Please sign in to comment.