I have a web app that I want to click a file selector button on but it doesnt work - or rather I can get it to work but only if I click on the pane that the button is in before PAD tries to call the click event/function.
function ExecuteScript()
{
document.window.focus(); getElementById('FileSelector').click();
}
the above it what Im trying but as I say, it doesnt work unless I click in the correct section - Ive tried using the Hover over UI element and then sending a click but that doesnt work either, I suspect as its not finding the element to click. Can anybody help? This is driving me nuts!
