We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Both PhantomJS and Chrome allow you to give the initial dimensions of the browser to allow responsive testing, but not firefox.
I thought it would be trivial but it turns out not to be simple.
Modifying this line to the following should work, but doesn't?
self._execCommand(command, [url, '-profile', self._tempDir, '-no-remote -width 335 -height 670']);
This is what I did get working, but it's not pretty - Add the following before this line:
fs.writeFileSync(self._tempDir + '/xulstore.json', '{"chrome://browser/content/browser.xul":{"main-window":{"width":"335","height":"670"}}}');
Obviously, the height and width should be passed in (I was just tinkering to try to get it to work)
Maybe something else altogether?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Both PhantomJS and Chrome allow you to give the initial dimensions of the browser to allow responsive testing, but not firefox.
I thought it would be trivial but it turns out not to be simple.
Modifying this line to the following should work, but doesn't?
This is what I did get working, but it's not pretty - Add the following before this line:
Obviously, the height and width should be passed in (I was just tinkering to try to get it to work)
Maybe something else altogether?
The text was updated successfully, but these errors were encountered: