SOTI Surf - is it possible to auto-fill an input field via script?

CK
Chad Kohls
EMP Technical Group

Hey everyone,

I'm trying to write a script in SOTI Surf where it will automatically fill/set the value of an input field on a page.  Testing in some other environments (Velocity, W3Schools) the script below works fine, but when I try and use it in Surf, it doesn't seem to like it.  It throws an error about the HTMLElement not having a property 'value'.  Has anyone successfully done something like this in SOTI Surf?  Just wondering if I'm missing something or if theres a limitation to the scripting in Surf.  FYI, I'm just testing on the Google home page, so that element id is the search bar.  Any help or guidance is greatly appreciated!

 
document.getElementById("APjFqb").value = "Test Text";
 
12 days ago
Android Scripting
ANSWERS
R
RRMOD@SOTI
7 days ago

Hi @Chad Kohls,

Thank you for your post on Soti Pulse.

I would like to clarify that SOTI Surf natively supports the auto-fill option without the need for additional scripts. I have attached a screenshot to this email demonstrating where this feature can be managed within the console.

To ensure we provide the best solution for your requirements, could you please share the specific use case for the script you mentioned? 

We look forward to your response so we can assist you further.

kind regards,

Technical Support | SOTI Inc. | Call Us | SOTI.net | Discussion Forum | Log a Case Online