webdriver-selenium
webzwo0i 2020-11-15 23:27:08 +01:00
parent c4aada6de2
commit 5e986d1d9e
1 changed files with 4 additions and 4 deletions

View File

@ -6,8 +6,11 @@ let getStatusInterval;
let timeout; let timeout;
let allTestsPassed = true; let allTestsPassed = true;
let testSettings = {"browserName":"chrome", "platformName":"Windows 10", "browserVersion":"latest"} let testSettings = {"browserName":"chrome", "platformName":"Windows 10", "browserVersion":"83.0"}
let name = `${process.env.GIT_HASH} - ${testSettings.browserName} ${testSettings.browserVersion} ${testSettings.platformName}`; let name = `${process.env.GIT_HASH} - ${testSettings.browserName} ${testSettings.browserVersion} ${testSettings.platformName}`;
let knownConsoleText = "";
// how many characters of the log have been sent to travis
let logIndex = 0;
runTest(testSettings) runTest(testSettings)
@ -36,9 +39,6 @@ async function runTest(testSettings){
console.log(`https://saucelabs.com/jobs/${session}`); console.log(`https://saucelabs.com/jobs/${session}`);
driver.get(baseUrl).then(function(){ driver.get(baseUrl).then(function(){
let knownConsoleText = "";
// how many characters of the log have been sent to travis
let logIndex = 0;
getStatusInterval = setInterval(function(){ getStatusInterval = setInterval(function(){
driver.executeScript("return $('#console').text()") driver.executeScript("return $('#console').text()")
.then(function(knownConsoleText){ .then(function(knownConsoleText){