0
Good evening, you guys. I’m new to the forum, so I apologize if you’ve already asked this question.
My doubt concerns the command .clear();
using the webdriver Selenium in eclipse.
Well, I’m automating a test on a form, and before I use the Ndkeys command, I’m using the clear. The problem happens when I run normal, the clear command is ignored and Sendkeys adds information in the field. But when I run in Debug mode, the code works normally.
I’ve tried to use WaitForElementClickable
, and Thread.Sleep(3000)
but it didn’t help.
public void preencherSolicitacao(String UF, String resultado, Boolean positivo) throws InterruptedException {
SolicitacaoAssistenciaDto solicitacao = form.solicitacaoAssistenciaForm();
if (positivo) {
Thread.sleep(3000);
inputName.clear();
inputName.sendKeys(solicitacao.getName());
Thread.sleep(1200);
adrress.clear();
Thread.sleep(1200);
adrress.sendKeys(solicitacao.getEndereco());