Forum Discussion
nastester
Regular Contributor
This is a snippet from the script.
I am launching a remote browser and then assigning it to a variable called browser which i use for the page objects:
function headlessLogin(env, user) {
//Setup and launch headless browser
var url = env;
var server = "localhost";
var capabilities = {
"browserName": ProjectSuite.Variables.browser,
"screenResolution": "1920x1080"
};
Browsers.RemoteItem(server, capabilities).Run(url);
var browser = Sys.Browser("Remote");
//Enter User
var page = browser.Page("https://login.microsoftonline.com/e7520e4d-d5a0-488d-9e9f-949faae7dce8/oauth2/v2.0/authorize*");
page.Wait();
page.FindElement("//input[@name='loginfmt']").Click();
Marsha_R
7 months agoModerator
There's the issue. Sys.Browser isn't allowed in parallel tests. Take a look at the link below for the full requirements.
https://support.smartbear.com/testcomplete/docs/testing-with/running/parallel.html
Related Content
- 6 years ago
- 8 months ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago