Capture data with Selenium, add and insert into another field

Asked

Viewed 209 times

1

I have a code where it captures data from a field, using the Selenium Webdriver and insert into another field.

I would add (captured field + 1000) and then insert into another field.

Where I’ll insert + 1000?

WebElement ultimokm = driver.findElement(By.id("customfield_23430"));// captura dados no campo
String getultimokmtext = ultimokm.getAttribute("value");
WebElement kmatual = driver.findElement(By.id("customfield_17202"));
kmatual.clear();
kmatual.sendKeys(getultimokmtext);
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.