Skip to content

Commit 2abe32a

Browse files
DesktopBrowserCompatibilityTest has been improved. To file path to the page snapshot transforms to URI
1 parent 016394b commit 2abe32a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/io/appium/java_client/pagefactory_tests/DesktopBrowserCompatibilityTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ private void test(){
7171
WebDriver driver = new ChromeDriver();
7272
try {
7373
PageFactory.initElements(new AppiumFieldDecorator(driver, IMPLICITLY_WAIT, TimeUnit.SECONDS), this);
74-
driver.get("file:///" + new File("src/test/java/io/appium/java_client/hello appium - saved page.htm").getAbsolutePath());
74+
driver.get(new File("src/test/java/io/appium/java_client/hello appium - saved page.htm").toURI().toString());
7575
assertNotEquals(0, foundLinks.size());
7676
assertNotEquals(0, main.size());
7777
assertEquals(null, trap1);

0 commit comments

Comments
 (0)