Which version do you use? It was a known issue in the version 0.9.3.
(It happened only if a web page had hundreds of elements)
I coundn't reproduce the bug with 0.9.4, i tried it with a lot of web pages.
If you use 0.9.4 then please try the following:
1. The address edit box of the explorer is an edit control, you can find and use it also as follows:
Code: Select all
browser = RxFormFindTitle ("Microsoft Internet Explorer", MATCH_SUBSTRING, TRUE, 3000);
if ( browser == 0 )
return FALSE;
HWND addressBox = ::RxFormFindChildClassName(browser, "Edit");
if ( addressBox == 0 )
return FALSE;
// Select the address edit box
::RxMouseClickControl(addressBox);
::RxControlSendKeys(addressBox, "http://www.google.com{ENTER}");
// Wait 3 seconds
::RxSleep(3000);
// Find the explorer control
HWND explorerControl = ::RxFormFindChildClassName(browser, "Internet Explorer_Server");
if ( explorerControl == 0 )
return FALSE;
// Get the element of the IE control
ElementStruct elBrowser;
if (!RxControlGetElement (explorerControl, &elBrowser))
return FALSE;
// Find a child element
ElementStruct elAddress;
if (!RxElementFindChild (&elBrowser, role, name, className, &element))
return FALSE;
...
2. It can be a problem with RxElementFindChild if the browser is not ready with the web page.
3. It can be a bug in RanorexCore, can you save and send us the web page.
It's easier to find the bug if we can debug it.
Please inform us about the results, if it's a bug we would like to fix it for the next release.
Jenö Herget
Ranorex Team