I need to click on a Tab whose name is dynamic.
I have captured the tab window. I am using the following command to click on particular tab in a window.
Can some one help me in creating a regular expression for the name of the tab which is dynamic.
I got a work around solution, I got the property ".tabs" of the window, using that I am able to fetch the correct tab name.
String s = tab().getProperty(".tabs").toString();
int a = s.indexOf(",");
int b = s.indexOf(",", a+1);
Suggest if there is any other better way of approach.
Try declaring that object as GuiSubItemTestObject and use .clcik(atPath("TAB name to click"))
Thanks and Regards,