Skip to content

Commit f461e88

Browse files
required binary for Windows
1 parent 770450f commit f461e88

4 files changed

Lines changed: 6 additions & 0 deletions

File tree

sample-code/apps/chromedriverWin

4.78 MB
Binary file not shown.

sample-code/examples/java/junit/src/test/java/com/saucelabs/appium/page_object/widgets/HtmlOverrideWidgetTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import io.appium.java_client.pagefactory.AppiumFieldDecorator;
44
import io.appium.java_client.pagefactory.TimeOutDuration;
5+
import org.apache.commons.io.FileUtils;
56
import org.apache.commons.lang3.StringUtils;
67
import org.junit.AfterClass;
78
import org.junit.Before;
@@ -28,6 +29,7 @@ public class HtmlOverrideWidgetTest implements WidgetTest{
2829
public static void beforeClass() throws Exception {
2930

3031
if (Platform.getCurrent().is(Platform.WINDOWS)) {
32+
FileUtils.copyFile(new File("../../../apps/chromedriverWin"), new File("../../../apps/chromedriver.exe"));
3133
System.setProperty(ChromeDriverService.CHROME_DRIVER_EXE_PROPERTY,
3234
new File("../../../apps/chromedriver.exe").getAbsolutePath());
3335
}

sample-code/examples/java/junit/src/test/java/com/saucelabs/appium/page_object/widgets/combined/HtmlCombinedWidgetTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import com.saucelabs.appium.page_object.widgets.WidgetTest;
55
import io.appium.java_client.pagefactory.AppiumFieldDecorator;
66
import io.appium.java_client.pagefactory.TimeOutDuration;
7+
import org.apache.commons.io.FileUtils;
78
import org.apache.commons.lang3.StringUtils;
89
import org.junit.AfterClass;
910
import org.junit.Before;
@@ -30,6 +31,7 @@ public class HtmlCombinedWidgetTest implements WidgetTest {
3031
public static void beforeClass() throws Exception {
3132

3233
if (Platform.getCurrent().is(Platform.WINDOWS)) {
34+
FileUtils.copyFile(new File("../../../apps/chromedriverWin"), new File("../../../apps/chromedriver.exe"));
3335
System.setProperty(ChromeDriverService.CHROME_DRIVER_EXE_PROPERTY,
3436
new File("../../../apps/chromedriver.exe").getAbsolutePath());
3537
}

sample-code/examples/java/junit/src/test/java/com/saucelabs/appium/page_object/widgets/html/HtmlWidgetTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import com.saucelabs.appium.page_object.widgets.WidgetTest;
55
import io.appium.java_client.pagefactory.AppiumFieldDecorator;
66
import io.appium.java_client.pagefactory.TimeOutDuration;
7+
import org.apache.commons.io.FileUtils;
78
import org.apache.commons.lang3.StringUtils;
89
import org.junit.AfterClass;
910
import org.junit.Before;
@@ -30,6 +31,7 @@ public class HtmlWidgetTest implements WidgetTest {
3031
public static void beforeClass() throws Exception {
3132

3233
if (Platform.getCurrent().is(Platform.WINDOWS)) {
34+
FileUtils.copyFile(new File("../../../apps/chromedriverWin"), new File("../../../apps/chromedriver.exe"));
3335
System.setProperty(ChromeDriverService.CHROME_DRIVER_EXE_PROPERTY,
3436
new File("../../../apps/chromedriver.exe").getAbsolutePath());
3537
}

0 commit comments

Comments
 (0)