|
23 | 23 | package eu.tsystems.mms.tic.testframework.test.guielement; |
24 | 24 |
|
25 | 25 | import eu.tsystems.mms.tic.testframework.AbstractExclusiveTestSitesTest; |
26 | | -import eu.tsystems.mms.tic.testframework.AbstractTestSitesTest; |
27 | 26 | import eu.tsystems.mms.tic.testframework.core.pageobjects.testdata.GuiElementShadowRootPage; |
28 | 27 | import eu.tsystems.mms.tic.testframework.core.testpage.TestPage; |
29 | 28 | import eu.tsystems.mms.tic.testframework.exceptions.UiElementAssertionError; |
30 | | -import eu.tsystems.mms.tic.testframework.exceptions.UiElementException; |
31 | 29 | import eu.tsystems.mms.tic.testframework.pageobjects.GuiElement; |
32 | 30 | import eu.tsystems.mms.tic.testframework.pageobjects.XPath; |
33 | | -import eu.tsystems.mms.tic.testframework.exceptions.TimeoutException; |
34 | | -import eu.tsystems.mms.tic.testframework.pageobjects.factory.PageFactory; |
35 | 31 | import eu.tsystems.mms.tic.testframework.report.model.steps.TestStep; |
36 | | -import eu.tsystems.mms.tic.testframework.test.page.PageFactoryTest; |
37 | 32 | import eu.tsystems.mms.tic.testframework.test.PageFactoryTest; |
38 | 33 | import org.junit.Assert; |
39 | 34 | import org.openqa.selenium.By; |
40 | | -import org.openqa.selenium.By; |
41 | 35 | import org.testng.annotations.Test; |
42 | 36 |
|
43 | | -public class GuiElementShadowRootTest extends AbstractExclusiveTestSitesTest<GuiElementShadowRootPage> { |
| 37 | +public class GuiElementShadowRootTest extends AbstractExclusiveTestSitesTest<GuiElementShadowRootPage> implements PageFactoryTest { |
44 | 38 |
|
45 | 39 | @Override |
46 | 40 | protected TestPage getTestPage() { |
@@ -90,11 +84,4 @@ public void test_ShadowRoot_findById_fails() { |
90 | 84 | Assert.assertTrue(shadowRootElement.find(XPath.from("div").attribute("id", "shadow-content")).waitFor().displayed(true)); |
91 | 85 | shadowRootElement.findById("shadow-content").expect().present(true); |
92 | 86 | } |
93 | | - |
94 | | - @Test(expectedExceptions = TimeoutException.class) |
95 | | - public void test_ShadowRoot_getSubElement_nonXPath_fails() { |
96 | | - final GuiElementShadowRootPage page = getPage(); |
97 | | - page.shadowRootElement.getSubElement(By.id("shadow-content'")); |
98 | | - } |
99 | | - |
100 | 87 | } |
0 commit comments