Navigate to data tab in excel and click refresh

Hello devs, pls assist, I want to click on data tab ribbon in excel and then click on refresh button. I have implemented open application, click on data and then click on refresh but then sometimes it fails to work perfectly because sometimes may be in read only, protected view, activate, etc, resulting selector problem.I have also used excel -* as wildcard but it keeps failing.pls any reliable solution to this? Regards

HI @RPA-botDev

Based on tmy understanding you can try this

You can try with element exist activity

Indicated the element on the screen → store in the Bool Variable

Use If activity → Pass the Bool Variable

If it is in Read Only Mode

Click on the
image

After that you can use Send hotkey activity → Ctl+Alt+F5 to refresh

Regards
Gokul