Forum Discussion
Thank you for the updates. here is the code I am using but I am getting the error testGPACalc() not found
function CBT_GPACalc_Loop(){
var server = "http://hub.crossbrowsertesting.com:80/wd/hub";
var remotes = [
{
browserName: 'safari',
version: '13',
platform: 'Mac OSX 10.15',
username: 'xyz',
password: 'xyz'
},
{
browserName: 'chrome',
deviceName: 'Nexus 9',
username: 'xyz',
password: 'xyz'
}];
for (var i = 0; i < remotes.length; i++)
{
Browsers.RemoteItem(server, JSON.stringify(remotes[i])).Run(Project.Variables.baseURL);
testGPACalc();
}
}
function testGPACalc(){
var titlePage = Aliases.browser.pageGpacalcNew.textnode;
var expTitle = "GPA Calculator";
//var server = "http://hub.crossbrowsertesting.com:80/wd/hub";
//Browsers.RemoteItem(server, capabilities).Run(Project.Variables.baseURL);
aqUtils.Delay(5000);
Log.Message("The Title of the Page: ");
if(titlePage.WaitProperty("Visible", true, -1)){
Log.Message("The title of the page appears "+aqObject.CheckProperty(titlePage,"contentText",cmpEqual,expTitle));
}
aqUtils.Delay(10000)
Aliases.browser.Close();
}
Hi,
> I am getting the error testGPACalc() not found
Do you mean that the testGPACalc() function is not found?
This is strange, as I copied your code and breakpoint within the testGPACalc() function was hit without any problem.
Related Content
- 3 years agohkim5
Recent Discussions
- 11 months agodavni
- 12 months agoprashantpujari