8000 batch 1 · LambdaTest/java-testng-selenium@cd8e6b8 · GitHub
[go: up one dir, main page]

Skip to content

Commit cd8e6b8

Browse files
committed
batch 1
1 parent 9123a7a commit cd8e6b8

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed
-2.58 KB
Binary file not shown.

lambdatest.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ username: sirajk
66
accessKey:
77

88
# Hub URL (optional, will use default if not specified)
9-
hub: "https://hub.lambdatest.com/wd/hub"
10-
# hub: https://webhook.site/5da8d31d-ee6b-477b-b007-2aaf5aa3f2e9
9+
# hub: "https://hub.lambdatest.com/wd/hub"
10+
hub: "https://webhook.site/5da8d31d-ee6b-477b-b007-2aaf5aa3f2e9"
1111

1212
# Test Platforms
1313
platforms:
@@ -35,8 +35,8 @@ capabilities:
3535
lambdatest_options:
3636
tunnel: false
3737
tunnel_name: "my_tunnel"
38-
selenium_version: "4.0.0"
39-
appium_version: "1.20.0"
38+
seleniumVersion: "4.0.0"
39+
appiumVersion: "1.20.0"
4040

4141
# Framework Specific Options
4242
framework_options:

src/test/java/com/lambdatest/AutoHealingDemo.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package com.lambdatest;
22

33
import org.openqa.selenium.*;
4+
import org.openqa.selenium.chrome.ChromeDriver;
5+
import org.openqa.selenium.firefox.FirefoxDriver;
46
import org.openqa.selenium.remote.DesiredCapabilities;
57
import org.openqa.selenium.remote.RemoteWebDriver;
68
import org.testng.annotations.*;
@@ -44,12 +46,13 @@ public void testSetUp(String browser, String version, String platform, String re
4446

4547
try
4648
{
49+
driver= new ChromeDriver();
4750
// driver = new RemoteWebDriver(new URL("https://" + username + ":" + access_key + "@hub.lambdatest.com/wd/hub"), capabilities);
48-
driver = new RemoteWebDriver(new URL(""), new DesiredCapabilities());
51+
4952
}
50-
catch (MalformedURLException e)
53+
catch (Exception e)
5154
{
52-
System.out.println("Invalid grid URL");
55+
System.out.println("Invalid grid URL" + e.getMessage());
5356
}
5457
System.out.println("Started session");
5558
}

0 commit comments

Comments
 (0)
0