Selenium is Browser automation framework a.k.a webdrivers api. WebDriver APIs are focused on driving the browser from the user's point of view. For this reason, you won't find methods such as "fireEvent", and this is why "getText" attempts to return the text as a user would see it. This is also why it's important that installation of webdriver be as simple as possible.
Please contact me then we can discuss about your requirement.