System.NotSupportedException: Find.All is currently not supported for expressions that have a hierarchal dependency
My code works like this:
Note that the expression I am using is very similar to one of the expressions in the user guide (""tagindex=td:0"").
The code compiles without problems, but at runtime it throws the exception as above. What do I need to do to use a find expression to locate the td elements in this way?
P.S. See attachments for a simple worked example.
7 Answers, 1 is accepted
Thank you for the project and your notes.
I've went ahead and logged this as a feature request. You can track in our Feedback Portal its progress here: Public URL.
We appreciate your feedback, which we rely on to improve our product.
I am the manager of Test Studio technical support. I apologize for the apparent confusion in our documentation. Our current design implementation of the FindAllByExpression cannot support any type of hierarchical expressions including:
- Tag index path expressions
- HTML path expressions
- XPath expressions
If this is what you really need to do, I recommend you use the Find.AllByXPath() function instead. We have many other Find.AllByxxxx methods for you to choose from:
Thank you for your feedback, which we always use to improve our product. I've passed this along to our documentation team for them to figure out the best way to adjust this part of the documentation.
Thank you for your query.
Though I have to admit you are addressing a discussion which dates back almost five years ago. Test Studio has evolved during that time and the current issue you are facing might be irrelevant to this conversation.
Therefore I would like to kindly ask you to share further details of what the current scenario's requirements are. In addition I would like to share with you the Find methods you could use to locate elements using Test Studio.
In case there is anything else I could be helpful with, please let me know!