Click list item

I have to click on Financial Reporting Center. How can i build a logic to expand “Others” if not expaded. i tried checking the app state and atribute feature but it doen’t work!

Check App State for Financial Reporting Center. If it doesn’t exist, click Other and then Check App State for Financial Reporting Center again.

It results to true even if not expanded

@Vishal_Kumar4

If it is visible before clicking on dropdown then you can use simulate click directly on financial reporting then clicking on expand and then the actual click

This way no expansion is needed and the click also would happen

Cheers

Hey, Vishal! Have you tried using check app state with “Fully Visible” set in visibility check?

If so, you could try to use the click within a try catch, and if that fails you can click on “Others” before trying again, though this isn’t an ideal solution.

It is also extremely likely that there is some atribute within the element that indicates if it is or isn’t expanded. You can try using dev tools with F12 on your browser to check that

I think this is for items which are visible only if we scroll the page. Even if it is expanded and not visible on screen it will result in False..

Sorry @Anil_G. I didn’t understand the exact steps

@Vishal_Kumar4

Try to indicate the button and see if it is validating when dropdown is not clicked as well..then use the click on button directly instead of expand

Cheers

That’s because the object exists on the page, even though it’s not visible. Use the visibility setting in the Check App State Target.

It might even be possible to click it while collapsed if you use simulate click as an option. If that woukd work would depend a bit on the type of hyperlink the button supports, but worth a try.

Another option, is to indeed expand the sheet by clicking the down arrow. The icon changes with an up/down arrow when you expand/collapse. This difference can most likely be seen by a selector on it, or a get attibute and looking at its class or style attribute/
If you can see the difference you can then decide to add a click to expand.

So instead of focussing on the “Financial Reporting Center” button, focus on decyphering the expand button instead.