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

Commit

Permalink
comment withSimpleElement test
Browse files Browse the repository at this point in the history
  • Loading branch information
kosteman committed Sep 29, 2022
1 parent 4dbb3a3 commit 575f608
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@
* @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();
}
// @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 575f608

Please sign in to comment.