Skip to content

Custom driver provider tests #102

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
2d3dbb3
Merge pull request #1 from alfa-laboratory/master
snfrolov May 4, 2018
555e89e
Merge pull request #2 from alfa-laboratory/master
snfrolov May 11, 2018
e419e51
Merge pull request #3 from alfa-laboratory/master
snfrolov May 23, 2018
a2adfe1
Merge pull request #4 from alfa-laboratory/master
snfrolov May 25, 2018
9f5542a
Merge pull request #5 from alfa-laboratory/master
snfrolov May 25, 2018
159f741
Merge pull request #6 from alfa-laboratory/master
snfrolov May 28, 2018
454d6fa
Merge pull request #7 from alfa-laboratory/master
snfrolov Jun 4, 2018
89d96ff
Merge pull request #8 from alfa-laboratory/master
snfrolov Jun 9, 2018
5eca9ba
Merge pull request #9 from alfa-laboratory/master
snfrolov Jul 2, 2018
0a7cd2e
Merge pull request #10 from alfa-laboratory/master
snfrolov Jul 19, 2018
89ead6f
Merge pull request #11 from alfa-laboratory/master
snfrolov Aug 18, 2018
e3de374
Merge pull request #12 from alfa-laboratory/master
snfrolov Aug 24, 2018
7b2f0a4
Merge pull request #13 from alfa-laboratory/master
snfrolov Sep 1, 2018
2195609
Merge pull request #14 from alfa-laboratory/master
snfrolov Sep 16, 2018
4d351f2
Merge pull request #15 from alfa-laboratory/master
snfrolov Sep 28, 2018
ca8f3af
customDriverProvider tests
Sep 30, 2018
1cd3465
Merge pull request #16 from alfa-laboratory/master
snfrolov Oct 5, 2018
0096cb7
Merge pull request #17 from alfa-laboratory/master
snfrolov Nov 25, 2018
15d225f
Merge pull request #18 from alfa-laboratory/master
snfrolov Dec 2, 2018
cd07746
Merge branch 'master' of https://github.com/snfrolov/akita into custo…
Dec 12, 2018
81c82c3
resolve merge conflict
Dec 12, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,4 @@ private Boolean getHeadless() {
Boolean isHeadlessSys = Boolean.parseBoolean(System.getProperty("selenide." + HEADLESS, "false"));
return isHeadlessApp || isHeadlessSys;
}


}
}
53 changes: 53 additions & 0 deletions src/test/java/ru/alfabank/core/CustomDriverProviderTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,57 @@ public void createFirefoxDriverTest() {
assertThat(currentDriver.getClass().getName(), is("org.openqa.selenium.firefox.FirefoxDriver"));
currentDriver.quit();
}

@Ignore
@Test
public void createOperaDriverTest() {
System.setProperty("browser", "opera");
CustomDriverProvider customDriverProvider = new CustomDriverProvider();
WebDriver currentDriver;
currentDriver = customDriverProvider.createDriver(new DesiredCapabilities());
assertThat(currentDriver.getClass().getName(), is("org.openqa.selenium.opera.OperaDriver"));
currentDriver.quit();
}

@Ignore
@Test
public void createEdgeDriverTest() {
System.setProperty("browser", "Edge");
CustomDriverProvider customDriverProvider = new CustomDriverProvider();
WebDriver currentDriver;
currentDriver = customDriverProvider.createDriver(new DesiredCapabilities());
assertThat(currentDriver.getClass().getName(), is("org.openqa.selenium.edge.EdgeDriver"));
currentDriver.quit();
}

@Ignore
@Test
public void createIEDriverTest() {
System.setProperty("browser", "internet explorer");
CustomDriverProvider customDriverProvider = new CustomDriverProvider();
WebDriver currentDriver;
currentDriver = customDriverProvider.createDriver(new DesiredCapabilities());
assertThat(currentDriver.getClass().getName(), is("org.openqa.selenium.ie.InternetExplorerDriver"));
currentDriver.quit();
}

@Test
public void createMobileDriverTest() {
System.setProperty("browser", "mobile");
CustomDriverProvider customDriverProvider = new CustomDriverProvider();
WebDriver currentDriver;
currentDriver = customDriverProvider.createDriver(new DesiredCapabilities());
assertThat(currentDriver.getClass().getName(), is("org.openqa.selenium.chrome.ChromeDriver"));
currentDriver.quit();
}

@Test
public void createDefaultDriverTest() {
System.setProperty("browser", "nonexistent");
CustomDriverProvider customDriverProvider = new CustomDriverProvider();
WebDriver currentDriver;
currentDriver = customDriverProvider.createDriver(new DesiredCapabilities());
assertThat(currentDriver.getClass().getName(), is("org.openqa.selenium.chrome.ChromeDriver"));
currentDriver.quit();
}
}