twiss wrote:I am running in a problem, I need to access a local hosted index.html.
I have a running web app, an call th website with: DoWebNavigate("
http://www.twiss.eu");
This is working fine.
I have uploaded a custom index.html to c$\local_site\
But I can not figure out how to call this file instead of "http:\\
www.twiss.eu"
Already tried:
DoWebNavigate("file///c$/local_site/index.html")
DoWebNavigate("file///c/local_site/index.html")
DoWebNavigate("file///C/local_site/index.html")
I'm not sure what you are using to do this but various ways to operate on web pages do not have support for accessing the local file system. This can mean that you can't very easily test without setting up a local web server or writing some sort of layer between two different means of access, one for the web and the other for the local file system.
If you type
python -m SimpleHTTPServer 8000
in the directory with the file you want to load in, you should be able to access it with your web based library with something like
DoWebNavigate("
http://localhost:8000/index.html");
Replace localhost with the actual ip if are using a different machine to serve up the web page.
If you need to access files and web pages transparently, you might have to glue together two different libraries or perhaps find something that handles this transparently.