์๋ !
7.5.0
4.0.14
Chrome 56 on centos 7 (idem for Firefox)
CentOS 7
'use strict';
var testiCommons = require('../utilit/testiCommons.js');
exports.config = {
framework: 'mocha',
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['../../../*/tests/protractor/**/*.js'],
baseUrl: 'http://localhost:3001',
getPageTimeout: 30000,
allScriptsTimeout: 30000,
mochaOpts: {
timeout: 30000, // ms,
reporter: 'spec',
slow: '2000', // a test is slow if it takes over 1 sec to accomplish
delay: true
},
capabilities: {
// If this is set to be true, specs will be sharded by file (i.e. all
// files to be run by this set of capabilities will run in parallel).
// Default is false.
shardTestFiles: false,
// Maximum number of browser instances that can run in parallel for this
// set of capabilities. This is only needed if shardTestFiles is true.
// Default is 1.
maxInstances: 1,
browserName: 'chrome',
// browserName: 'firefox',
'chromeOptions': {
// Get rid of --ignore-certificate yellow warning
args: ['--no-sandbox', '--test-type=browser'],
// --start-maximized
// Set download path and avoid prompting for download even though
// this is already the default on Chrome but for completeness
prefs: {
'download': {
'prompt_for_download': false,
'default_directory': '/datas/temp',
}
}
}
},
onPrepare: function() {
},
onComplete: function() {
console.log('Into global onComplete test function');
testiCommons.disconnectMongo();
},
};
$elt.sendKeys(webdriver.Key.CONTROL, 'a', webdriver.Key.NULL, keys);
$elt.sendKeys(protractor.Key.chord(protractor.Key.CONTROL, 'a'));
$elt.sendKeys(keys);
๋๋
browser.actions().keyDown(protractor.Key.CONTROL).sendKeys('a').perform();
$elt.sendKeys(keys);
browser.actions().keyUp(protractor.Key.CONTROL).perform();
CTRL+A(ํ๋์์ ํ ์คํธ ์ ํ)๊ฐ ์ ํ๋์ง ์์๊ธฐ ๋๋ฌธ์ ๋ ๊ตฌ์ฑ ๋ชจ๋ ์ง๊ธ(์ด์ ์๋) ์๋ํ์ง ์์ต๋๋ค.
๋น์ทํ ๋ฌธ์ ๊ฐ ์์ต๋๋ค.
๊ฐ๋๊ธฐ 5.1.0
๋
ธ๋ 6.9.1
ํฌ๋กฌ ๋๋ผ์ด๋ฒ 2.27
ํฌ๋กฌ 56.0
element(by.css('input')).sendKeys(arg1).then(function() {
browser.actions().sendKeys(protractor.Key.ENTER).perform().then(callback);
});
browser.driver.actions()
.mouseDown(element($(cssSelector)).getWebElement())
.mouseMove({x: 0, y: amount}) // try different value of x
.mouseUp()
.perform();
๋ ๋ค ๋ ์ด์ ์๋ํ์ง ์์ผ๋ฉฐ [ null ] ๋ฐ [ null, null, null, null ]๊ณผ ๊ฐ์ ์คํ ์ถ์ ์ด ์๋ ์ด์ํ ์ค๋ฅ ๋ฉ์์ง๋ฅผ ๋ค์ ๋ณด๋ ๋๋ค.
+1
๊ฐ๋๊ธฐ: 4.0.14
ํฌ๋กฌ ๋๋ผ์ด๋ฒ: 2.26
Chrome 53์์๋ browser.actions.keyDown(protractor.Key.ALT).sendKeys('a').keyUp(protractor.Key.ALT).perform();
๊ฐ ์๋ฒฝํ๊ฒ ์๋ํฉ๋๋ค.
Chrome 56์์๋ ์๋ํ์ง ์์ต๋๋ค.
๋์ผํ ๋ฌธ์ , ์ ๋ฐ์ดํธ๊ฐ ์์ต๋๊น?
๊ฐ๋๊ธฐ: 5.4.2
ํฌ๋กฌ ๋๋ผ์ด๋ฒ: 2.41
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
+1
๊ฐ๋๊ธฐ: 4.0.14
ํฌ๋กฌ ๋๋ผ์ด๋ฒ: 2.26
Chrome 53์์๋
browser.actions.keyDown(protractor.Key.ALT).sendKeys('a').keyUp(protractor.Key.ALT).perform();
๊ฐ ์๋ฒฝํ๊ฒ ์๋ํฉ๋๋ค.Chrome 56์์๋ ์๋ํ์ง ์์ต๋๋ค.