New question #216012 on Sikuli:
https://answers.launchpad.net/sikuli/+question/216012
Am trying to open a URL in web browser using the below 2 methods and facing
some issues. Kindly help me out of this.
1)
from sikuli import *
from subprocess import Popen
Popen(["firefox", "www.google.com"], )
Error:
Traceback (most recent call last):
File "C:\Users\ambigaj\Works\CreateIR\src\MainFile.py", line 11, in <module>
Popen(["firefox", "www.google.com"],)
File "C:\jython2.5.3\Lib\subprocess.py", line 751, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\jython2.5.3\Lib\subprocess.py", line 1265, in _execute_child
raise OSError(e.getMessage() or e)
OSError: Cannot run program "firefox" (in directory
"C:\Users\ambigaj\Works\CreateIR"): CreateProcess error=2, The system cannot
find the file specified
2)
import webbrowser
webbrowser.open("https://172.16.57.226")
Error:
Traceback (most recent call last):
File "C:\Users\ambigaj\Works\CreateIR\src\MainFile.py", line 12, in <module>
import webbrowser
ImportError: No module named webbrowser
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp