I need to do some automatic tests within system. Some fields got validations, and it probably can't be done by just sendKeys
(then I'm doing it, it just write some one string, not whole. Tried iterating sendKeys thru string, didn't work either)
Right now I'm trying to input value to field by javascript. Got something like it:
WebElement pesel = driver.findElement(fldPesel);
jse.executeScript("arguments[0].value='80120804076';", pesel);
But, I would want not to have value in executeScript, but java variable, so it would look and work better. And got some randomisation
How I could do that?