본문 바로가기
QA/Test Automation

[Appium_iOS] How to Find Element

by 화뉘 2021. 4. 27.
반응형
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).get_attribute('name')

label

element = blur blur
driver.find_element_by_xpath(element).get_attribute('label')

text

element = blur blur
element.text

반응형

댓글0