[appium] appium - iOS 자동화 구덩이 밟기 모음집

2748 단어 appium

1. appium-desktop 연결 시뮬레이터 시뮬레이터 또는 실제 기기 연결 오류: error: Could not determine Xcode version: Could not get Xcode version. /Library/Developer/Info.plist does not exist on disk.

  stackoverflow(https://stackoverflow.com/questions/32724616/appium-error-could-not-get-xcode-version)

원인: 왜 앱스토어에서 다운로드한 xcode의 기본 설치 주소가 응용 프로그램 폴더가 아니기 때문에 appium에서 path 경로를 찾을 수 없습니다.
해결 방법:
1. 터미널 열기, 재설정:
sudo xcode-select --reset

2. 연결:
sudo xcode-select --switch /Applications/Xcode.app

3. appium을 다시 시작하고 연결합니다.
 

2. inspector를 시작한 후 패키지도simulator에 설치되었지만 응용 프로그램이 시작되자마자 깜박거립니다


 
해결 방법: 3. osx 시뮬레이터 구축 보충.출처:http://www.cnblogs.com/llining/p/5040290.html
 
원인: 이 문제는 iOS의 크로스플랫폼이 없기 때문에 컴파일할 때arm에서 실행되는지 x86에서 실행되는지 지정해야 합니다.구체적으로 포장할 때의 차이는 사용하는 sdk가 다르다는 것이다.
 
 
 

3. setValue 또는send_keys 오류: Original error: Error Domain=com.facebook.WebDriverAgent Code=1 "Keyboard is not present" UserInfo={NSLocalizedDescription=Keyboard is not present}


참조 링크:https://www.jianshu.com/p/077f0662046c해결 방법: 키보드에서 단축키command+⬆️+k
원인: 맥이 시뮬레이터를 달릴 때 입력 상자에 위치했지만 내용을 입력할 수 없어서 위와 같이 오류가 발생합니다. 이것은 시뮬레이터의 키보드가 튀어나오지 않았기 때문입니다.
 
 
 

4. runner를 실행합니다.py 오류 보고: urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=4723): Max retries exceeded with url: /wd/hub/session (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 61] Connection refused'))


 
이유: appium-desktop을 열지 않았습니다.
해결 방법: appium-desktop 열기
 

5、selenium.common.exceptions.NoSuchElementException: Message: An element could not be located on the page using the given search parameters.


기존의 원소를 잡는 방법은 술어 잡기를 공용한다.
그래서 페이지가 새로 고침되지 않았을 때 원소 캡처를 하고 원소를 찾지 못했다고 보고할 수 있습니다.
해결 방법: 서비스 층이나elemnet 층에서 수면
 
현재 나는public류의 init 방법에 은형 대기를 추가했기 때문에 이 문제가 발생하지 않을 것이다.
 
 

6、Error Domain=com.facebook.WebDriverAgent Code=1 "The element" 가 "Button" 으로 되돌아오는 것은 화면에 표시되지 않으므로 상호 작용할 수 없습니다


원소를 찾지 못했습니다. appium-desktop의session으로 찾아보세요. 찾을 수 없습니다.
sleep 대법
 

7. 팁


1: 만약에 앱이 설치되어 있다면 앱을 설치하고 싶지 않은 경우dos 창을 통해 appium을 시작하여 --no-reset을 가지고 있으면 실행 용례를 피할 수 있을 때 앱을 다시 설치할 수 있습니다
2: appium 기본적으로 하나의 응용 프로그램을 시작하는 세션 만료 시간은 60초에서 시간이 지나면 자동으로 시작된 응용 프로그램 appium --command-timeout 600시간이 600초가 됩니다.
 

8、App paths need to be absolute, or relative to the appium server install dir, or a URL to compressed file, or a special app name.


이유: 앱 경로에 상대 경로 사용
해결 방법: appium에서 테스트된 앱은 절대 경로여야 합니다.

좋은 웹페이지 즐겨찾기