I am trying to verify that the text box gets the focus (the blinking cursor gets placed inside of it) after a certain action. I tried to use the Focused property, but it does not seem to work. Here is the code:
mainWindow = Aliases.iexplore.IESA; saveWindow = mainWindow.Find("ObjectIdentifier", "MainContent_saveFilterSetDialog_saveDialog", 50, true); saveWindowNameTextBox = saveWindow.Find("ObjectIdentifier", "*MainContent_*_sfsName", 25, true); if(saveWindowNameTextBox.Focused == true) Log.Message("The blinking cursor is inside of the name text box") else Log.Error("The blinking cursor is not inside of the name text box")
The log says "Unable to find the object with the specified properties"
Is there another way to accomplish this?