gemini icon indicating copy to clipboard operation
gemini copied to clipboard

actions events don't register for ie9 virtual machine (windows 7)

Open achung89 opened this issue 7 years ago • 3 comments

When reporting a bug, make sure you provide all required info below. Reports without this information may be closed.

ie9 vm (windows 7) does not register 'actions.sendKeys'. Test indicates the suite passed, but input field is empty, and no onchange events are triggered. The behavior work on firefox and chrome running on the host machine, I haven't tried it with other ie/vm combinations yet.

Edit: running both server-standalone (v. 3.8.0) and iedriver (v.3.8.0) on the vm.

Output of gemini --version: 5.1.2 ...


Contents of `.gemini.js` file:
{
	"rootUrl": URL,
	"gridUrl": "http://127.0.0.1:4444/wd/hub",
	"compositeImage": true,
	"browsers": {
		"ie9": {
			"gridUrl":VM_GRID + ':4444/wd/hub',
			"rootUrl":URL_for_VM,
			"desiredCapabilities":{
				"browserName": "internet explorer",
				"version": 9,
				"platform": "WINDOWS",
			}
		},
		// "chrome": {
		// 	"desiredCapabilities": {
		// 		"browserName": "chrome"
		// 	}
		// },

               ...
}

Test source code:

gemini.suite('suit 1', (suite) => {
  suite.setUrl('/')
      .before((actions, find) => {
        actions.executeJS(function (window) {
          var style = window.document.createElement('style');
          style.innerHTML = 'html { overflow: hidden; }';
          window.document.head.appendChild(style);
        })
      })
      .setCaptureElements('[data-test="main"]')
      .capture(`stepone: fill first-name`, (actions, find) => {
          var inputField = find(`[data-test="first-name"]`);
          actions.click(inputField)
                      .sendKeys(inputField, 'first-name');
  })
})

Command used to run the test:

gemini update

achung89 avatar Feb 03 '18 21:02 achung89

EDIT: works for ie10 and ie11

achung89 avatar Feb 05 '18 02:02 achung89

maybe it because of such selector? can you try to match on class instead of attributes?

sipayRT avatar Feb 13 '18 08:02 sipayRT

hmmm tried it with id and class, it came back with the same results. Here are the things I have tried so far:

  1. Using different combinations of iedriver and server-standalone versions (from 2.39 to 3.9.1)
  2. Setting the selenium-server-standalone role to 'node' and hosting a hub on the host machine

achung89 avatar Feb 13 '18 19:02 achung89