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.

Can't interact with dialog

See original GitHub issue

I am opening dialog in my app like this:

const path = dialog.showOpenDialog(remote.getCurrentWindow(), {
      title: i18n.t("Where do you want to save it?"),
      properties: ['openDirectory', 'createDirectory']
    });

And I cannot find way to select directory in tests. I tried using webdriverio’s keys with no luck. I thought that maybe electron creates second window and that’s why I can’t interact with it but by using client.getWindowCount() it founds only 1 window. Any ideas?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:11
  • Comments:12

github_iconTop GitHub Comments

3reactions
davejcommented, Jul 25, 2016

See #94 for a somewhat graceful way of mocking dialogs for the moment.

2reactions
danielroehrigcommented, Sep 29, 2020

There is also spectron-dialog-addon which is a newer fork of spectron-fake-dialog but it only supports electron up to 6 and I am on electron 9 and I didn’t get it to work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't click anything on a dialog box or something like that
Hello, I am using a windows 8.1 and whenever I try to click something on a dialog box, nothing happens, for example when...
Read more >
We've got an update for you, can't click on anything.
Just today i got this dialogue box and i was unable to click on any of the options in the dialogue box. What's...
Read more >
Can't interact with dialog · Issue #23 · electron-userland/spectron
I am opening dialog in my app like this: const path = dialog.showOpenDialog(remote.getCurrentWindow(), { title: i18n.t("Where do you want to ...
Read more >
Mac OS Big Sur - Dialog box not responding to mouse clicks
I have noticed that dialog boxes which open up for File Open or File Save As functionality in various applications do not respond...
Read more >
Fix: Word Can't do This Because a Dialog Box is Open
What does it mean when Word says a dialog box is open? · There is another instance of the same Word document open....
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