Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#529 Cannot find capabilities with browserName=ie when grid hub url s…
…pecified in -Dremote - Set correct correct IE browser name - Add ability to set ie browser through "internet explorer" string
- Loading branch information
Boris Osipov
committed
May 11, 2017
1 parent
8463167
commit a305cbd
Showing
3 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/test/java/com/codeborne/selenide/webdriver/InternetExplorerNamesTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.codeborne.selenide.webdriver; | ||
|
||
import com.codeborne.selenide.Configuration; | ||
import org.junit.Test; | ||
|
||
import static com.codeborne.selenide.WebDriverRunner.isIE; | ||
import static org.hamcrest.MatcherAssert.assertThat; | ||
import static org.hamcrest.core.Is.is; | ||
|
||
public class InternetExplorerNamesTest { | ||
@Test | ||
public void internetExplorerShortNameTest() { | ||
Configuration.browser = "ie"; | ||
assertThat(isIE(), is(true)); | ||
} | ||
|
||
@Test | ||
public void internetExplorerFullNameTest() { | ||
Configuration.browser = "internet explorer"; | ||
assertThat(isIE(), is(true)); | ||
} | ||
} |