본문 바로가기

QA/Test Automation35

[Appium][Python] 텍스트에 특정 텍스트 있는지 확인하는 코드 def contains_text_in_element(self, element, text): if element.find(text) == 0 : print("include text in element") return True else: print("not include text in element") return False 2021. 5. 3.
[Appium_iOS] How to Find Element Find by Code accessibility id driver.find_element_by_accessibility_id -ios class chain(beta) driver.find_element_by_ios_class_chain -ios predicate string(beta) driver.find_element_by_ios_predicate xpath driver.find_element_by_xpath Attribute Code value element = blur blur driver.find_element_by_xpath(element).get_attribute('value') name element = blur blur driver.find_element_by_xpath(element).g.. 2021. 4. 27.
[unittest] Python unittest를 htmlTestrunner로 할 때 줄 바꿈 이슈 해결 참고 : github.com/seounghun-chung/PyTestToolPlatform/blob/master/libs/HtmlTestRunner/template/report_template.html 해당 파일을 받아서 runner = HtmlTestRunner.HTMLTestRunner(report_title='TEST RESULT', output="ReportTest", template='template.html') 위처럼 template 설정을 해주면 기존 htmlTestrunner 줄바꿈 안되는 현상을 해결할 수 있다. 2021. 3. 23.
[appium] Permission Element 찾기 https://source.android.com/devices/architecture/modular-system/permissioncontroller 안드로이드 9까지는 권한 ID는 com.android.packageinstaller:id/permission_allow_button 를 사용하지만 안드로이드 10부터는 ID가 변경된다. com.android.permissioncontroller:id/permission_allow_button 를 쓴다 만약 해당 엘리먼트를 자동화 하려면 OS 버전에 따라 예외처리를 해줘야 한다. 2021. 3. 17.