Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run tests in IE11 with custom window dimensions #93

Open
kurlayev opened this issue May 5, 2017 · 0 comments
Open

Cannot run tests in IE11 with custom window dimensions #93

kurlayev opened this issue May 5, 2017 · 0 comments

Comments

@kurlayev
Copy link

kurlayev commented May 5, 2017

I want to run tests through karma in IE11 and open browser window with width 1200 and height 800 pixels. But after searching on internet I haven't found a solution how to do it.
As I know IE11 can not be started from command line with size options passed in. (Chrome can do it!)
As workaround I use next code that I put on the start of my test suite's code (executes one time before running all tests):
window.resizeTo(1200, 800);
It yields me a desired result when I start karma in --no-single-run mode (config property singleRun = false). In that case when I click DEBUG button new browser window is opened and resized when resizeTo() is invoked. Tests are success.
But when I start karma in --single-run mode this workaround doesn't work! And IE11 window doesn't resized. And tests were failed!
Please, tell me how to run tests in IE11 with my window dimensions?

OS: Windows 7 64x
Karma version: 1.6.0
karma-ie-launcher version: 1.0.0
NodeJs version: 6.9.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant