Posted: 13 May 2019 16:05 EDT Last activity: 31 May 2019 5:46 EDT
PerformClick isn't executing?
I am trying to use the PerformClick (with parameters) method in an automation to click a "Continue to Step 3" button. I have interrogated all controls, and they match each time successfully. I tried the "Test Control Method" option during interrogation, and it states that the click event occurred. Yet, when the automation runs, the PerformClick method doesn't actually do anything. Also, for reference, I use this method on other buttons in previous steps of the automation and they all work as expected. Any suggestions as to why this is behaving differently, or ways to fix it?
I assume you are matched to the correct control because if you weren't matched, then you'd get an exception. I assume you are matched to the correct control, because if you were not, you'd notice a different button clicking. Perhaps this button requires focus to accept the click. If this is a web control, you might also need to use the RaiseEvent method to have the click occur as some pages use different events to trigger things that allow the clicks to go through.
I would suggest that you open a support request as it is likely that you'll need some hands-on assistance.
Posted: 2 years ago
Posted: 13 May 2019 22:59 EDT
Lochana Durgada Vijayakumar (Lochan_DV)
Lead Technical Documentation Specialist
I was able to get the method to work by inspecting the HTML of the web page and identifying where the button was supposed to be directing to. From there, I used the InnerHTML property to manually set the HTML and direct it to the proper next step.