← Back to team overview

sikuli-driver team mailing list archive

[Question #661218]: Open browser in python script without using full system path

 

New question #661218 on Sikuli:
https://answers.launchpad.net/sikuli/+question/661218

Hi!

On Windows, I'm trying to open  a browser (e.g., chrome) through python sikuli script  without using its system path since a priori I don't know  the right path on different machines and OS versions.

I tried the following codes:

--->
someApp = App("Firefox") 
someApp.open()

--->
App.open("firefox")

None is working, only the full path 
=> App.open("C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe")
=> App.open("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe")

Is there a way to do it?
Thank you!

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.