Why is the selenium Window of AirtestIDE suddenly unable to retrieve the controls?

1 Introduction

Recently, many friends have given us feedback, why the 1.2.15 version of the IDE cannot retrieve web page elements, is it because we do not support selenium and so on.

After testing, it was found that the current version does have this problem, because the Chrome 113.0.5672.127 (latest) version is too high, and AirtestIDE 1.2.15 is not yet compatible.

2. Problem performance

1) Unable to retrieve controls

We tried to use Airtest1.2.15, drive the chrome browser of 113.0.5672.127, and found that we could only open the webpage, but could not retrieve and record the controls:

insert image description here

2) The control window reports an error

At the same time, the following error will appear in the control window:

[11:27:48][DEBUG]<airtest.core.android.adb> D:\demo\AirtestIDE-win-1.2.15\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe devices
['chrome.exe', '--remote-debugging-port=9222', '--user-data-dir=C:\\Users\\xiaojuan\\AppData\\Local\\Temp\\AirtestIDE\\selenium_user_data']
tab init failed!
tab init failed!
browser not ready>>>>>>>

insert image description here

3. Scope of influence

After testing, it is found that Chrome 111.0.5563 ~ 113.0.5672 does not support control retrieval and recording functions . We are investigating the specific reasons and will fix them in the subsequent AirtestIDE.

4. Solutions

1) Available versions tested

In addition, we have also tested the following available versions on 1.2.15. It is recommended that students reduce their chrome browsers to the following versions:

  • 103.0.5060:https://filehippo.com/zh/download_google_chrome/

  • 104.0.5112.102:https://filehippo.com/zh/download_google_chrome/104.0.5112.81/

  • 105.0.5195.127:https://filehippo.com/zh/download_google_chrome/

  • 106.0.5249:https://www.31du.cn/open/google-chrome-106-0-5249-91.html

  • 107.0.5304:https://dl.google.com/release2/chrome/hkexna46iuewc3jdnqlayrl6di_107.0.5304.63/107.0.5304.63_chrome_installer.exe

  • 108.0.5359:https://dl.google.com/release2/chrome/ij3z4ttz6vdcmafpsfp3skmzda_108.0.5359.72/108.0.5359.72_chrome_installer.exe

  • 109.0.5414:https://edgedl.me.gvt1.com/edgedl/release2/chrome/juzaykgd5e6nyvk27fwtbrjgoa_109.0.5414.129/109.0.5414.129_chrome_installer.exe

  • 110.0.5481:https://dl.google.com/release2/chrome/ac5cdicq6ylzozsbnkxulqihcjda_110.0.5481.178/110.0.5481.178_chrome_installer.exe

2) Prohibit chrome automatic update

In order to prevent one day from waking up and discovering that your chrome browser has been automatically updated, causing AirtestIDE to be unable to retrieve it, students can set to prohibit automatic chrome update, refer to Zhihu article: https://zhuanlan.zhihu.com/p/349454190 .

5. Summary

Regarding the problem that the IDE cannot retrieve the chrome browser control, we will share it here. For other content that you want us to share, welcome to private message or leave us a message!

Guess you like

Origin blog.csdn.net/AirtestProject/article/details/131224049