Learning UI Automation & Accessible

Friday, February 1, 2019
Avatar

I need to perform an action on the Windows Prompt (select Leave button) that shows up on the chrome browser when are trying to navigate away from the application under test . We couldn’t identify this object using ‘Web objects’ option in the Spy, so tried with ‘UI Automation’ as well as ‘Accessible’. The Spy does recognize the object using Accessible option. But since there is no option to save that object from the Spy screen (I can only Track or Untrack), so I created a subtest with WPF methodology (Tried Web too and that didn’t work) and then started recording with Accessible option. But rapise cannot recognize the Leave object anymore. Please help

1 Replies
Friday, February 1, 2019
Avatar
re: klaxminarayanan5 Friday, February 1, 2019

A web test will automatically have access to the Windows libraries as well.

So during recording of the main web parts, simply click on the button and Rapise should learn it OK.

If not, use CTRL+2 to learn the button and then in the test afterwords add a DoLClick() action.

Alternatively you can try using Global.DoSendKeys(...) if there is a keystroke that will get past it.

For more help, please log a help desk ticket

Adam

Statistics
  • Started: Friday, February 1, 2019
  • Last Reply: Friday, February 1, 2019
  • Replies: 1
  • Views: 208