forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrowsers.rb
101 lines (99 loc) · 3.06 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
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",
},
"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?
},
"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?
},
"opera" => {
:python => {
:ignore => "opera",
:dir => "opera",
:file_string => "opera",
:class => "Opera"
},
:java => {
:class => "com.opera.core.systems.OperaDriver",
:deps => [ "//third_party/java/opera-driver" ]
},
:browser_name => "opera",
:available => opera?
},
"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?
}
}