Forum Discussion
Yeah I saw that as well.
Can you please give an example of how i can use ClickText to find the correct text? where can i find this method? there's no ClickText method in that comboBox
Essentially, you may need to go through OCR to find the text on the screen and click on it.
Alternatively, if you click on the ComboBox to get the drop down without using ClickItem (simple Click method), you may be able to inspect the items in the list in the drop down window and see if there's a way you can find and click on the item that way.
- Oferv2 years agoSuper Contributor
When clicking the drop down in order to open it using click() method, it won't open. it will open and close very quickly. not sure why
- Oferv2 years agoSuper Contributor
OK, I have managed to resolve this prob:
NoOfLang = Aliases.DesignerProcess.DesignerMainWindow.BackstageViewMenu.BackStageWindowPanels.OptionsTabBackStageWindow.LanguageOptionComboBox.Items.SourceCollection.Count
for i in range(NoOfLang):
LangNativeName =Aliases.DesignerProcess.DesignerMainWindow.BackstageViewMenu.BackStageWindowPanels.OptionsTabBackStageWindow.LanguageOptionComboBox.Items.SourceCollection.Item[i].Value.NativeName.OleValue
if LangNativeName == param1:
comboBox.ClickItem(i)break
Hope it will help someone else who has a similar problem.
Thanks for all the help
Ofer