Select region of screen issues

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
RobF
Posts: 14
Joined: Tue Mar 10, 2015 1:09 am

Select region of screen issues

Post by RobF » Fri Mar 20, 2015 10:23 am

VERSION BUILD=10.3.27.5830
Windows 8.1 (64 bit)
Chrome 41.0.2272.89 (64 bit)
IE 11.0.9600.17690

I need to select a portion of page via a series of mouse clicks to "Select" an area of a map (based around center of screen). I can use DS but the page always appears to open a different size window and so the DS coordinates are not always landing in the center of the screen.

Is there a way interpret the window size and base my coordinates around that?

Also I don't know how to issue a Double Click command?

I am having the same problem on 2 separate sites but thought that I'd only show the code on one for simplicity:

Code: Select all

VERSION BUILD=10.3.27.5830
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://cityplan2014maps.brisbane.qld.gov.au/CityPlan/

'Set Variables
Set Suburb Bardon
Set Street Jubilee<SP>Terrace
Set StreetNumber 152

'Search for Property
TAG POS=2 TYPE=SPAN ATTR=TXT:Search
TAG POS=6 TYPE=INPUT:BUTTON ATTR=CLASS:dijitOffScreen
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:dijit_form_FilteringSelect_0
DS CMD=KEY CONTENT={{Suburb}} 
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:dijit_form_FilteringSelect_1
DS CMD=KEY CONTENT={{Street}}
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:bcc_searchHouseNumber
DS CMD=KEY CONTENT={{StreetNumber}}
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=ID:bccLocationSearch
WAIT SECONDS=5

'Property Report
TAG POS=1 TYPE=SPAN ATTR=ID:BCCPropReportReportButton_label
TAG POS=2 TYPE=INPUT:BUTTON ATTR=CLASS:dijitOffScreen

'I Need Help Here
SIZE X=992 Y=528
DS CMD=CLICK X=497 Y=302 CONTENT=
TAG POS=1 TYPE=A ATTR=TXT:here
Post Reply