Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
remove with simple element test
Browse files Browse the repository at this point in the history
  • Loading branch information
kosteman committed Sep 29, 2022
1 parent 8e5152b commit 6fb30af
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,6 @@
* @author Artem Koshelev artkoshelev@yandex-team.ru
*/
public class UsingSelectTest {
@Test
public void withSimpleElement() {
WebDriver driver = mock(WebDriver.class);
WebElement registerForm = mock(WebElement.class);
WebElement countryBoxElement = mock(WebElement.class);

when(driver.findElement(By.className("regform"))).thenReturn(registerForm);
when(registerForm.findElement(By.name("country"))).thenReturn(countryBoxElement);
when(countryBoxElement.getTagName()).thenReturn("select");
when(countryBoxElement.getAttribute("multiple")).thenReturn("true");

RegisterForm form = new RegisterForm(driver);
form.country.deselectAll();
}

@FindBy(className = "regform")
public class RegisterForm extends HtmlElement {
Expand Down

0 comments on commit 6fb30af

Please sign in to comment.