[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 308
  • Last Modified:

autofill browser form field on website, with a parameter from a database

We use a website which allows us to look up a vehicle registration.

Currently someone copies this from a database field into the form and then presses search.

We do a huge volume of these on a daily basis so looking for time saving mechanisms.

Ideally the user would click a button in the database and then it auto searches for the registration.

However, the website is provided by a 3rd party, so we can not amend the code to acccept a utl parameter for example.

So I have two questions!

1) would this be achieveable using browqser automation such as selenium
2) or is it possible in vb.net or javascript, i.e. get the registration number into a string variable, pass it to javascript and then insert into the field using getelementby id or anything?
3) something along the lines of a form autofill, but one which accepts a string variable passed into the browser autofill extension which then inserts into the field

Anyone got any ideas how this can be achieved or what to search for?

Our system is vb.net so I could work with that somehow.

or would something like selenium be the answer?
0
jontelukltd
Asked:
jontelukltd
  • 2
1 Solution
 
COBOLdinosaurCommented:
You are going down a deadend if you are looking for a scripting solution in the browser.  That is a security violation and will be blocked. You might be able to do something server to server, if you have enough detail on how the form is being processed.  Generally this kind of automation requires the receiving site to co-operate with some kind of an API.

Cd&
0
 
jontelukltdAuthor Commented:
I just figured I could perhaps code a browser add on, like an auto form fill, but one which would accept a variable or even just pick one up from a text file or xml file stored in the hard drive of the users machine.

Auto form fill extensions store user data somewhere right? So if I can manipulate that form data in .net then I figured I could read thosevariables and auto fill the form with the differents variables each time.


Still a dead end?
0
 
COBOLdinosaurCommented:
If you can get the user autofill variables populated server side, then it might work, but if you have to do any scripting in the browser to trigger it, then it will fail on a security violation.  

I don't know of any addon that can overcome the security restriction, because that is implemented in the browser primitive code.

Cd&
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now