【问题标题】:Gemini: IE11 doesn't work双子座:IE11 不工作
【发布时间】:2018-05-07 13:58:54
【问题描述】:

您能帮忙解决以下问题吗?

  1. 尝试运行 Gemini 的 Visual Test
  2. IE 11 不运行双子座测试

    • Selenium 独立: 3.7.1

这是堆栈跟踪:

[moveTo({"element-6066-11e4-a52e-4f735466cecf":"320a2146-d2b3-4868-accc-cb04927e6cb2"},0,0)] Error response status: 13, UnknownError - An unknown server-side error occurred while processing the command.

Selenium Wiki 调查到,moveTo 操作在gemini 库中用于校准浏览器,但该功能在IEDriver 中不起作用。这是使用 moveTo 操作的文件:link to gemini file

gemini.reset = () => {}; - it doesn't work

有人知道怎么解决吗?

提前致谢

这里是代码:test.gemini.js

    gemini.suite('test', (suite) => {
  suite.setUrl('/test')
    .setCaptureElements('[test]')
    .capture('email')
    .before((actions, find) => {
    this.emailField = find('input[name="email"]');
    this.usernameField = find('input[name="username"]');
    this.saveButton = find('test');
    })
    .capture('with text', (actions, find) => {
      actions.sendKeys(this.emailField, 'test');
    })
    .capture('click', (actions, find) => {
      actions.waitForElementToShow('input[name="username"]');
      actions.click(this.emailField);
    })
    .capture('hover', (actions, find) => {
      actions.mouseMove(this.emailField)
    })
    .capture('name with text', (actions, find) => {
      actions.sendKeys(this.usernameField, 'test test test 1074029859084*^@*($^)%)()9308')
    })
    .capture('click on save button', (actions) => {
      actions.click(this.saveButton);
    });
});

.gemini.js

module.exports = {
  rootUrl: 'http://localhost:7777',
  gridUrl: 'http://127.0.0.1:4444/wd/hub',
  screenshotsDir: './screens',
  windowSize: '1600x1080',

  system: {
    plugins: {
      'html-reporter': {
        enabled: true,
        path: 'my/gemini-reports',
        defaultView: 'all',
        baseHost: 'test.com'
      }
    }
  },

  browsers: {
    // chrome: {
    //   desiredCapabilities: {
    //     browserName: 'chrome',
    //   }
    // },

    ie11: {
      desiredCapabilities: {
        browserName: 'internet explorer',
        version: '',
        ignoreProtectedModeSettings: true,
        ignoreZoomSetting: true,
        requireWindowFocus: true,
        ensureCleanSession: true
      }
    },
  }
};

【问题讨论】:

  • 这个问题的可能解决方案是使用另一个版本的 selenium。这里是: selenium-standalone install --version=2.47.0 --drivers.ie.version=2.53.1 selenium-standalone start --version=2.47.0 --drivers.ie.version=2.53.1

标签: internet-explorer selenium-webdriver selenium-iedriver gemini visual-testing


【解决方案1】:

此问题的可能解决方案是使用另一个版本的 selenium。 这里是:

selenium-standalone install --version=2.47.0 --drivers.ie.version=2.53.1

selenium-standalone start --version=2.47.0 --drivers.ie.version=2.53.1

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多