I am using UI GUI to control Opera browser and trying to get the url of the current web page. Used UI Browser to determine the value of url in the address field in the toolbar.
tell application "System Events" set getURL to value of text field 1 of toolbar 1 of window 2 of process "Opera" end tell
What is odd is it picks up what is visible in the address field
however the url is missing the following qualifier “?price=5__77” at the end.
When I click the mouse in the address field, the whole field and url is highlighted and additional “?price=5__77” appears.
Why is this happening in Opera and how do I grab the whole url.
Note the full url is visible in Firefox but I prefer using Opera.