Page 1 of 1

TextBox data is lost!

Posted: Sat Oct 21, 2023 8:24 pm
by asparagas
Hi,

TextBoxes on some web pages

Chromium1.browser.MainFrame.ExecuteJavaScript ( 'document.getElementByID("userid").value="123"', 'about: blank', 0 );

I assign values as follows and the assignments I make appear in the boxes, but when I click on the boxes, those values disappear as if no assignment was made.

How do I solve this problem?

thank you in advance...

Re: TextBox data is lost!

Posted: Mon Oct 23, 2023 8:14 am
by salvadordf
Hi,

This seems to be some kind of protection against automation tools in those pages.

I guess you will have the same issue if you execute that JavaScript code from the console tab in the DevTools.

If the application uses a browser in OSR mode then try setting the focus on the browser and simulating a mouse click over the TextBox before executing the JS code.