ยปCore Development>Code coverage>Lib/plat-mac/lib-scriptpackages/Explorer/Microsoft_Internet_Explorer.py

Python code coverage for Lib/plat-mac/lib-scriptpackages/Explorer/Microsoft_Internet_Explorer.py

#countcontent
1n/a"""Suite Microsoft Internet Explorer Suite: Events defined by Internet Explorer
2n/aLevel 1, version 1
3n/a
4n/aGenerated from /Applications/Internet Explorer.app
5n/aAETE/AEUT resource version 1/0, language 0, script 0
6n/a"""
7n/a
8n/aimport aetools
9n/aimport MacOS
10n/a
11n/a_code = 'MSIE'
12n/a
13n/aclass Microsoft_Internet_Explorer_Events:
14n/a
15n/a def GetSource(self, _object=None, _attributes={}, **_arguments):
16n/a """GetSource: Get the HTML source of a browser window
17n/a Required argument: Window Identifier of window from which to get the source. No value means get the source from the frontmost window.
18n/a Keyword argument _attributes: AppleEvent attribute dictionary
19n/a Returns: undocumented, typecode 'TEXT'
20n/a """
21n/a _code = 'MSIE'
22n/a _subcode = 'SORC'
23n/a
24n/a if _arguments: raise TypeError, 'No optional args expected'
25n/a _arguments['----'] = _object
26n/a
27n/a
28n/a _reply, _arguments, _attributes = self.send(_code, _subcode,
29n/a _arguments, _attributes)
30n/a if _arguments.get('errn', 0):
31n/a raise aetools.Error, aetools.decodeerror(_arguments)
32n/a # XXXX Optionally decode result
33n/a if _arguments.has_key('----'):
34n/a return _arguments['----']
35n/a
36n/a def PrintBrowserWindow(self, _object=None, _attributes={}, **_arguments):
37n/a """PrintBrowserWindow: Print contents of browser window (HTML)
38n/a Required argument: Window Identifier of the window to print. No value means print the frontmost browser window.
39n/a Keyword argument _attributes: AppleEvent attribute dictionary
40n/a """
41n/a _code = 'misc'
42n/a _subcode = 'pWND'
43n/a
44n/a if _arguments: raise TypeError, 'No optional args expected'
45n/a _arguments['----'] = _object
46n/a
47n/a
48n/a _reply, _arguments, _attributes = self.send(_code, _subcode,
49n/a _arguments, _attributes)
50n/a if _arguments.get('errn', 0):
51n/a raise aetools.Error, aetools.decodeerror(_arguments)
52n/a # XXXX Optionally decode result
53n/a if _arguments.has_key('----'):
54n/a return _arguments['----']
55n/a
56n/a _argmap_do_script = {
57n/a 'window' : 'WIND',
58n/a }
59n/a
60n/a def do_script(self, _object, _attributes={}, **_arguments):
61n/a """do script: Execute script commands
62n/a Required argument: JavaScript text to execute
63n/a Keyword argument window: optional Window Identifier (as supplied by the ListWindows event) specifying context in which to execute the script
64n/a Keyword argument _attributes: AppleEvent attribute dictionary
65n/a Returns: Return value
66n/a """
67n/a _code = 'misc'
68n/a _subcode = 'dosc'
69n/a
70n/a aetools.keysubst(_arguments, self._argmap_do_script)
71n/a _arguments['----'] = _object
72n/a
73n/a
74n/a _reply, _arguments, _attributes = self.send(_code, _subcode,
75n/a _arguments, _attributes)
76n/a if _arguments.get('errn', 0):
77n/a raise aetools.Error, aetools.decodeerror(_arguments)
78n/a # XXXX Optionally decode result
79n/a if _arguments.has_key('----'):
80n/a return _arguments['----']
81n/a
82n/a
83n/a#
84n/a# Indices of types declared in this module
85n/a#
86n/a_classdeclarations = {
87n/a}
88n/a
89n/a_propdeclarations = {
90n/a}
91n/a
92n/a_compdeclarations = {
93n/a}
94n/a
95n/a_enumdeclarations = {
96n/a}