Re: [orca-list] Want to get the URL from Firefox.
- From: Scott Haeger <scott bashautomation com>
- To: orca-list gnome org
- Subject: Re: [orca-list] Want to get the URL from Firefox.
- Date: Thu, 20 Mar 2008 09:10:06 -0400
The best way to get the URL is via Document interface by retrieving the
object attribute 'DocURL' on the document frame. The following is the
method used in Orca:
def getDocumentFrameURI(self):
"""Returns the URI of the document frame that is active."""
documentFrame = self.getDocumentFrame()
if documentFrame:
attrs = documentFrame.queryDocument().getAttributes()
for attr in attrs:
if attr.startswith('DocURL'):
return attr[7:]
return None
Hope this helps.
Scott
vCracker wrote:
I'm a .net programmer, and working on a project that requires to get
the URL from different browser.
I've completed IE7's work but stuck on the firefox. I've not used
accessibility for IE but think that have to use for Firefox.
I have used spy++ and accExplores 2.0 to explore the hierarchy of the
browser.
And found the combobox (address bar), whose value I need to extract.
But the problem is that I don't know how to get that value. I can't
drill down to that node. So do anyone have any idea about my problem?
_______________________________________________
dev-accessibility mailing list
dev-accessibility lists mozilla org
https://lists.mozilla.org/listinfo/dev-accessibility
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]