How to use _convenienceMatchR method in pyatom

Best Python code snippet using pyatom_python

AXClasses.py

Source:AXClasses.py Github

copy

Full Screen

...1047 # supply that in the kwargs1048 if match:1049 kwargs[attr] = match1050 return self.findAll(AXRole=role, **kwargs)1051 def _convenienceMatchR(self, role, attr, match):1052 """Method used by role based convenience functions to find a match"""1053 kwargs = {}1054 # If the user supplied some text to search for,1055 # supply that in the kwargs1056 if match:1057 kwargs[attr] = match1058 return self.findAllR(AXRole=role, **kwargs)1059 def textAreas(self, match=None):1060 """Return a list of text areas with an optional match parameter."""1061 return self._convenienceMatch('AXTextArea', 'AXTitle', match)1062 def textAreasR(self, match=None):1063 """Return a list of text areas with an optional match parameter."""1064 return self._convenienceMatchR('AXTextArea', 'AXTitle', match)1065 def textFields(self, match=None):1066 """Return a list of textfields with an optional match parameter."""1067 return self._convenienceMatch('AXTextField', 'AXRoleDescription', match)1068 def textFieldsR(self, match=None):1069 """Return a list of textfields with an optional match parameter."""1070 return self._convenienceMatchR('AXTextField', 'AXRoleDescription',1071 match)1072 def buttons(self, match=None):1073 """Return a list of buttons with an optional match parameter."""1074 return self._convenienceMatch('AXButton', 'AXTitle', match)1075 def buttonsR(self, match=None):1076 """Return a list of buttons with an optional match parameter."""1077 return self._convenienceMatchR('AXButton', 'AXTitle', match)1078 def windows(self, match=None):1079 """Return a list of windows with an optional match parameter."""1080 return self._convenienceMatch('AXWindow', 'AXTitle', match)1081 def windowsR(self, match=None):1082 """Return a list of windows with an optional match parameter."""1083 return self._convenienceMatchR('AXWindow', 'AXTitle', match)1084 def sheets(self, match=None):1085 """Return a list of sheets with an optional match parameter."""1086 return self._convenienceMatch('AXSheet', 'AXDescription', match)1087 def sheetsR(self, match=None):1088 """Return a list of sheets with an optional match parameter."""1089 return self._convenienceMatchR('AXSheet', 'AXDescription', match)1090 def staticTexts(self, match=None):1091 """Return a list of statictexts with an optional match parameter."""1092 return self._convenienceMatch('AXStaticText', 'AXValue', match)1093 def staticTextsR(self, match=None):1094 """Return a list of statictexts with an optional match parameter"""1095 return self._convenienceMatchR('AXStaticText', 'AXValue', match)1096 def genericElements(self, match=None):1097 """Return a list of genericelements with an optional match parameter."""1098 return self._convenienceMatch('AXGenericElement', 'AXValue', match)1099 def genericElementsR(self, match=None):1100 """Return a list of genericelements with an optional match parameter."""1101 return self._convenienceMatchR('AXGenericElement', 'AXValue', match)1102 def groups(self, match=None):1103 """Return a list of groups with an optional match parameter."""1104 return self._convenienceMatch('AXGroup', 'AXRoleDescription', match)1105 def groupsR(self, match=None):1106 """Return a list of groups with an optional match parameter."""1107 return self._convenienceMatchR('AXGroup', 'AXRoleDescription', match)1108 def radioButtons(self, match=None):1109 """Return a list of radio buttons with an optional match parameter."""1110 return self._convenienceMatch('AXRadioButton', 'AXTitle', match)1111 def radioButtonsR(self, match=None):1112 """Return a list of radio buttons with an optional match parameter."""1113 return self._convenienceMatchR('AXRadioButton', 'AXTitle', match)1114 def popUpButtons(self, match=None):1115 """Return a list of popup menus with an optional match parameter."""1116 return self._convenienceMatch('AXPopUpButton', 'AXTitle', match)1117 def popUpButtonsR(self, match=None):1118 """Return a list of popup menus with an optional match parameter."""1119 return self._convenienceMatchR('AXPopUpButton', 'AXTitle', match)1120 def rows(self, match=None):1121 """Return a list of rows with an optional match parameter."""1122 return self._convenienceMatch('AXRow', 'AXTitle', match)1123 def rowsR(self, match=None):1124 """Return a list of rows with an optional match parameter."""1125 return self._convenienceMatchR('AXRow', 'AXTitle', match)1126 def sliders(self, match=None):1127 """Return a list of sliders with an optional match parameter."""1128 return self._convenienceMatch('AXSlider', 'AXValue', match)1129 def slidersR(self, match=None):1130 """Return a list of sliders with an optional match parameter."""...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run pyatom automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful