Forum Discussion
Hi,
1. Try to setup a delay before clicking on button OK.
2. Please show, how you've mapped this element - Aliases.browser.pageFundmanager.Confirm
- tristaanogre9 years agoEsteemed Contributor
baxatob wrote:
Hi,
1. Try to setup a delay before clicking on button OK.
2. Please show, how you've mapped this element - Aliases.browser.pageFundmanager.Confirm
I'm actually guessing that the Confirm is the built in Confirm object on most web pages.
- triisguashas9 years agoNew Contributor
It was mapped automatically when recorded.
What do you mean by showing how is it mapped?
Do you mean this? NameMapping.Sys.browser.pageFundmanager.Confirm.buttonOk
I added screenshot of object spy for both - the button and the popup
I think the problem could be that it is not in the object browser. Not sure how to get it there
- tristaanogre9 years agoEsteemed Contributor
Yeah, this appears to be the Browser Confirmation box (https://support.smartbear.com/testcomplete/docs/reference/test-objects/controls/web/general/confirm/index.html).
Have you tried just calling Aliases.browser.pageFundmanager.Confirm.Button('OK').Click()? Does that work? - baxatob9 years agoCommunity Hero
If you can see it using Object Spy then you can see it in the Object Browser.
1. Open NameMapping repository and find your element there. And check whether Extended Find feature is selected or not. If yes - uncheck it.
2. Add a Refresh() method before clicking on OK button - NameMapping.Sys.browser.pageFundmanager.Refresh()
- tristaanogre9 years agoEsteemed Contributor
It's almost like it's being popped up Modal... That there is some task happening BEFORE the popup... in the script you showed in your OP, right before the pop-up, you are apparently triggering an "OnExit" event when exiting a particular data entry field. It is possible that you're application is bringing up the confirmation box as a modal dialog which is what is preventing the test from proceeding.
What you can try is change that line of code before the OK button click to
Runner.CallOBjectMethodAsync(Aliases.browser.pageFundmanager.frameTdpDisplay.frameLadderUpdate.formF.textboxLadderDate, "Keys", "[Tab]");
And see if that works.