Generate Java scripts
From Screen Scraper Studio
You can generate JavaScript for your particular screen scraping and UI automation scenarios: scraping windows, rectangular regions, clicking controls, typing text etc. In our example below, the automation scenario is to scrape a region on the screen from an web app.
Here are the steps to follow to generate JavaScript for a particular screen scraping scenario.
- First you have to click the Automation script link on the immediate screen scraping window (follow the pictures below for each explanation)
- On the next window you are asked to choose a name for the script. You can also set a hotkey (combinations like: CTRL+key, Alt+key or a simple key) to run the script at anytime after you save it.
- Then you can decide on which selection mode to use in the script:
- Yes, I want to select a window/region|control when the script starts
- Just scrape the window that is active when the script starts
- No, the script should scrape the window/region|control I have just defined
- Finally you can choose an output for the extracted text:
- Copy the extracted text to clipboard
- Save the extracted text to a file
Here you can also:
- Click the View code button to see the generated JavaScript for your scenario
- Save script and close
- Save script and run
- Now you can run the JavaScript or edit it before running.
- Here's what you should see when you click Edit script button





