File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
integration-tests/src/test/java/eu/tsystems/mms/tic/testframework/test/guielement Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -64,11 +64,15 @@ Maven:
6464Create a Test Class and extend the TesterraTest class:
6565
6666```` java
67- public class MyTest extends TesterraTest {
67+ public class MyTest extends TesterraTest implements UiElementFinderFactoryProvider , WebDriverManagerProvider {
6868
6969 @Test
7070 public void testT01_My_first_tt_test () {
71- // ...
71+ UiElementFinder finder = UI_ELEMENT_FINDER_FACTORY . create(WEB_DRIVER_MANAGER . getWebDriver());
72+
73+ finder. find(By . name(" q" ))
74+ .type(" Hallo World" )
75+ .expect(). value(). endsWith(" Hallo" ). is(false );
7276 }
7377}
7478````
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ public void test_not_unique_UiElement_foundElements() {
8484 public void test_UiElement_displayed_false () {
8585 WebTestPage page = getPage ();
8686 UiElementAssertion expect = page .notDisplayedElement ().expect ();
87- expect .attribute (Attribute .STYLE ).contains ("display: none" );
87+ expect .attribute (Attribute .STYLE ).contains ("display: none" ). is ( true ) ;
8888 expect .displayed (false );
8989 expect .hasClasses ("button" ).is (false );
9090 }
You can’t perform that action at this time.
0 commit comments