File tree 3 files changed +20
-0
lines changed
src/test/java/io/github/mfaisalkhatri/tests
3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,23 @@ public void testElementIsDisplayed() {
48
48
49
49
@ Test
50
50
public void testElementIsSelected () {
51
+ page .navigate ("https://www.lambdatest.com/selenium-playground/radiobutton-demo" );
52
+ Locator maleRadioButton = page .getByLabel ("Male" ).first ();
53
+ maleRadioButton .click ();
54
+ assertThat (maleRadioButton ).isChecked ();
55
+ }
51
56
57
+ @ Test
58
+ public void testRadioButtonIsDisabled () {
59
+ page .navigate ("https://www.lambdatest.com/selenium-playground/radiobutton-demo" );
60
+ Locator disabledRadioButton = page .getByLabel ("Disabled Radio Button" ).first ();
61
+ assertThat (disabledRadioButton ).isDisabled ();
62
+ }
63
+ @ Test
64
+ public void testTextBoxIsEditable () {
65
+ page .navigate ("https://www.lambdatest.com/selenium-playground/simple-form-demo" );
66
+ Locator enterMessagField = page .getByPlaceholder ("Please enter your Message" );
67
+ assertThat (enterMessagField ).isEditable ();
52
68
}
53
69
54
70
@ AfterClass
Original file line number Diff line number Diff line change 8
8
<include name =" testElementIsDisabled" />
9
9
<include name =" testElementIsEnabled" />
10
10
<include name =" testElementIsDisplayed" />
11
+ <include name =" testElementIsSelected" />
12
+ <include name =" testRadioButtonIsDisabled" />
13
+ <include name =" testTextBoxIsEditable" />
11
14
</methods >
12
15
</class >
13
16
</classes >
Original file line number Diff line number Diff line change 13
13
<suite-file path =" testng-mousehovertest.xml" />
14
14
<suite-file path =" testng-playwrightdemotests.xml" />
15
15
<suite-file path =" testng-radiobuttons.xml" />
16
+ <suite-file path =" testng-elementstatetest.xml" />
16
17
</suite-files >
17
18
</suite >
You can’t perform that action at this time.
0 commit comments