Forum Discussion
I would like to see the "Python conditional statements" that is not working for you, as you started your first sentence with this question.
In the coding you have provided, you are clicking on the dropdown of comboBox, then entering 'a' followed by 'return' on the hwndSource, then entering 'return' on the comboBox. This doesn't deem to be consistent.
Here's the code for the conditional statements:
def Test2():
I_Software = Aliases.I_Software
button = I_Software.HwndSource_HomeScreenWindow.HomeScreenWindow_.RemoveImagesButton
if aqObject.CheckProperty(button.Image, "Enabled", cmpEqual, True):
imageSelector = I_Software.HwndSource_ImageSelector.ImageSelector
button.ClickButton()
imageSelector.SelectAllButton.ClickButton()
imageSelector.OKButton.ClickButton()
else:
pass
homeScreen = I_Software.HwndSource_HomeScreenWindow.HomeScreenWindow_
homeScreen.ImportImageButton.ClickButton()
I_Software.dlgImportImage.OpenFile("C:\\Users\\Test Complete\\Desktop\\Samples\\Samples\\Indian.jpg")
I_Software.HwndSource_MessageBox.MessageBox.OKYesButton.ClickButton()
listView = homeScreen.GalleryList
listView.HScroll.Pos = 0
listView.DblClickItem(0)
Related Content
- 3 years ago
- 4 years ago
Recent Discussions
- 20 hours ago
- 20 hours ago
- 5 days ago