question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

app.client inaccessible

See original GitHub issue

I am using spectron with mocha. All functions which don’t use app.client work very well like

  it('screenshot', function (done) {
    this.app.browserWindow.capturePage().then(function (imageBuffer) {
      fs.writeFile(__dirname+'/page.png', imageBuffer, function () {
        done();

      });
    });
  });

It opens the window, take a screenshot and close the window.

But all functions like this.app.client.getTitle(), this.app.client.getWindowCount() or this.app.client.getText('#title') totally mess up. For example getWindowCount() returns 2 whereas there is only one window.

Do you know the origin of this bug ?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
kevinsawickicommented, Aug 1, 2016

As for ignoring Dev Tools windows @kevinsawicki ?

I’ll have to take a look about what information ChromeDriver returns for dev tools windows to see if they can be distinguished from regular browser windows.

0reactions
friedrithcommented, Aug 1, 2016

You may use an environment variable or an argument of your application in order to hide the devTools with spectron. In fact, they wont be there in production.

Read more comments on GitHub >

github_iconTop Results From Across the Web

10 Risks Associated with Inaccessible Websites and Mobile ...
Have you ever considered the legal risks associated with your company—or your client's—website or mobile app not being fully accessible to ...
Read more >
takeElementScreenshot inaccessible via app.client (Spectron ...
I was made to believe that Spectron encompasses WebdriverIO, and all wdio functionality is available via app.client.
Read more >
How do I troubleshoot an inaccessible Web App Server in the ...
How do I troubleshoot an inaccessible Web App.. ... need to use the ping command in the Windows command prompt (cmd) of the...
Read more >
My experiences with inaccessible job applications & how to fix ...
The college's application system had issues that prevented me from entering my employment and educational history in their online application.
Read more >
Service with wsDualHttpBinding inaccessible after client ...
I'm developing an application that uses the wsDualHttpBinding model in a service hosted by IIS. It works appropriately sending duplex ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found