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

I am trying to write a script that makes it possible to change the url of an active process.

So for instance, I am starting my browser using:

browser = Popen(["chromium", ""])

After an X interval I want to change the url of browser.

I've tried allot of things to get this result but nothing has succeeded so 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' + '\n')

I'm hoping you can help me out with this.




if you work with browsers + python, you'll probably want to take a look at Selenium. It's not copy-paste but you can learn it in couple of hours...

I recommend using selenium to automate this process although you could use webbrowser too:

from selenium.webdriver import *;

chrome = Chrome() # create browser

Need Your Help

itoa to std::to_string

c++ tostring itoa

This may be a vaugue question but im getting this error

Can the OData SDK with sup be used to retrieve data from a wcf data service?

android sybase odata sup

Is it possible to use the OData SDK with Sybase Unwired Platform to develop a native Android application which connects to a non SAP EIS system, for example a WCF Data Service?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.