Protractor: 複数のキー(CTRL + a)を持つs​​endKeysが機能しなくなった

作成日 2017年02月04日  ·  3コメント  ·  ソース: angular/protractor

やあ!

バグレポート

  • ノードバージョン: 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(フィールドでテキストを選択)が選択されていないため、両方の構成が機能しなくなりました(以前は機能していました)。

最も参考になるコメント

+1

分度器:4.0.14
Chromeドライバー:2.26

Chrome 53ではbrowser.actions.keyDown(protractor.Key.ALT).sendKeys('a').keyUp(protractor.Key.ALT).perform();は完全に正常に機能します。
Chrome 56では、機能しません。

全てのコメント3件

同様の問題がある:
分度器5.1.0
ノード6.9.1
Chromeドライバー2.27
Chrome 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
Chromeドライバー:2.26

Chrome 53ではbrowser.actions.keyDown(protractor.Key.ALT).sendKeys('a').keyUp(protractor.Key.ALT).perform();は完全に正常に機能します。
Chrome 56では、機能しません。

ここで同じ問題、更新はありますか?

分度器:5.4.2
Chromeドライバー:2.41

このページは役に立ちましたか?
0 / 5 - 0 評価