forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrowsers.rb
120 lines (118 loc) · 3.72 KB
/
browsers.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
require 'rake-tasks/checks'
#:available => whether this browser is available on this computer. Defaults to true.
BROWSERS = {
"ff" => {
:python => {
:ignore => "firefox", # py.test string used for ignoring
:dir => "firefox", # Directory to put tests in/read tests from
:file_string => "ff", # Browser-string to use in test filenames
:class => "Firefox", # As per py/selenium/webdriver/__init__.py
:resources => [
{ "//javascript/firefox-driver:webdriver" => "selenium/webdriver/firefox/" },
{ "//cpp:noblur" => "selenium/webdriver/firefox/x86/x_ignore_nofocus.so" },
{ "//cpp:noblur64" => "selenium/webdriver/firefox/amd64/x_ignore_nofocus.so" }
]
},
:java => {
:class => "org.openqa.selenium.firefox.SynthesizedFirefoxDriver",
:deps => [ "//java/client/test/org/openqa/selenium/testing/drivers" ]
},
:browser_name => "firefox",
},
"marionette" => {
:python => {
:ignore => "marionette", # py.test string used for ignoring
:dir => "firefox", # Directory to put tests in/read tests from
:file_string => "marionette", # Browser-string to use in test filenames
:class => "Firefox", # As per py/selenium/webdriver/__init__.py
},
:java => {
:class => "org.openqa.selenium.firefox.SynthesizedFirefoxDriver",
:deps => [ "//java/client/test/org/openqa/selenium/testing/drivers" ]
},
:browser_name => "firefox",
},
"ie" => {
:python => {
:ignore => "ie",
:dir => "ie",
:file_string => "ie",
:class => "Ie"
},
:java => {
:class => "org.openqa.selenium.ie.InternetExplorerDriver",
:deps => [ "//java/client/src/org/openqa/selenium/ie:ie", "//cpp/iedriverserver:win32" ]
},
:browser_name => "internet explorer",
:available => windows?
},
"edge" => {
:python => {
:ignore => "edge",
:dir => "edge",
:file_string => "edge",
:class => "Edge"
},
:browser_name => "MicrosoftEdge",
:available => windows?
},
"chrome" => {
:python => {
:ignore => "chrome",
:dir => "chrome",
:file_string => "chrome",
:class => "Chrome"
},
:java => {
:class => "org.openqa.selenium.chrome.ChromeDriver",
:deps => [ "//java/client/src/org/openqa/selenium/chrome:chrome" ]
},
:browser_name => "chrome",
:available => chrome?
},
"blackberry" => {
:python => {
:ignore => "blackberry",
:dir => "blackberry",
:file_string => "blackberry",
:class => "BlackBerry",
:constructor_args => "device_password='password'"
},
:browser_name => "blackberry"
},
"phantomjs" => {
:python => {
:ignore => "phantomjs",
:dir => "phantomjs",
:file_string => "phantomjs",
:class => "PhantomJS",
},
:browser_name => "phantomjs"
},
"remote_firefox" => {
:python => {
:dir => "remote",
:file_string => "remote",
:deps => [:remote_client, :'selenium-server-standalone', '//java/server/test/org/openqa/selenium/remote/server/auth:server:uber'],
:custom_test_import => "from selenium.test.selenium.common import utils",
:custom_test_setup => "utils.start_server(module)",
:custom_test_teardown => "utils.stop_server(module)",
:class => "Remote",
:constructor_args => "desired_capabilities=webdriver.DesiredCapabilities.FIREFOX"
}
},
"safari" => {
:python => {
:ignore => "safari",
:dir => "safari",
:file_string => "safari",
:class => "Safari"
},
:java => {
:class => "org.openqa.selenium.safari.SafariDriver",
:deps => [ "//java/client/src/org/openqa/selenium/safari:safari" ]
},
:browser_name => "safari",
:available => mac?
}
}