Completed
Last Updated: 17 Oct 2023 14:09 by ADMIN
Thong
Created on: 16 Jan 2019 15:40
Type: Bug Report
1
Missing comma in search logic expression

Hi,

One of my element has the following find logic:

XPath        is exactly      //td/input[@title[contains(., 'End Date (Month Day Year)')]]

 

When I ran my script I got the error below:

Exception thrown executing coded step: 'Enter Leave Request To Date in 'LeaveRequestToDateText''.
'//td/input[@title[contains(. 'End Date (Month Day Year)')]]' has an invalid token.

 

I notice that the find logic expression displayed in the error message has a missing comma. Do you know why?

 

Thanks,

Thong

1 comment
ADMIN
Plamen Mitrev
Posted on: 17 Jan 2019 15:10
Hello Thong,

Thank you for the additional details provided.

I have reviewed and tested the use case and there appears to be a bug when element with xPath logic with contains logic is edited in code. There is a missing "," (comma) in the contains parameters and I have converted this ticket to a public feedback item. Thank you for discovering and reporting it to us.

There are two possible workarounds that I can provide to help you with your task at hand. Here are my suggestions at this point:
  • Use recorded step or edit element with the required xPath as in ​missing-comma-element.jpg
  • Use coded step to find elements with dynamic xPath and apply necessary logic. If you need additional help with next steps please let me know.

In case the above details are not sufficient please provide additional information about your current task and exact requirements in new ticket as this one is now public. This will enable me to provide better suggestions and support for the specific requirements.

P.S. As a small token of gratitude for reporting this bug to us, I have updated the Telerik points in your account.

Regards,
Plamen Mitrev
Progress Telerik