3
3
import com .microsoft .playwright .Locator ;
4
4
import com .microsoft .playwright .Page ;
5
5
import com .microsoft .playwright .options .AriaRole ;
6
+ import com .nci .automation .utils .CucumberLogUtils ;
6
7
import com .nci .automation .utils .EncryptionUtils ;
7
8
import com .nci .automation .utils .MiscUtils ;
8
9
import com .nci .automation .web .ConfUtils ;
9
10
import com .nci .automation .web .EnvUtils ;
10
11
import com .nci .automation .web .PlaywrightUtils ;
12
+ import com .nci .automation .web .WebDriverUtils ;
11
13
import io .cucumber .java .en .Given ;
14
+ import org .testng .Assert ;
15
+
16
+ import java .util .ArrayList ;
17
+ import java .util .Arrays ;
18
+ import java .util .List ;
12
19
13
20
public class ApplicantProfileSteps {
14
21
@@ -33,6 +40,15 @@ public void user_is_on_scss_landing_page_and_user_is_pw(String string) {
33
40
// PlaywrightUtils.page.getByRole(AriaRole.RADIO, new Page.GetByRoleOptions().setName("Abhishek Desai Abhishek Desai")).click();
34
41
PlaywrightUtils .page .getByRole (AriaRole .BUTTON , new Page .GetByRoleOptions ().setName ("Impersonate user" )).click ();
35
42
PlaywrightUtils .page .navigate (EnvUtils .getApplicationUrl ("AppTracker" ));
43
+ WebDriverUtils .log .info ("TESTING*************" );
44
+
45
+ try {
46
+ Assert .assertEquals ("Test" , "test" );
47
+ }catch (AssertionError e ){
48
+ CucumberLogUtils .scenario .log (e .getMessage ());
49
+ WebDriverUtils .log .error (e .getMessage ());
50
+ }
51
+
36
52
}
37
53
38
54
@ Given ("User is on Profile tab - PW" )
0 commit comments