File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
integration-tests/src/test/java/eu/tsystems/mms/tic/testframework/playground Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 2424import eu .tsystems .mms .tic .testframework .AbstractTestSitesTest ;
2525import eu .tsystems .mms .tic .testframework .constants .Browsers ;
2626import eu .tsystems .mms .tic .testframework .core .pageobjects .testdata .PageWithExistingElement ;
27+ import eu .tsystems .mms .tic .testframework .pageobjects .PreparedLocator ;
2728import eu .tsystems .mms .tic .testframework .pageobjects .UiElement ;
2829import eu .tsystems .mms .tic .testframework .pageobjects .UiElementFinder ;
2930import eu .tsystems .mms .tic .testframework .report .model .context .SessionContext ;
4950import java .util .Objects ;
5051import java .util .logging .Level ;
5152
53+ import static eu .tsystems .mms .tic .testframework .pageobjects .LocatorFactoryProvider .LOCATE ;
54+
5255public class DriverAndGuiElementTest extends AbstractTestSitesTest implements UiElementFinderFactoryProvider , PageFactoryProvider {
5356
5457 @ Test
@@ -105,6 +108,16 @@ public void testsimpleUiElement() {
105108 element .waitFor ().classes ().getActual ();
106109 }
107110
111+ @ Test
112+ public void testsimpleUiElementWithLocator () {
113+ WebDriver driver = getWebDriver ();
114+
115+ UiElementFinder uiElementFinder = UI_ELEMENT_FINDER_FACTORY .create (driver );
116+ PreparedLocator locator = LOCATE .prepare ("//*[@id='%s']" );
117+ UiElement uiElement = uiElementFinder .find (locator );
118+ uiElement .waitFor ().displayed (true );
119+ }
120+
108121 @ Test
109122 public void testFirefoxExtension () throws Exception {
110123
You can’t perform that action at this time.
0 commit comments