Ниже кода, оставляя текстовое поле пустым. Как только элемент управления переходит во 2-е текстовое поле, первое текстовое поле становится пустым.
{
WebDriverWait wait34 = new WebDriverWait(d, 30);
WebElement element34 = wait34.until(ExpectedConditions.elementToBeClickable(By.id("fisnInstrTypeDescriptionLabel")));
element34.sendKeys(e.getCellData("ISIN", 19, i));
WebDriverWait wait35 = new WebDriverWait(d, 30);
WebElement element35 = wait35.until(ExpectedConditions.elementToBeClickable(By.id("fisnRestrictionsLabel")));
element35.sendKeys(e.getCellData("ISIN", 20, i));
d.findElement(By.xpath("//input[@onclick='return submit_FISN();']")).click();
}
HTML-код для обоих элементов
<input type="text" name="fisnInstrTypeDescriptionLabel" size="70" value="" onblur="setFISNComponent('fisnInstrTypeDescription');" id="fisnInstrTypeDescriptionLabel" style="text-align: right" class="textField ui-autocomplete-input" autocomplete="off">
<input type="text" name="fisnRestrictionsLabel" size="70" value="" onblur="setFISNComponent('fisnRestrictions');" id="fisnRestrictionsLabel" style="text-align: right" class="textField ui-autocomplete-input" autocomplete="off">