Get the current form using jasmine

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

How to get the current form name using Jasmine in free form architecture.

My test case on button click depending on the conditions app screen flow changes .So to validate this test case I need to know on which from this app is moved.

PS: I have check below Kony documentation but doesn't seems to be any valid API for same.

https://docs.kony.com/konylibrary/visualizer/viz_api_dev_guide/content/kony.automation_namespace.htm

Thanks

@Dvn Mitchell​ can you take a look at this?

Hello Team,

Any response on this qurey?

Thanks.

I suggest looking for something that changed on between forms since you can't pull the form ID. Look at the click below, the only way this click will properly execute is if you are on Form1. If not, the execution will fail.

kony.automation.button.click(["Form1","Button0e82c8f51fc834b"]);

I suggest looking for a flex container, button or some other item on the page and reference a click or get widget property that starts by looking at the form level as the example code statement above.