Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome版本不匹配 #1176

Open
jianfengshxy opened this issue Sep 8, 2024 · 0 comments
Open

Chrome版本不匹配 #1176

jianfengshxy opened this issue Sep 8, 2024 · 0 comments

Comments

@jianfengshxy
Copy link

💡相关项目: AirtestIDE

标题: [问题咨询]Chrome版本不匹配

AirtestIDE版本: 1.2.17

未使用本地Pyhton环境运行脚本

报错描述:
     在mac电脑中下载airtest IDE 之后 想做web 自动化测试总是报告 chrome版本不一致。 第一,这个版本问题是常见问题, 第二 ,chrom的历史版本下载很难找。
能否下载IDE的时候配套给出Chrome的安装包或者链接

相关截图:

报错Log:

Traceback (most recent call last):
  File "airtest/cli/runner.py", line 75, in runTest
  File "site-packages/six.py", line 703, in reraise
  File "airtest/cli/runner.py", line 72, in runTest
  File "/Users/m672372/Documents/hoder-web-test.air/hoder-web-test.py", line 9, in <module>
    driver = WebChrome()
  File "/Applications/AirtestIDE.app/Contents/MacOS/airtest_selenium/proxy.py", line 39, in __init__
    desired_capabilities=desired_capabilities)
  File "/Applications/AirtestIDE.app/Contents/MacOS/selenium/webdriver/chrome/webdriver.py", line 75, in __init__
    desired_capabilities=desired_capabilities)
  File "/Applications/AirtestIDE.app/Contents/MacOS/selenium/webdriver/remote/webdriver.py", line 156, in __init__
    self.start_session(capabilities, browser_profile)
  File "/Applications/AirtestIDE.app/Contents/MacOS/selenium/webdriver/remote/webdriver.py", line 251, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "/Applications/AirtestIDE.app/Contents/MacOS/selenium/webdriver/remote/webdriver.py", line 320, in execute
    self.error_handler.check_response(response)
  File "/Applications/AirtestIDE.app/Contents/MacOS/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 121
Current browser version is 128.0.6613.120 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

连接设备信息:

设备类型 设备型号 系统版本号 apk名称/下载链接 使用的wda版本 wda更新到最新
iOS MAC M1 Mac OS 14.4.1 Appium/WebDriverAgent

提供最小可复现此BUG的代码:

# -*- encoding=utf8 -*-
__author__ = "m672372"

from airtest.core.api import *

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from airtest_selenium.proxy import WebChrome
driver = WebChrome()
driver.implicitly_wait(20)
driver.get("https://www.baidu.com")


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant