I think Selenium is not helpful in this area, it's a web ui testing framework.