I'm new in this forum and this is actually my first time ever coding
in the code i have this part:
md-input-container class="md-default-theme md-input-invalid">
label for="input_4">Email</label>
input name="emailField" type="email" ng-model="email" ng-change="resetValidity()" auto-focus="" validate-email="" required="" class="ng-pristine md-input ng-valid-email ng-invalid ng-invalid-required ng-touched" id="input_4" tabindex="0" aria-required="true" aria-invalid="true" style="">
!-- ngIf: forgot_password.emailField.$invalid && forgot_password.$submitted -->
/md-input-container>
the ID everytime i open a session get a different number. i try this:
WebElement emailField = driver.findElement(By.cssSelector("input[name='emailField']"));
emailField.click();
emailField.sendKeys("aa@aa");
can be reach also in the URL: "ocloud.optitex.com" go to "forgot password" i'm trying to find the email field there , click on it and send keys
but nothing happen. i get this error:
No such Element Exception , unable to locate element.
will appreciate any help regarding how i can click on the field and send keys.
WebDriverWait wait = new WebDriverWait(driver, 60); wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//input[@name='emailField']"))); driver.findElement(By.xpath("//input[@name='emailField']")).sendKeys("[email protected]");and let me know any issue