Question
Synechron Inc.
US
Last activity: 6 Nov 2018 20:02 EST
Problem in control matching while running the automation
I am trying to interact with the web application and even I am using the appropriate matching rules and highlight option to add the control, but while I try to run the automation it gives control not matching error and I have tried using IsCreated and WaitForCreat options along with the control, in that case It will remain in idle state foreever even after control is been rendered on the browser screen.
Kindly let me know if someone is facing the same issue or else if it depends on some browser settings.
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
ANZ
CN
The controls may be built dynamically, if it is a table element, like <tr>, <td>, you need to use "Design Table" to define the table schema match rule.
Pegasystems Inc.
US
A little more information would be helpful. What type of control is it? What matching rules are you using? Can you show us the code you are using to access the control?
Synechron Inc.
US
The controller is a simple text box and the match rule I am using is List web controls, I am highlighting the text box by using the filter <input type=text> and It remains in idle state foreever if I use IsCreated or WaitForCreate, even aster control is rendered on the browser.
I have attached screeshots below.
Pegasystems Inc.
US
The exception you are receiving just indicates that you are attempting to use a control that has not been created (matched). Matching happens at more than one level - controls higher in the heirarchy have to match for the controls beneath them to match , so you should look at all of your match rules. Start at the page level and work your way down to the textbox. Remember, match rules must uniquely match the control to ensure that you match the correct control. Also, you need to wait on the last control created in the hierarchy for the best results. This usually requires a WaitForCreate on the page before you can operate on the controls on the page.
Can you share a screenshot of your page heirarchy?
Synechron Inc.
US
Hey Jeff,
I started from the Main page and then tab level , finally searched for the desired control using filter and highlight/add control.
I have attached the screenshot of heirarchy below.
Pegasystems Inc.
US
Which page is your control on? What is the control named?
Synechron Inc.
US
Also can you let me know what should be the input value for cell property of SetCellValue control. I am trying to give a1 , but its throwing a error saying invalid cell.
Pegasystems Inc.
US
You might want to put that in a new thread. If you are talking about the Excel connector - you could reference a cell as A1. I suspect you may not have a worksheet loaded though.
Synechron Inc.
US
The control is in Search_ALL/ main1/PSearchBRCSection.... path
Pegasystems Inc.
US
I would check the match rules on main1 and see if that is matching at runtime. I suspect there is a matching issue with that control and that would prevent your control from matching.