Firebug
It is
possible to use Firebug tool to execute Flex Pilot commands interactively.
Being able to run commands this way proves that Flex Pilot bootstrapping has
succeeded. Once the application has been opened in the browser, Flex Pilot
commands can be executed in the Firebug console like this:
document.getElementById('appId').fp_click({'id':
'elemId'})
In the above
example appId is the id of the Flex Application in the HTML source code and
elemId is the id of the clicked element in the Flex source. All the available
Flex Pilot commands and their arguments are listed in the Flex Pilot API.
If you just
want to verify that bootstrapping works, you can run only the example below.
Everything should be set up correctly if this command returns function, fp_click()
or something similar. If you get undefined, you need to checkout your
bootstrapping again.
document.getElementById('appId').fp_click
No comments:
Post a Comment