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

Post Reply
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: lets talk about typing in browser

Post by salvadordf »

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.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: lets talk about typing in browser

Post by salvadordf »

dsgfdsagr wrote: Thu Jun 06, 2019 12:31 pmWhen you wrote i could reproduce it in later time, did you mean in minibroswer?
You need to use the SimpleOSRBrowser demo.
dsgfdsagr wrote: Thu Jun 06, 2019 12:31 pmhow to create this log? do i need to log all function calls? and events?
To create the log you need to save the messages sent to TForm1.AppEventsMessage
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.
Post Reply