File tree 1 file changed +0
-14
lines changed
visual-dotnet/SauceLabs.Visual
1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -43,20 +43,6 @@ public static Region FromName(string name)
43
43
} ;
44
44
}
45
45
46
- public static Region FromWebDriverUrl ( string url )
47
- {
48
- var parsedUrl = new Uri ( url ) ;
49
- return parsedUrl . Host switch
50
- {
51
- "ondemand.saucelabs.com" => UsWest1 ,
52
- "ondemand.us-west-1.saucelabs.com" => UsWest1 ,
53
- "ondemand.eu-central-1.saucelabs.com" => EuCentral1 ,
54
- "ondemand.us-east-4.saucelabs.com" => UsEast4 ,
55
- "ondemand.staging.saucelabs.net" => Staging ,
56
- _ => throw new VisualClientException ( $ "{ parsedUrl . Host } is not recognized as Sauce Labs region")
57
- } ;
58
- }
59
-
60
46
public static Region UsWest1 => new Region ( "https://api.us-west-1.saucelabs.com/v1/visual/graphql" ) ;
61
47
public static Region UsEast4 => new Region ( "https://api.us-east-4.saucelabs.com/v1/visual/graphql" ) ;
62
48
public static Region EuCentral1 => new Region ( "https://api.eu-central-1.saucelabs.com/v1/visual/graphql" ) ;
You can’t perform that action at this time.
0 commit comments