Operations failing when launching my Edge Chromium browser using SystemUtil.Run

Category:
Question ID: 110170
1
1

When I launch my browser (Edge Chromium) in UFT using SystemUtil.Run, some of my operations seem to fail (one example is WebTable.SelectCell doesn’t select the cell in my web table), but if I launch the browser manually and run the operations, they seem to work fine. So, it doesn’t seem like an object recognition issue? Any help would be appreciated.

Marked as spam
Posted by (Questions: 411, Answers: 78)
Asked on July 27, 2021 10:44 am
3 views
Answers (1)
1
Private answer

This is a known issue that can affect using SystemUtil.Run and also Webutil.LaunchBrowser to launch your Edge Chromium browser in UFT. Micro Focus has outlined the probable root cause as being the website continues to load data after the page is loaded, so your operations are failing beause they're trying to run on objects that aren't yet ready/fully loaded. The workaround Micro Focus suggests is to set your Record and Run Settings to open your browser *or* specify a URL to the specific object on the page when using SystemUtil.Run (example: systemutil.run "chrome", "https://sapui5.hana.ondemand.com/1.52.17/#/sample/sap.ui.comp.sample.smarttable/preview")

Reference: https://admhelp.microfocus.com/uft/en/15.0-15.0.2/UFT_Help/Content/Addins_Guide/Chrome_Limitations.htm

Marked as spam
Posted by (Questions: 0, Answers: 758)
Answered on July 27, 2021 10:45 am
Thanks for the workaround, that did the trick.
( at July 27, 2021 10:46 am)