File tree Expand file tree Collapse file tree 6 files changed +16
-5
lines changed
dotnet/SeleniumDocs/GettingStarted
java/src/test/java/dev/selenium/getting_started
kotlin/src/test/kotlin/dev/selenium/getting_started
python/tests/getting_started Expand file tree Collapse file tree 6 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 10
10
namespace SeleniumDocs . GettingStarted
11
11
{
12
12
[ TestClassCustom ]
13
+ [ Ignore ( "Running these tests can cause problems with other tests" ) ]
13
14
public class InstallDriversTest
14
15
{
15
16
[ TestMethod ]
@@ -42,7 +43,6 @@ public void FirefoxSession()
42
43
driver . Quit ( ) ;
43
44
}
44
45
45
- [ EnabledOnOs ( "WINDOWS" ) ]
46
46
[ TestMethod ]
47
47
public void InternetExplorerSession ( )
48
48
{
Original file line number Diff line number Diff line change 12
12
13
13
public class InstallDriversTest {
14
14
@ Test
15
+ @ Disabled ("Do not run in CI" )
15
16
public void chromeSession () {
16
17
WebDriverManager .chromedriver ().setup ();
17
18
@@ -21,6 +22,7 @@ public void chromeSession() {
21
22
}
22
23
23
24
@ Test
25
+ @ Disabled ("Do not run in CI" )
24
26
public void edgeSession () {
25
27
WebDriverManager .edgedriver ().setup ();
26
28
@@ -30,6 +32,7 @@ public void edgeSession() {
30
32
}
31
33
32
34
@ Test
35
+ @ Disabled ("Do not run in CI" )
33
36
public void firefoxSession () {
34
37
WebDriverManager .firefoxdriver ().setup ();
35
38
@@ -38,8 +41,8 @@ public void firefoxSession() {
38
41
driver .quit ();
39
42
}
40
43
41
- @ Disabled ("Only runs on Windows" )
42
44
@ Test
45
+ @ Disabled ("Do not run in CI" )
43
46
public void ieSession () {
44
47
WebDriverManager .iedriver ().setup ();
45
48
Original file line number Diff line number Diff line change @@ -12,28 +12,31 @@ import org.openqa.selenium.ie.InternetExplorerDriver
12
12
13
13
class InstallDriversTest {
14
14
@Test
15
+ @Disabled(" Do not run in CI" )
15
16
fun chromeSession () {
16
17
WebDriverManager .chromedriver().setup()
17
18
val driver: WebDriver = ChromeDriver ()
18
19
driver.quit()
19
20
}
20
21
21
22
@Test
23
+ @Disabled(" Do not run in CI" )
22
24
fun edgeSession () {
23
25
WebDriverManager .edgedriver().setup()
24
26
val driver: WebDriver = EdgeDriver ()
25
27
driver.quit()
26
28
}
27
29
28
30
@Test
31
+ @Disabled(" Do not run in CI" )
29
32
fun firefoxSession () {
30
33
WebDriverManager .firefoxdriver().setup()
31
34
val driver: WebDriver = FirefoxDriver ()
32
35
driver.quit()
33
36
}
34
37
35
- @Disabled(" Only runs on Windows" )
36
38
@Test
39
+ @Disabled(" Do not run in CI" )
37
40
fun ieSession () {
38
41
WebDriverManager .iedriver().setup()
39
42
val driver: WebDriver = InternetExplorerDriver ()
Original file line number Diff line number Diff line change 10
10
from webdriver_manager .microsoft import IEDriverManager
11
11
12
12
13
+ @pytest .mark .skip (reason = "Do not run in CI" )
13
14
def test_driver_manager_chrome ():
14
15
service = ChromeService (executable_path = ChromeDriverManager ().install ())
15
16
@@ -18,6 +19,7 @@ def test_driver_manager_chrome():
18
19
driver .quit ()
19
20
20
21
22
+ @pytest .mark .skip (reason = "Do not run in CI" )
21
23
def test_edge_session ():
22
24
service = EdgeService (executable_path = EdgeChromiumDriverManager ().install ())
23
25
@@ -26,6 +28,7 @@ def test_edge_session():
26
28
driver .quit ()
27
29
28
30
31
+ @pytest .mark .skip (reason = "Do not run in CI" )
29
32
def test_firefox_session ():
30
33
service = FirefoxService (executable_path = GeckoDriverManager ().install ())
31
34
@@ -34,7 +37,7 @@ def test_firefox_session():
34
37
driver .quit ()
35
38
36
39
37
- @pytest .mark .skip (reason = "only runs on Windows " )
40
+ @pytest .mark .skip (reason = "Do not run in CI " )
38
41
def test_ie_session ():
39
42
service = IEService (executable_path = IEDriverManager ().install ())
40
43
Original file line number Diff line number Diff line change 2
2
3
3
require 'spec_helper'
4
4
5
- RSpec . describe 'Install Drivers' do
5
+ RSpec . describe 'Install Drivers' , exclude : { ci : :github } do
6
6
it 'chrome session' do
7
7
require 'webdrivers'
8
8
Original file line number Diff line number Diff line change 19
19
guards = Selenium ::WebDriver ::Support ::Guards . new ( example ,
20
20
bug_tracker : bug_tracker )
21
21
guards . add_condition ( :platform , Selenium ::WebDriver ::Platform . os )
22
+ guards . add_condition ( :ci , Selenium ::WebDriver ::Platform . ci )
23
+
22
24
results = guards . disposition
23
25
send ( *results ) if results
24
26
end
You can’t perform that action at this time.
0 commit comments