linux - Using Python to start a browser (Chromium) and change the url -


i trying write script makes possible change url of active process.

so instance, starting browser using:

browser = popen(["chromium", "http://www.google.com"]) 

after x interval want change url of browser.

i've tried allot of things result nothing has succeeded far. (stdin.write / put (pipe) etc etc.).

browser = sh.command('uzbl-browser')(print_events=true, config='-', uri=current_browser_url, _bg=true) browser.process.stdin.put('uri http://www.google.nl' + '\n') 

i'm hoping can me out this.

regards,

wesley.

if work browsers + python, you'll want take @ selenium. it's not copy-paste can learn in couple of hours...

http://www.seleniumhq.org/


Comments