Hi,
Some of those functions only work if TChromium is in OSR mode.
Use the SimpleOSRBrowser demo and use these functions in your tests : TChromium.SendKeyEvent, TChromium.SendMouseWheelEvent, TChromium.SendMouseClickEvent, TChromium.SendMouseMoveEvent, etc.
Create a log of all the calls to those functions in the SimpleOSRBrowser demo and you will be able to reproduce the same key and mouse events at a later time.
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
lets talk about typing in browser
- salvadordf
- Posts: 4565
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
- salvadordf
- Posts: 4565
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: lets talk about typing in browser
You need to use the SimpleOSRBrowser demo.dsgfdsagr wrote: Thu Jun 06, 2019 12:31 pmWhen you wrote i could reproduce it in later time, did you mean in minibroswer?
To create the log you need to save the messages sent to TForm1.AppEventsMessagedsgfdsagr wrote: Thu Jun 06, 2019 12:31 pmhow to create this log? do i need to log all function calls? and events?
https://github.com/salvadordf/CEF4Delph ... r.pas#L192
Those messages contain all the keyboard and mouse information you need to simulate all the key presses and mouse movements.