I am using appian-locust to perform e2e load testing.
When I form.click_record_link(label="Related Actions", locust_request_label="Any")
I encounter following error msg,
Type of record link and label are found but on different component.
How to solve this kind of problems? Seems we are bound by whatever appian-locust gives us.
Discussion posts and replies are publicly visible
When usgin locust, you must be care because the labels must be unirque , and the controls must be generated following some rules....
IN this case, are you sure that you are not using the same label in two different controls? Check not only in your interface but also in nested interfaces
Thanks for the advice. Will double check.
Seems I am try to interact with nested inner interface for that label. That's where the problem occurs. Are there any special way to handle that situation?
You must avoid to have controls with duplicated labels. It doesn't matter if it's a nested interface, because when requested, will be compiled as javascript and html as a single page.
I verified that's the only "Related Actions" label. The error states that it found record link with label I want. But just on a differrent componet. Locust has various way to handle this. But seems I am bound by what appian-locust can offer
This applies to all controls in your interfaces, not only to related actions label... if ouy have one record action label, and another control with the same one.. it won't work.
i ended up with hard coded index number to let it click_link. Works fine but ugly code. Thanks for your help.