Forum Discussion
tonydugay
12 years agoContributor
Hi,
I have the same issue - and I have a work-around - but would be keen to hear of better solutions...
My work-around is this:
Aliases.browser.dlgChooseFileToUpload.Click();
Aliases.browser.dlgChooseFileToUpload.Keys(TAB);
Aliases.browser.dlgChooseFileToUpload.Keys(TAB);
Aliases.browser.dlgChooseFileToUpload.Keys(TAB);
Aliases.browser.dlgChooseFileToUpload.Keys(TAB);
Aliases.browser.dlgChooseFileToUpload.Keys(ENTER_KEY);
So instead of trying to click on the buttons directly, I click on the dialog (parent) and then use Keys to navigate around the buttons - once I am on the Open button, I type Enter (TAB and ENTER_KEY are constants I have defined).
I have the same issue - and I have a work-around - but would be keen to hear of better solutions...
My work-around is this:
Aliases.browser.dlgChooseFileToUpload.Click();
Aliases.browser.dlgChooseFileToUpload.Keys(TAB);
Aliases.browser.dlgChooseFileToUpload.Keys(TAB);
Aliases.browser.dlgChooseFileToUpload.Keys(TAB);
Aliases.browser.dlgChooseFileToUpload.Keys(TAB);
Aliases.browser.dlgChooseFileToUpload.Keys(ENTER_KEY);
So instead of trying to click on the buttons directly, I click on the dialog (parent) and then use Keys to navigate around the buttons - once I am on the Open button, I type Enter (TAB and ENTER_KEY are constants I have defined).