Page 1 of 1

help

Posted: Thu Mar 26, 2020 3:06 pm
by asparagas
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...

Re: help

Posted: Fri Mar 27, 2020 11:33 am
by salvadordf
Hi,
  • 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.