Questions tagged [spectron]

Spectron is a testing framework, built upon ChromeDriver and WebdriverIO, for end to end testing Electron applications.

Spectron is built by the Electron team to make end to end testing Electron apps easy. As of 2017 it's the only e2e testing framework with native support for Electron.

It's a wrapper around WebdriverIO which their API's is almost the same, except the additional Electron parts.

112 questions
0
votes
1 answer

electron-spectron webdriverIO how to get a video tag source?

I am now write some tests with electron-spectron. After spectrum start my app, I want to check if my video is stopped or not the code is like element test code…
JeffChen
  • 173
  • 2
  • 10
0
votes
1 answer

Performance measurements from Spectron

Is there anyway to use Spectron to pull out performance metrics like fps? It would be very useful to know if our Electron app is staying performant as it's complexity grows. I've been looking around online but don't see anything for WebdriverIO or…
cham
  • 8,666
  • 9
  • 48
  • 69
0
votes
0 answers

WebdriverIO xpath selector doesn't work

I am testing an electron app using Spectron and webdriverIO, when I try to locate an element using xpath, it doesn't seems to work, as when I log in the console it tells me the element is undefined. The html code is shown below:
Harvey Lin
  • 724
  • 11
  • 25
0
votes
1 answer

Displaying Spectron-Webdriverio test results in TeamCity

I would like to display Spectron test results in TeamCity. I have followed the instructions at the Webdriverio TeamCity Reporter page, which are: npm install wdio-teamcity-reporter --save-dev and creating a wdio.conf.js file: exports.config = { …
cham
  • 8,666
  • 9
  • 48
  • 69
0
votes
0 answers

Testing apps made of electron application framework

I am new to JS and electron in general, always been a back end dev using languages such as java and C#, I briefly worked on an older Perl project as well. I have been tasked to create tests for one of our newer apps made in electron, I know that it…
Harvey Lin
  • 724
  • 11
  • 25
0
votes
2 answers

Jasmine - Getting "describe is not defined" when run the script using spectron

I have install spectron using the following command npm install -g spectron but i am unable to run globally. So I install locally as you said. have installed Jasmine and i have specified test scrips as jasmine in package.json var Application =…
0
votes
1 answer

How to automate desktop application developed using electron framework?

Our application is developed using electron framework. it is a standalone application. I have seen that spectron is the framework which is used to automate electron application. but i am not sure whether it is applicable for desktop application.…
1 2 3 4 5 6 7
8