@@ -23,6 +23,15 @@ public void setup(Method m, ITestContext ctx) throws MalformedURLException {
23
23
String username = System .getenv ("LT_USERNAME" ) == null ? "Your LT Username" : System .getenv ("LT_USERNAME" );
24
24
String authkey = System .getenv ("LT_ACCESS_KEY" ) == null ? "Your LT AccessKey" : System .getenv ("LT_ACCESS_KEY" );
25
25
;
26
+
27
+ /*
28
+ Steps to run Smart UI project (https://beta-smartui.lambdatest.com/)
29
+ Step - 1 : Change the hub URL to @beta-smartui-hub.lambdatest.com/wd/hub
30
+ Step - 2 : Add "smartUI.project": "<Project Name>" as a capability above
31
+ Step - 3 : Add "((JavascriptExecutor) driver).executeScript("smartui.takeScreenshot");" code wherever you need to take a screenshot
32
+ Note: for additional capabilities navigate to https://www.lambdatest.com/support/docs/test-settings-options/
33
+ */
34
+
26
35
String hub = "@hub.lambdatest.com/wd/hub" ;
27
36
28
37
DesiredCapabilities caps = new DesiredCapabilities ();
@@ -33,6 +42,11 @@ public void setup(Method m, ITestContext ctx) throws MalformedURLException {
33
42
caps .setCapability ("name" , m .getName () + this .getClass ().getName ());
34
43
caps .setCapability ("plugin" , "git-testng" );
35
44
45
+ /*
46
+ Enable Smart UI Project
47
+ caps.setCapability("smartUI.project", "<Project Name Java>");
48
+ */
49
+
36
50
String [] Tags = new String [] { "Feature" , "Magicleap" , "Severe" };
37
51
caps .setCapability ("tags" , Tags );
38
52
0 commit comments