Contributions
How can I obtain current browser in scripts?
I use TestComplete with BitBar to test web applications. My tests are scripted in javascript and I start remote browser like this: var capabilities = { "platform": "Windows", "osVersion": "11", "browserName": "Chrome", "version": "109", "resolution": "1920x1080" }; var server = "https://eu-desktop-hub.bitbar.com/wd/hub"; function StartInBitBar() { Browsers.RemoteItem(server, capabilities).Run(""); } function DoSomeTests() { //Here I need to obtain the Remote browser item created in StartInBitBar(), but how? //This fails: Log.Message(Browsers.CurrentBrowser.Description); }581Views0likes1CommentRe: Adding Safari as mobile application
Thanks for replying, Kitt! Should have mentioned that I use BitBar. I have a keywordtest that's running (in parallel) in BitBar on different browsers. I want to run similar tests in BitBar Mobile Cloud, but when I select device to run on (i. e Apple iPhone 11 Pro) TestComplete needs to know the application to test: Here I'm not able to tell TC that I'm not testing an MobileApp, I want to use Safari. Forgive me if my question is stupid 😞 Thnx, Jacob371Views0likes0Comments