Forum Discussion
Hi,
How do you find your control (using NameMapping, Find() method)?
Probably you have a several number of similar buttons in the DOM. TestComplete finds the first one, and if it is disabled, your test fails.
- ThomasCasserly8 years agoFrequent Contributor
Hi baxatob,
I'm using namemapping, I have manually mapped all the controls in the application so the tree structure is unique for each Add button in the system, so I don't think there can be any confusion for TestComplete, but then again I don't know enough about mapping of controls to say that for certain.
When the pop up dialog is displayed Testcomplete appears to ignore all controls on the webpage in the background i.e. I can't highlight or use object spy to view properties of those controls. So I'm assuming that it can only work/detect the controls the pop up dialog and on this there is only 1 button, the one I'm trying to perform a click on.
I don't have any issue highlighting the control from within the test either, when I right click within the test steps and click highlight the correct step is highlighted.
Is there any way that I can see which button TestComplete is using/taking the properties from during the test run?
- baxatob8 years agoCommunity Hero
Please fire the popup dialog on your page, then go to Name Mapping -> right click on your mapped button and select Highlight on the screen. Whould it be highlighted?
- ThomasCasserly8 years agoFrequent Contributor
Yup it's highlighted when I follow those steps.
Full steps for me are as follows:
generate dialog
enter text in text field
click outside text field, on the dialog, to trigger button activation
right click namemapping item and choose highlight, button control is highlighted onscreen.
Related Content
- 3 years ago
- 4 years ago
- 4 years ago
Recent Discussions
- 3 days ago