Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not setValue to EditBox on my excel 2016 ? #75

Open
sureshmanik opened this issue Feb 20, 2018 · 1 comment
Open

Can not setValue to EditBox on my excel 2016 ? #75

sureshmanik opened this issue Feb 20, 2018 · 1 comment

Comments

@sureshmanik
Copy link

sureshmanik commented Feb 20, 2018

I have couple of editbox as a ribbon tab ( COM add-In) in my excel application. I am trying to navigate to that tab and trying to setvalue to the first edit box.
window.getControlByClassName("MyAddinTab", "NetUIRibbonTab").getElement().setFocus(); - This works and this opens up the editboxes in that tab.
window.getEditBox(1).getElement().setFocus(); - This works and set the focus on this edit box
window.getEditBox(1).setValue("Test"); - This seems to be not working. There is no automationException or PatternNotfound exception.
( I am also not able to manually enter anything on the editbox after i run my code. I had to manually click on someother menu and the go back to my add-in tab & then my editbox works. This is totally strange)
Any idea/help on how to fix this issue ? or any workarounds?

@sureshmanik
Copy link
Author

I tried to implement this directly in C# using UI automation framework and still having same issues. I think this is a problem with excel 2016 version. I will try to downgrade it to 2014 and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant