Dear Xuemin,
thank you for tihs informative response.
I am already using TestComplete 11.20. To get the executable you need to compile the sample.
You can do this as follows:
1. Install Visual Studio 2012
2. Open Visual Studio and do
FILE -> Open Project/Solution
go to the extracted source directory and open "CefSharp.MinimalExample.sln"
3. Then do
BUILD -> Clean solution
BUILD -> Build solution
4. To start the executables do
cd <somwhere in the directory>\CefSharp.MinimalExample-master\CefSharp.MinimalExample.WinForms\bin\x64\Debug
and execute CefSharp.MinimalExample.WinForms.exe
Unfortunately it does not show the expected behaviour, that you can see detailed object tree in the object browser. Object Spy does not work and if you start a recording, you will get a result for example as follows:
function Test3()
{
var chromiumWebBrowser;
chromiumWebBrowser = Aliases.CefSharp_MinimalExample_Wpf.HwndSource_MainWindow.MainWindow.Grid.Browser;
chromiumWebBrowser.Click(1097, 340);
chromiumWebBrowser.Keys("Hello World[Enter]");
}
function Test4()
{
var browserForm;
var chrome_WidgetWin_0;
browserForm = Aliases.CefSharp_MinimalExample_WinForms.BrowserForm;
browserForm.Click(866, 15);
chrome_WidgetWin_0 = browserForm.toolStripContainer.ToolStripContentPanel.ChromiumWebBrowser.CefBrowserWindow.Chrome_WidgetWin_0;
chrome_WidgetWin_0.Chrome_RenderWidgetHostHWND.Click(1034, 339);
chrome_WidgetWin_0.Keys("Hello World[Enter]");
}
function Test5()
{
var browserForm;
var toolStripContainer;
var toolStrip;
var chrome_RenderWidgetHostHWND;
browserForm = Aliases.CefSharp_MinimalExample_WinForms.BrowserForm;
browserForm.Click(433, 17);
toolStripContainer = browserForm.toolStripContainer;
toolStrip = toolStripContainer.ToolStripPanel.toolStrip1;
toolStrip.ClickItem("Back");
chrome_RenderWidgetHostHWND = toolStripContainer.ToolStripContentPanel.ChromiumWebBrowser.CefBrowserWindow.Chrome_WidgetWin_0.Chrome_RenderWidgetHostHWND;
chrome_RenderWidgetHostHWND.Click(1288, 249);
chrome_RenderWidgetHostHWND.Click(1288, 249);
chrome_RenderWidgetHostHWND.Click(1238, 406);
chrome_RenderWidgetHostHWND.Click(1238, 406);
chrome_RenderWidgetHostHWND.Click(1317, 409);
chrome_RenderWidgetHostHWND.Click(1318, 409);
toolStrip.ClickItem("Back");
}
function Test6()
{
var cefSharp_MinimalExample_WinForms;
var toolStripContainer;
var chrome_WidgetWin_0;
var chrome_RenderWidgetHostHWND;
var toolStrip;
cefSharp_MinimalExample_WinForms = Aliases.CefSharp_MinimalExample_WinForms;
toolStripContainer = cefSharp_MinimalExample_WinForms.BrowserForm.toolStripContainer;
chrome_WidgetWin_0 = toolStripContainer.ToolStripContentPanel.ChromiumWebBrowser.CefBrowserWindow.Chrome_WidgetWin_0;
chrome_RenderWidgetHostHWND = chrome_WidgetWin_0.Chrome_RenderWidgetHostHWND;
chrome_RenderWidgetHostHWND.Click(1361, 463);
chrome_RenderWidgetHostHWND.Click(1354, 463);
chrome_RenderWidgetHostHWND.Click(1330, 407);
toolStrip = toolStripContainer.ToolStripPanel.toolStrip1;
toolStrip.ClickItem("Back");
toolStrip.ClickItem("Back");
toolStrip.ClickItem("Forward");
chrome_RenderWidgetHostHWND.Click(1774, 28);
cefSharp_MinimalExample_WinForms.wndChrome_WidgetWin_0.Chrome_RenderWidgetHostHWND.Click(65, 155);
chrome_RenderWidgetHostHWND.Click(1500, 35);
chrome_WidgetWin_0.Keys("atom[Enter]");
}
Perhaps you can reproduce it on your machine.
Thank you for your help.
Regards,
Guido