본문 바로가기

전체 글297

[Appium][selenium] 엘리먼트 찾을 때 명시적 대기(Explicitly Wait) 주기 ID, Class Name, Xpath를 이용하면 WebDriverWait(self.driver, 30).until(EC.presence_of_element_located((By.ID, id))) 를 주면 가능하지만 iOS 에서는 accessibility id를 자주 사용하기 때문에 해당 코드를 사용할 수 없다. 그래서 element를 변수 지정한 뒤, WebDriverWait(self.driver, 30).until(EC.visibility_of(obj))로 하면 가능하다. 단지 visibility_of_element_located를 사용하면 오류가 발생한다. 왜 그런지는 다음에 찾아보기로... 참고 사이트 : www.selenium.dev/selenium/docs/api/py/webdriver_sup.. 2021. 5. 6.
[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.
npm code ERESOLVE npm 버전이 7+일 경우 많이 발생 다운그레이드 해주면 발생하지 않는다. pm install npm@6.14.11 -g --no-fund 2021. 4. 20.