How to validate ui element on same webpage but in diff tabs?

Hi Team,

In my webpage has 2 tabs output and schedule
when i select the strict selector in Schedule tab for start element it valid

but when
i switch to Output tab still its become valid (start element of Schedule tab)

how to resolve this issue.

@Sanket_Shinde1

Even if tab is not visible the element will still get validated..during runtime if you want to avoid..use the visisble property option so of if visible then it gets validated else no

Cheers

Even in Ui Explorer its getting valid even manually switch the tabs not only runtime

Hello, you can try changing the mapping method to AA or even use activities like activate element or highlight, it usually works…

In a more forced way, you can attach or use the browser in the new tab and bring specific elements from the tab to the window

1 Like

@Sanket_Shinde1

When you have both tabs open the elemwnt will get validated even if the tab is sitched because the elemwnt is present

That is an expected behaviour

Cheers

1 Like

Open Ui Explorer and select the Start button in the Schedule tab and then add the parent container that uniquely belongs to the Schedule tab into the selector.
So your selector will be like this

<html title='MyApp - Webpage' />
<webctrl id='schedule-tab' tag='DIV' />
<webctrl aaname='Start' tag='BUTTON' />

Cheers

2 Likes

@Sanket_Shinde1,

you can try using attach window for each tab separately and indicate elements inside that scope so selectors remain unique
you can try activating the required window or tab before interacting to ensure validation works only on the active tab

Hi @Sanket_Shinde1

You could define both Tabs as separate screens in the Object Repository and Use Application/Browser containers to specify which one to work in.

Regards
Soren

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.