-
-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added app mode support for micorsoft edge, IE mode for internet explo…
…rer and increase timeout for test run. (#744) * Added msie mode for internet explorer and fixed app mode for edge browser. Added MSIE mode to support device which does not have edge installed by default ( win <10). Added support in edge to support edge mode or new window mode if app mode is not requested.
- Loading branch information
1 parent
27ddbbe
commit 094d446
Showing
5 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import platform | ||
import subprocess as sps | ||
import sys | ||
from typing import List | ||
|
||
from eel.types import OptionsDictT | ||
|
||
name: str = 'MSIE' | ||
|
||
|
||
def run(_path: str, options: OptionsDictT, start_urls: List[str]) -> None: | ||
cmd = 'start microsoft-edge:{}'.format(start_urls[0]) | ||
sps.Popen(cmd, stdout=sys.stdout, stderr=sys.stderr, stdin=sps.PIPE, shell=True) | ||
|
||
|
||
def find_path() -> bool: | ||
if platform.system() == 'Windows': | ||
return True | ||
|
||
return False |