Search in sources :

Example 1 with NativeSelect

use of com.seleniumtests.uipage.htmlelements.select.NativeSelect in project seleniumRobot by bhecquet.

the class TestSelectList method testGetOptions.

@Test(groups = { "ut" })
public void testGetOptions() throws IOException {
    SelectList select = new SelectList("", By.id("select"));
    List<WebElement> options = select.getOptions();
    Assert.assertEquals(options.size(), 2);
    Assert.assertTrue(select.getSelectImplementation() instanceof NativeSelect);
}
Also used : SelectList(com.seleniumtests.uipage.htmlelements.SelectList) NativeSelect(com.seleniumtests.uipage.htmlelements.select.NativeSelect) WebElement(org.openqa.selenium.WebElement) Test(org.testng.annotations.Test) PrepareForTest(org.powermock.core.classloader.annotations.PrepareForTest) MockitoTest(com.seleniumtests.MockitoTest)

Aggregations

MockitoTest (com.seleniumtests.MockitoTest)1 SelectList (com.seleniumtests.uipage.htmlelements.SelectList)1 NativeSelect (com.seleniumtests.uipage.htmlelements.select.NativeSelect)1 WebElement (org.openqa.selenium.WebElement)1 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)1 Test (org.testng.annotations.Test)1