I would like to know how do we access an element (for ex -by classname) in JavaScript that is used with run script option in Automation anywhere for a specific website. The normal JavaScript operation with variables work in AA but if i try using DOM elements it gives error as Document is undefined. I am trying this with JS as it is cross browser compatible and not using VBscript as it restricts only to IE.
Please share some example that highlights my problem scenario.
Thanks in Advance.