Code: Select all
+window "main window"
+-window "Standard User" (ModalDialog)
+-dialog "Standard User"
+button "Yes"
+button "No"
Code: Select all
+--------------------------------------+
|Standard User |
+--------------------------------------+
| |
| User Name [ ] |
| +===========================+ |
| Passw |Standard User |<---- this dialog I cannot detect
| +===========================+ |
| Confi | [YES] [NO] | |
| +===========================+ |
| |
+--------------------------------------+
Code: Select all
localControl = myModalDialog.FindClassName("#32770"); //myModalDialog = Ranorex.Form
localControl = myModalDialog.FindChildText("Standard User");
localElement = myForm2.Element.FindChild(Ranorex.Role.Dialog, "Standard User");