Post Reply
Posts: 3
Joined: Sun Nov 24, 2019 11:36 pm


Post by asparagas » Thu Mar 26, 2020 3:06 pm

hi, my name is Fevzi. i'm living from turkey. i'm bad english (sorry)

1. How to write a block of code where I can list / see information such as elements on the PAGE, their names and tags, access numbers?

2. How to select a value in the combobox element on the page.

thank you so much...

User avatar
Posts: 2389
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain

Re: help

Post by salvadordf » Fri Mar 27, 2020 11:33 am

  • 1) You can use the DOMVisitor demo to read some basic information about the HTML elements. If you need something else you will have to execute JavaScript code to get that information and use a JavaScript extension to send it to the Delphi code. See the JSExtension inside the JavaScript directory and read all the code comments.
  • 2) If you need to interact with the web page you can execute custom JavaScript code or simulate mouse and keyboard events in a browser in "OSR mode" (off-screen mode). The MiniBrowser demo has a rudimentary function that simulates key presses but it's better if you run the SimpleOSRBrowser demo and log all the keyboard or mouse events for yourself. Then you can use that information to simulate the events.

Post Reply