-1
I’m having trouble automating a test where I fill a field (placeholder) and save. When consulting what I saved, I see that the information entered in the field was not made.
<input id="nomeCliente" class="form-control ng-pristine ng-valid ng-touched" _ngcontent-c8="" maxlength="150" placeholder="Nome Cliente" type="text" style="background-color: rgb(255, 255, 255);">
Fill the field and want to test the value? I don’t understand the placeholder.
– Aline
@Aline That’s right. I want to fill in the field with value. The field is filled in. However, when consulting later, the field does not have the value. Is there any other command than "Type"?
– Estevao FPM
Add your code with Selenium for us to see.
– Aline
@Aline I got it with the "Sendkeys" command. However, now I can’t replace one word with another in the field. It is only inserted in front of the already inserted one. Follow the command (this is not a placeholder, but the same thing happens): <tr> <td>Sendkeys</td> <td>xpath=(/input[@type='text'])[10]</td> <td>test</td> </tr> <tr> <td>Sendkeys</td> <td>xpath=(//input[@type='text'])[10]</td> <td>test</td> </tr> On hold! Thank you very much from now.
– Estevao FPM