spectron

How are webdriver and chromedriver options accessed in Spectron's new Application()?

冷暖自知 提交于 2021-02-10 18:01:51
问题 When I start a new Spectron application (for each test suite) I would like to fix the size of the app (for consistency across all machines and reloads). Commands like setBounds and maximise do change dimensions, but they only do so after the app has started (which means that some components have already assumed certain dimensions, which then changes test results). In the Spectron docs various launch options are available. I've tired to use webdriver and chromedriver options but they don't

Incorrect NODE_MODULE_VERSION when using ava

≯℡__Kan透↙ 提交于 2020-12-13 03:51:53
问题 I write an Electron app that uses nodegit. For my test part I use ava in combination with Spectron to test my app. All of my tests work - including functions which use nodegit in my app. In addition to the tests described above I made also a pure non-Electron test file in which I import nodegit directly. import * as nodegit from 'nodegit'; Executing this test now via ava returns this: node_modules\.pnpm\nodegit@0.27.0\node_modules\nodegit\build\Release\nodegit.node' was compiled against a

Incorrect NODE_MODULE_VERSION when using ava

淺唱寂寞╮ 提交于 2020-12-13 03:49:25
问题 I write an Electron app that uses nodegit. For my test part I use ava in combination with Spectron to test my app. All of my tests work - including functions which use nodegit in my app. In addition to the tests described above I made also a pure non-Electron test file in which I import nodegit directly. import * as nodegit from 'nodegit'; Executing this test now via ava returns this: node_modules\.pnpm\nodegit@0.27.0\node_modules\nodegit\build\Release\nodegit.node' was compiled against a

Incorrect NODE_MODULE_VERSION when using ava

强颜欢笑 提交于 2020-12-13 03:49:25
问题 I write an Electron app that uses nodegit. For my test part I use ava in combination with Spectron to test my app. All of my tests work - including functions which use nodegit in my app. In addition to the tests described above I made also a pure non-Electron test file in which I import nodegit directly. import * as nodegit from 'nodegit'; Executing this test now via ava returns this: node_modules\.pnpm\nodegit@0.27.0\node_modules\nodegit\build\Release\nodegit.node' was compiled against a

simple example of electron app with spectron test

北战南征 提交于 2020-01-24 19:34:37
问题 I am trying to learn how to test apps, build with electron, using spectron. for this I took an example application from the web with a simple header, counter label, and incrementer button. I use mocha as a test runnen. The test should launch the app, push the button and check the counter label. I can't even get to the point where the app is launched properly. I am getting the error " TypeError: Cannot read property 'waitUntilWindowLoaded' of undefined" when I run the test. Also when looking

Spectron using mocha is not working as expected

匆匆过客 提交于 2019-12-25 17:59:22
问题 I have written one login test case for my electron app using mocha via spectron tool. I am facing following issues. Sometimes my script works completely fine, and I am able to pass username and password value to web elements and login is executed. Sometimes I am able to see testcases as passed, but values are not passed to username and password web elements. One day I tried to clear my system temp files and executed "npm test" command and script executed properly, but again next day facing

Linking selenium with electron framework (c#)

流过昼夜 提交于 2019-11-28 05:06:42
问题 I've already written few lines of code in C# using Selenium webdriver. As my application was transferred to the Electron framework everything has changed and honestly, I don't know how to cope with it right now. Could you please clarify it to me? What steps should I take to simple start... I would like to continue my work in the current project (selenium, C#), but I'm not sure that it's possible, or I should completely start from scratch using a different language and framework? I've read