Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, windows and java based applications. Get your 30 day free trial.
Discuss your Sahi Pro usage patterns, best practices, problems and solutions. Help others solve their problems and seek help from the community when needed. If you need specific support on your application, please email support @ sahipro.com
Discuss your Sahi Pro usage patterns, best practices, problems and solutions. Help others solve their problems and seek help from the community when needed. If you need specific support on your application, please email support @ sahipro.com
regEx for dynamic ids
nandubijoor
Members
Hi Narayan,
Please let me know how to use regular expression for this case:
_click(_f($appName).s_label("1 Department[2]"));
The number in the square braces is dynamic. and also the no before Department changes based on some condition.
I want RegEx for this:- 1 Department[2]
Regards,
Nandeesh B
Please let me know how to use regular expression for this case:
_click(_f($appName).s_label("1 Department[2]"));
The number in the square braces is dynamic. and also the no before Department changes based on some condition.
I want RegEx for this:- 1 Department[2]
Regards,
Nandeesh B
Answers
how to deal with dynamic web table? In table there is one column ids(heading for col), now i want store the list of all ids. how to achieve that.Thanks
Regards,
Priya
Can you please explain your question? What do you want to store? Why do you want to store the list of all IDs?
If you want to collect the data from the table, you can use _getTableContents() API.
http://sahipro.com/docs/sahi-apis/fetch-apis.html#_getTableContents
If you are finding an issue in identifying the table itself, please use relational APIs or use the regular expression to remove the dynamic identifier.
http://sahipro.com/docs/sahi-apis/relation-apis.html
Hope this helps.
Regards,
Pratik Shah