I've recorded a series of 13 sample utterances in chatbots section
of botium box and saved the test cases .But it says job
queued for execution and is nearly waiting for long time to execute
2019-06-17T12:14:43.199Z: Job queued for execution
2019-06-17T12:14:44.144Z: 2019-06-17T12:14:43.038Z
botium-box-worker-runtestcases Started processing, JobId #2122.
2019-06-17T12:14:44.273Z: 2019-06-17T12:14:43.053Z botium-BotDriver
Loaded Botium configuration file ./botium.json
2019-06-17T12:14:44.491Z: 2019-06-17T12:14:43.061Z botium-BotDriver
BuildCompiler: Capabilites: { PROJECTNAME: 'Test Project - vMMVv -
Test Session', TEMPDIR: 'botiumwork', CLEANUPTEMPDIR: true,
WAITFORBOTTIMEOUT: 10000, SIMULATE_WRITING_SPEED: false,
DOCKERCOMPOSEPATH: 'docker-compose', DOCKERMACHINEPATH:
'docker-machine', DOCKERMACHINE: false, DOCKERIMAGE: 'node:boron',
DOCKERUNIQUECONTAINERNAMES: false, DOCKERSYSLOGPORT_RANGE:
'47100-47299', BOT_HEALTH_STATUS: 200, SLACK_PUBLISHPORT_RANGE:
'46100-46299', FACEBOOK_PUBLISHPORT_RANGE: '46300-46499',
FACEBOOK_SEND_DELIVERY_CONFIRMATION: true,
BOTFRAMEWORK_PUBLISHPORT_RANGE: '46500-46699',
BOTFRAMEWORK_WEBHOOK_PORT: 3978, BOTFRAMEWORK_WEBHOOK_PATH:
'api/messages', BOTFRAMEWORK_CHANNEL_ID: 'facebook',
SIMPLEREST_PING_RETRIES: 6, SIMPLEREST_PING_TIMEOUT: 10000,
SIMPLEREST_PING_VERB: 'GET', SIMPLEREST_METHOD: 'GET',
WEBSPEECH_SERVER_PORT: 46050, WEBSPEECH_LANGUAGE: 'en-US',
WEBSPEECH_CLOSEBROWSER: true, SCRIPTING_TXT_EOL: '\n',
SCRIPTING_XLSX_EOL_SPLIT: '\r', SCRIPTING_XLSX_EOL_WRITE: '\r\n',
SCRIPTING_XLSX_STARTROW: 2, SCRIPTING_XLSX_STARTCOL: 1,
SCRIPTING_NORMALIZE_TEXT: true, SCRIPTING_ENABLE_MEMORY: true,
SCRIPTING_MATCHING_MODE: 'includeLowerCase',
SCRIPTING_UTTEXPANSION_MODE: 'all',
SCRIPTING_UTTEXPANSION_RANDOM_COUNT: 1,
SCRIPTING_MEMORYEXPANSION_KEEP_ORIG: false,
RETRY_USERSAYS_ONERROR_REGEXP: [], RETRY_USERSAYS_NUMRETRIES: 1,
RETRY_USERSAYS_FACTOR: 1, RETRY_USERSAYS_MINTIMEOUT: 1000,
ASSERTERS: [ { ref: 'HASLINK',
src: 'botium-asserter-basiclink',
global: false,
args: {} } ], LOGIC_HOOKS: [], USER_INPUTS: [], ALEXA_SMAPI_API: 'simulation', ALEXA_SMAPI_SKILLID:
'adminamzn1.ask.skill.4bf0188a-4dda-4810-b754-a3181193fbff',
ALEXA_SMAPI_LOCALE: 'en-US', ALEXA_SMAPI_REFRESHTOKEN:
'Atzr|IwEBIEvgZitZhPSHNy3v7aEQ1OSZAW4iNAjaoHh2zH316H83ZjDZP0q-TFziI8TtVZDZDr-YW7dR7UQlulJ-Vx0aGkqtaSBaduYVVofaRqrQfJBcvA-4xBmbcfcFAD4pUORxqlx880Cr9-q_xup_9p5KHDhARFNlb7VIpxOc6l0XJkSb4_MtIdjZSH7JEHbBEjkYD9KOs6EzP8BYKHWiujrlmblXSe2e-DlFuTVlDJsH0nbKWAhVD8jha-Lbvhg8MNjcF5Ns1i-motmfPxNGPKyMCJcA6uXdduk2OSDUIJItMrJ6tbxB8_cMU1_0KJokGACvJcYptshW8r41DZrmVph1OUUmMGUlqSDRI54Z7Vx2Lqkx4ot1xJiR_FgAcWbt6TLYKpZtkVJf_Z5K21OZ5dPMUV41lR_EfHGhJnObQDWEUGswqAt4AYOfamXAqXfIktqHgdNMSOaU4DaHpu_Sr2PjrW8y7himvRrMIuhxDvJ4guezplhR1v5LZgr8cnoaaRg38prvDeAZ4FYgkUHFs866UsBGqaLXnslxjTyxPFg6zAxsCNc7LhhnzMdNBbilmqwYKUzysGL0MRi-6T5n6MGJag6TwOYZyszmxBRQQWrM_8oJL7WPo-3DRaPs8gjZLwLwodqrjP3GzBtyYQL6k97ka3Z8yD-U3wv_esGzcXCsoJy9lg',
ALEXA_SMAPI_ENDPOINTREGION: '', CONTAINERMODE: 'alexa-smapi',
FBPAGERECEIVER_REDISURL: { port: '6379', host: 'redis', db: 0,
options: {} } }
2019-06-17T12:14:44.869Z: 2019-06-17T12:14:43.860Z
botium-ScriptingProvider Using matching mode: includeLowerCase
2019-06-17T12:14:44.999Z: 2019-06-17T12:14:43.861Z
botium-asserterUtils Loaded Default asserter - [ 'BUTTONS', 'MEDIA',
'PAUSE_ASSERTER', 'ENTITIES', 'ENTITY_VALUES', 'INTENT',
'INTENT_CONFIDENCE' ]
2019-06-17T12:14:45.108Z: 2019-06-17T12:14:43.861Z
botium-asserterUtils Loaded Default logic hook - [ 'PAUSE',
'WAITFORBOT', 'SET_SCRIPTING_MEMORY', 'CLEAR_SCRIPTING_MEMORY',
'INCLUDE' ]
2019-06-17T12:14:45.519Z: 2019-06-17T12:14:43.862Z
botium-asserterUtils Loaded Default user input - [ 'BUTTON', 'MEDIA',
'FORM' ]
2019-06-17T12:14:45.628Z: 2019-06-17T12:14:43.863Z
botium-asserterUtils Trying to load HASLINK asserter from
botium-asserter-basiclink
2019-06-17T12:14:45.756Z: 2019-06-17T12:14:44.089Z
botium-asserterUtils Loaded HASLINK SUCCESSFULLY
2019-06-17T12:14:45.884Z: 2019-06-17T12:14:44.116Z
botium-box-worker-runtestcases expanding convos ...
2019-06-17T12:14:46.002Z: 2019-06-17T12:14:44.116Z
botium-ScriptingProvider ExpandConvos - Using utterances expansion
mode: all
2019-06-17T12:14:46.117Z: 2019-06-17T12:14:44.119Z
botium-box-worker-runtestcases found 1 convos ...
2019-06-17T12:14:46.247Z: 2019-06-17T12:14:44.120Z
botium-box-worker-runtestcases batchNum: 1 batchCount: 1
convosPerBatch: 1 batchStart: 0 batchEnd: 0 batchLength: 1
2019-06-17T12:14:46.361Z: 2019-06-17T12:14:44.122Z botium-BotDriver
Build - Botium Core Version: 1.4.13
2019-06-17T12:14:46.567Z: 2019-06-17T12:14:44.122Z botium-BotDriver
Build - Capabilites: { PROJECTNAME: 'Test Project - vMMVv - Test
Session', TEMPDIR: 'botiumwork', CLEANUPTEMPDIR: true,
WAITFORBOTTIMEOUT: 10000, SIMULATE_WRITING_SPEED: false,
DOCKERCOMPOSEPATH: 'docker-compose', DOCKERMACHINEPATH:
'docker-machine', DOCKERMACHINE: false, DOCKERIMAGE: 'node:boron',
DOCKERUNIQUECONTAINERNAMES: false, DOCKERSYSLOGPORT_RANGE:
'47100-47299', BOT_HEALTH_STATUS: 200, SLACK_PUBLISHPORT_RANGE:
'46100-46299', FACEBOOK_PUBLISHPORT_RANGE: '46300-46499',
FACEBOOK_SEND_DELIVERY_CONFIRMATION: true,
BOTFRAMEWORK_PUBLISHPORT_RANGE: '46500-46699',
BOTFRAMEWORK_WEBHOOK_PORT: 3978, BOTFRAMEWORK_WEBHOOK_PATH:
'api/messages', BOTFRAMEWORK_CHANNEL_ID: 'facebook',
SIMPLEREST_PING_RETRIES: 6, SIMPLEREST_PING_TIMEOUT: 10000,
SIMPLEREST_PING_VERB: 'GET', SIMPLEREST_METHOD: 'GET',
WEBSPEECH_SERVER_PORT: 46050, WEBSPEECH_LANGUAGE: 'en-US',
WEBSPEECH_CLOSEBROWSER: true, SCRIPTING_TXT_EOL: '\n',
SCRIPTING_XLSX_EOL_SPLIT: '\r', SCRIPTING_XLSX_EOL_WRITE: '\r\n',
SCRIPTING_XLSX_STARTROW: 2, SCRIPTING_XLSX_STARTCOL: 1,
SCRIPTING_NORMALIZE_TEXT: true, SCRIPTING_ENABLE_MEMORY: true,
SCRIPTING_MATCHING_MODE: 'includeLowerCase',
SCRIPTING_UTTEXPANSION_MODE: 'all',
SCRIPTING_UTTEXPANSION_RANDOM_COUNT: 1,
SCRIPTING_MEMORYEXPANSION_KEEP_ORIG: false,
RETRY_USERSAYS_ONERROR_REGEXP: [], RETRY_USERSAYS_NUMRETRIES: 1,
RETRY_USERSAYS_FACTOR: 1, RETRY_USERSAYS_MINTIMEOUT: 1000,
ASSERTERS: [ { ref: 'HASLINK',
src: 'botium-asserter-basiclink',
global: false,
args: {} } ], LOGIC_HOOKS: [], USER_INPUTS: [], ALEXA_SMAPI_API: 'simulation', ALEXA_SMAPI_SKILLID:
'adminamzn1.ask.skill.4bf0188a-4dda-4810-b754-a3181193fbff',
ALEXA_SMAPI_LOCALE: 'en-US', ALEXA_SMAPI_REFRESHTOKEN:
'Atzr|IwEBIEvgZitZhPSHNy3v7aEQ1OSZAW4iNAjaoHh2zH316H83ZjDZP0q-TFziI8TtVZDZDr-YW7dR7UQlulJ-Vx0aGkqtaSBaduYVVofaRqrQfJBcvA-4xBmbcfcFAD4pUORxqlx880Cr9-q_xup_9p5KHDhARFNlb7VIpxOc6l0XJkSb4_MtIdjZSH7JEHbBEjkYD9KOs6EzP8BYKHWiujrlmblXSe2e-DlFuTVlDJsH0nbKWAhVD8jha-Lbvhg8MNjcF5Ns1i-motmfPxNGPKyMCJcA6uXdduk2OSDUIJItMrJ6tbxB8_cMU1_0KJokGACvJcYptshW8r41DZrmVph1OUUmMGUlqSDRI54Z7Vx2Lqkx4ot1xJiR_FgAcWbt6TLYKpZtkVJf_Z5K21OZ5dPMUV41lR_EfHGhJnObQDWEUGswqAt4AYOfamXAqXfIktqHgdNMSOaU4DaHpu_Sr2PjrW8y7himvRrMIuhxDvJ4guezplhR1v5LZgr8cnoaaRg38prvDeAZ4FYgkUHFs866UsBGqaLXnslxjTyxPFg6zAxsCNc7LhhnzMdNBbilmqwYKUzysGL0MRi-6T5n6MGJag6TwOYZyszmxBRQQWrM_8oJL7WPo-3DRaPs8gjZLwLwodqrjP3GzBtyYQL6k97ka3Z8yD-U3wv_esGzcXCsoJy9lg',
ALEXA_SMAPI_ENDPOINTREGION: '', CONTAINERMODE: 'alexa-smapi',
FBPAGERECEIVER_REDISURL: { port: '6379', host: 'redis', db: 0,
options: {} } }
2019-06-17T12:14:46.763Z: 2019-06-17T12:14:44.123Z botium-BotDriver
Build - Sources : { LOCALPATH: '.', GITPATH: 'git', GITBRANCH:
'master', GITDIR: '.' }
2019-06-17T12:14:46.915Z: 2019-06-17T12:14:44.123Z botium-BotDriver
Build - Envs : { IS_BOTIUM_CONTAINER: true }
2019-06-17T12:14:48.284Z: 2019-06-17T12:14:48.206Z
botium-PluginConnectorContainer Botium plugin
botium-connector-alexa-smapi loaded
2019-06-17T12:14:48.374Z: 2019-06-17T12:14:48.207Z
botium-connector-alexa-smapi Validate called
2019-06-17T12:14:48.463Z: 2019-06-17T12:14:48.210Z
botium-connector-alexa-smapi Build called
2019-06-17T12:14:48.752Z: 2019-06-17T12:14:48.211Z
botium-connector-alexa-smapi Start called
2019-06-17T12:14:48.880Z: 2019-06-17T12:14:48.212Z
botium-box-worker-runtestcases Running Convo "Myplanfeatures_Alexa",
Index 0, 1 from 1
2019-06-17T12:14:49.020Z: 2019-06-17T12:14:48.232Z botium-Convo
Myplanfeatures_Alexa/Line 3: user says { "sender": "me",
"channel": null, "messageText": "bye", "stepTag": "Line 3",
"not": false, "asserters": [], "logicHooks": [], "userInputs":
[] }
2019-06-17T12:14:49.130Z: 2019-06-17T12:14:48.234Z
botium-connector-alexa-smapi UserSays called
You can see if the Botium Agent is online by switching to the Agents view, you should see a recent heartbeat there (agents are sending a "I'm online" heartbeat every few seconds):
If the agent is not online, you have find out why - best way is to have a look at the docker logs.
Related
I faced an unclear behavior in the Playwright 1.18 toBeVisible() expectation.
Here is the test row:
await expect(this.page.locator('.top-row .close i')).toBeVisible({timeout: 2000 })
And if the element is not visible, it hangs forever.
If I jump into the toBeTruthy.js -> toBeTruthy code, I see that the timeout is calculated to 0 despite the received options:
And for some reason, there is the current timeout from _toMatchText matcher used. Is this a bug or I'm doing somethin wrong?
Package.json:
"devDependencies": {
"#playwright/test": "^1.18",
"allure-commandline": "^2.17.2",
"allure-playwright": "^2.0.0-beta.14",
"rimraf": "3.0.2"
}
Playwright config:
import { PlaywrightTestConfig, devices } from '#playwright/test';
const config: PlaywrightTestConfig = {
testDir: './spec',
timeout: 10 * 1000,
expect: {
timeout: 3 * 1000
},
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 5 : 1,
reporter: [
['line'],
['json', { outputFile: './test-results/results.json' }],
['./util/test-start-stop-reporter.ts'],
['allure-playwright']
],
use: {
baseURL: 'http://localhost:8080',
screenshot: 'only-on-failure',
channel: 'chrome', //https://playwright.dev/docs/browsers#chromium
headless: false,
viewport: { width: 1820, height: 950 },
ignoreHTTPSErrors: true,
video: 'retain-on-failure',
actionTimeout: 5 * 1000,
navigationTimeout: 30 * 1000,
launchOptions: {
args: ['--window-position=1980,10'],
devtools: process.env.PWDEBUG ? true : false,
},
},
projects: [
{
name: 'Google Chrome',
use: {
channel: 'chrome',
},
},
],
outputDir: 'test-results/',
};
export default config;
For some reason I cannot start my tests written using WebdriverIO together with Mocha + Chai testing frameworks. When I run yarn start command to start them I get such an output with every test:
Execution of 31 spec files started at 2021-07-22T13:36:42.326Z
[0-0] RUNNING in chrome - C:\Users\ADOMAS-PC\Desktop\Automation Projects\driveweb\test\e2e\specs\e2e\cancelDownload.spec.js
[0-0] Error: Failed to create session.
Unable to create session from {
"desiredCapabilities": {
"browserName": "chrome",
"goog:chromeOptions": {
"binary": "C:\u002f\u002fProgram Files\u002f\u002fGoogle\u002f\u002fChrome\u002f\u002fApplication\u002f\u002fchrome.exe",
"prefs": {
"directory_upgrade": true,
"prompt_for_download": false,
"download.default_directory": "C:\\Users\\ADOMAS-PC\\Desktop\\Automation Projects\\driveweb\\test\\data\\downloads",
"download.prompt_for_download": false,
"profile.default_content_setting_values.automatic_downloads": 1
},
"args": [
"--headless",
"--no-sandbox",
"--incognito",
"--disable-gpu",
"--window-size=1600,1000"
]
}
},
"capabilities": {
"firstMatch": [
{
"browserName": "chrome",
"goog:chromeOptions": {
"binary": "C:\u002f\u002fProgram Files\u002f\u002fGoogle\u002f\u002fChrome\u002f\u002fApplication\u002f\u002fchrome.exe",
"prefs": {
"directory_upgrade": true,
"prompt_for_download": false,
"download.default_directory": "C:\\Users\\ADOMAS-PC\\Desktop\\Automation Projects\\driveweb\\test\\data\\downloads",
"download.prompt_for_download": false,
"profile.default_content_setting_values.automatic_downloads": 1
},
"args": [
"--headless",
"--no-sandbox",
"--incognito",
"--disable-gpu",
"--window-size=1600,1000"
]
}
}
]
}
}
Build info: version: '3.141.5', revision: 'd54ebd709a', time: '2018-11-06T11:58:47'
System info: host: 'DESKTOP-AK6OAUH', ip: '10.18.0.3', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '16.0.1'
Driver info: driver.version: unknown
This is how wdio.webapp.conf.js looks like:
const { createDir, removeDirContents } = require('./test/e2e/helpers/folderHelper');
const { populateData } = require('./test/e2e/helpers/apiHelper');
const { TimelineService } = require('wdio-timeline-reporter/timeline-service');
var mkdirp = require('mkdirp');
const path = require('path');
global.downloadDir = path.join(process.cwd(), 'test/data/downloads');
global.uploadDir = path.join(process.cwd(), 'test/data/uploads');
global.uploadPermDir = path.join(process.cwd(), 'test/data/uploadsPerm');
global.baseUrl = 'https://drive.automation.com/';
exports.config = {
hostname: 'automation-selenium',
port: 4444,
path: '/wd/hub',
specs: [
'./test/e2e/specs/e2e/**/*.spec.js',
'./test/e2e/specs/pages/*.spec.js'
],
maxInstances: 1,
capabilities: [
{
maxInstances: 1,
browserName: 'chrome',
'goog:chromeOptions': {
binary: "C://Program Files//Google//Chrome//Application//chrome.exe",
prefs: {
directory_upgrade: true,
prompt_for_download: false,
'download.default_directory': global.downloadDir,
'download.prompt_for_download': false,
'profile.default_content_setting_values.automatic_downloads': 1
},
args: [
'--headless',
'--no-sandbox',
'--incognito',
'--disable-gpu',
'--window-size=1600,1000']
}
}
],
logLevel: 'debug',
outputDir: './reports/output',
bail: 0,
baseUrl: global.baseUrl,
waitforTimeout: 50000,
connectionRetryTimeout: 60000,
connectionRetryCount: 3,
framework: 'mocha',
mochaOpts: {
ui: 'bdd',
compilers: ['js:#babel/register'],
timeout: 60000,
retries: 1
},
reporters: [
'spec',
[
'allure',
{
outputDir: './reports/allure-results/',
disableWebdriverStepsReporting: true,
disableWebdriverScreenshotsReporting: false
}
]
],
onPrepare: async function(config, capabilities) {
global.baseUrl = config.baseUrl;
createDir(global.downloadDir);
createDir(global.uploadDir);
if (!global.baseUrl.includes('automation.com')) {
await populateData(config.baseUrl);
}
},
afterTest: async function (test, context, { error, result, duration, passed, retries }) {
if (!passed) {
const current_datetime = new Date();
const time = current_datetime.getHours() + "h-" + current_datetime.getMinutes() + "m-" + current_datetime.getSeconds() + "s";
const screenshotDir = path.join(process.cwd(), `screenshots`);
await mkdirp(screenshotDir);
const filename = test.title.replace(/\s+/g, '-');
const screenshotImg = `${screenshotDir}/${time}-${filename}.png`;
browser.saveScreenshot(screenshotImg);
}
},
onComplete: function() {
removeDirContents(global.downloadDir);
removeDirContents(global.uploadDir);
}
};
What I already tried?
Reinstalling chrome browser on my PC.
Installing/reinstalling various libraries like wdio, selenium-standalone and etc.
Run tests from CMD using administrator mode.
Setting binary value to C://Program Files//Google//Chrome//Application//chromedriver.exe
Downgrading node to 12.8.1 version
What else can I try to make them work?
yarn add #wdio/selenium-standalone-service
was a solution to this problem.
I've been trying to update my conf.js file to download files, it should work for firefox and chrome (independent of one another).
I've been following the guides and answers online, (including but not limited to stackoverflow) yet it doesn't fully work for me. Chrome is no problem, firefox is my trouble maker.
On firefox it simply does not download the file, unlike chrome where it downloads the file.
Update: I cannot disable popup from firefox
The relevant info from conf.js
exports.config = {
[...]
multiCapabilities: [
{
browserName: 'chrome',
'goog:chromeOptions': {
w3c: false, // problems with latest chrome driver... browser.actions is causing issues: https://github.com/jan-molak/serenity-js/issues/329
prefs: {
download: {
prompt_for_download: false,
directory_upgrade: true,
default_directory: downloadsPath,
},
},
},
} ,
{
browserName: 'firefox',
'goog:chromeOptions': {
marionette: true,
'moz:firefoxOptions': {
prefs: {
'pdfjs.disabled': true,
'browser.download.folderList': 2,
'browser.download.dir': downloadsPath,
'browser.download.panel.shown': false,
'browser.download.useDownloadDir': true,
'browser.download.manager.useWindow': false,
'browser.helperApps.alwaysAsk.force': false,
'browser.helperApps.neverAsk.openFile': true,
'browser.download.manager.closeWhenDone': false,
'browser.download.manager.alertOnEXEOpen': false,
'browser.download.manager.showWhenStarting': false,
'browser.download.manager.focusWhenStarting': false,
'browser.download.manager.showAlertOnComplete': false,
'browser.helperApps.neverAsk.saveToDisk': 'application/vnd.openxmlformats',
},
},
},
},
],
[...]
};
The relevant code from my dowload-e2e.js spec:
const downloadBtn = manipulations.getDomObject('download-contract-button', 'id');
browser.executeScript('arguments[0].click();', downloadBtn.getWebElement());
try {
await downloads.verifyFileExists(`file-name.docx`);
await downloads.verifyFileSize(`file-name.docx`, 0);
} catch (err) {
throw new Error(`ERROR: ${err.message}`);
}
downloads.removeFile(`file-name.docx`);
Firefox/Chrome try like this:
const multiCapabilities = [
{
browserName: 'chrome',
'goog:chromeOptions': {
w3c: false, // due problems with latest chrome driver
// browser.actions is causing issues: https://github.com/jan-molak/serenity-js/issues/329
prefs: {
download: {
'prompt_for_download': false,
'directory_upgrade': true,
'default_directory': downloadsPath
}
}
}
},
{
browserName: 'firefox',
'goog:chromeOptions': {
marionette: true,
'moz:firefoxOptions': {
prefs: {
'browser.download.folderList': 2,
'browser.download.dir': downloadsPath,
'browser.download.manager.showWhenStarting': false,
'browser.helperApps.alwaysAsk.force': false,
'browser.download.manager.useWindow': false,
'browser.helperApps.neverAsk.saveToDisk': 'application/octet-stream, application/json, ' +
'text/comma-separated-values, text/csv, application/csv, ' +
'application/excel, application/vnd.ms-excel, ' +
'application/vnd.msexcel, text/anytext, text/plaintext, ' +
'image/png, image/pjpeg, image/jpeg, application/zip'
}
}
}
}
];
I've been trying to browser.actions().mouseMove(element(by.xpath('some_xpath'))).perform with protractor to move mouse to the element on page. And geted error when run test on CI\CD. Locally it works fine.
Chrome version 80
chromedriver version 80
here my protractor.config file where i turn w3c to false
multiCapabilities: [{
browserName: 'chrome',
platform: 'ANY',
version: 'ANY',
//Disable or Enable multiCapabilities
shardTestFiles: true,
maxInstances: 8,
// maxSession: 10,
splitTestsBetweenCapabilities: true,
chromeOptions: {
w3c: false,
args: [
'incognito',
'disable-extensions',
'disable-infobars',
// "--headless",
// "--no-sandbox",
"--disable-gpu",
"--window-size=1920,1080",
'show-fps-counter=true',
// '--use-fake-device-for-media-stream',
// '--use-fake-ui-for-media-stream'
"--auto-select-desktop-capture-source=Entire screen",
"--aggressive-cache-discard",
"--disable-cache",
"--disk-cache-size=0"
],
prefs: {
download: {
prompt_for_download: false,
directory_upgrade: true,
default_directory: downloadsPath
}
}
}
}],
I tried to create a dojo custom build for DOJO (version 1.9.3) with the following profile.
var profile = (function() {
return {
releaseDir: "../release",
basePath: "../../",
action: "release",
mini: true,
selectorEngine: "lite",
layerOptimize: "closure",
cssOptimize: "comments",
packages:[{
name: "dojo",
location: "dojo"
},{
name: "dijit",
location: "dijit"
},{
name: "dojox",
location: "dojox"
}],
layers: {
"dojo/dojo": {
includeLocales: ["en-gb","en-us"],
include: [
"dojox/gantt/GanttTaskControl",
"dojox/gantt/GanttChart",
"dojox/gantt/GanttProjectItem",
"dojox/gantt/GanttResourceItem",
"dojox/gantt/GanttProjectControl",
"dojox/gantt/TabMenu"
],
boot: true
}
},
defaultConfig: {
hasCache:{
"dojo-built": 1,
"dojo-loader": 1,
"dom": 1,
"host-browser": 1,
"host-node": 0,
"config-selectorEngine": "lite"
},
async: 1
},
staticHasFeatures: {
"config-dojo-loader-catches": 0,
"config-tlmSiblingOfDojo": 0,
"dojo-log-api": 0,
"dojo-sync-loader": 0,
"dojo-timeout-api": 0,
"dojo-sniff": 0,
"dojo-cdn": 0,
"config-strip-strict": 0,
"dojo-loader-eval-hint-url": 1,
"dojo-firebug": 0,
"dojo-debug-messages": 0
}
};
})();
It is created the dojo.js file successfully in the release folder, but when I try to create an instance for GanttChart it is failing with the following error message.
Cannot read property 'GanttChart' of undefined.
While debugging I found, dojox does not have any properties or methods init.
Can someone help me to fix this?
Thanks a lot.