-2

I'm inputting text in a texbox which is working fine. But there is an existing watermark in the textbox. The entered text in the textbox is inputted as a watermark, hence clicking on 'Next' button results in an error.

Can somebody help on how to enable textfield before entering text using Blue Prism tool?

esqew
  • 42,425
  • 27
  • 92
  • 132

2 Answers2

0

Can you sandkey event(like SAPCE key) into that field it may cause the watermark to clear it self?

How do you clear that filed in the first palce?

RAFEL
  • 184
  • 1
  • 2
  • 14
0

quoting directly from the browser automation guide which you should've read and consumed before being a developer:

Using a Write stage to write to an HTML element such as a text field does not always work properly. For example, you might try writing to a username field, only to see a message appear on the web site saying something like “Please enter a username”, even though you can see that the value has been correctly written to the field. This can happen because the data validation functions used by the web form might be expecting keystrokes, and the write stage has “fooled” it. To get around this, you will need to use a Navigate stage to call the Send Keys Action instead of using a Write stage. Some websites have maximum character limits imposed on some text fields. Using a Write stage can sometimes fool the website into allowing too many characters into the field, because the Write stage “sets” the field value rather than keying characters into it. This is important to bear in mind because if a field has been filled with more characters than the website would usually allow, the website could produce an error when you try to submit or post the data.

to get around this go ahead and use sendkeys, those are likely the best option to push past this validation tool issue on the website.

Dexter Whelan
  • 414
  • 3
  • 15