当前位置: 首页 > news >正文

怎样用数据库做网站手机版网站建设开发

怎样用数据库做网站,手机版网站建设开发,国外网页网站,常德农科院网站iOS App 测试环境升级#xff0c;遇到的问题以及解决方法 Mac 实体机升级到 Sonima 14.5 Xcode 升级到 15.3 问题1#xff1a; Xcode 编译 WebDriverAgent 失败 尝试下载 最新版本的WDA 源码编译#xff0c;可以编译成功。 问题2#xff1a;具体坐标直接点击的代码都会报错…iOS App 测试环境升级遇到的问题以及解决方法 Mac 实体机升级到 Sonima 14.5 Xcode 升级到 15.3 问题1 Xcode 编译 WebDriverAgent 失败 尝试下载 最新版本的WDA 源码编译可以编译成功。 问题2具体坐标直接点击的代码都会报错。 向开源项目报了这个问题过了10分钟就得到回复https://github.com/appium/appium/issues/20218 Please use W3C Actions instead. Also, we do not support Appium 1 anymore - please upgrade to Appium 2. 于是升级相关配置和修改所有涉及到的代码使用 W3C Action 替换原来的 MultiAction、TouchAction。 问题3升级 Appium 从 1.2.0 升级到 2.9执行报错unexpected keyword argument ‘desired_capabilites’ 排查搜到一个解决方法 https://github.com/appium/python-client/issues/878 该问题已经在 2.10 以上版本修复于是再更新 Appium 到 2.11.1 问题4系统弹框元素无法被识别到 之前也有这个问题但是可以通过 driver.page_source 来定位到现在升级后不行。 解决不直接点击元素而是使用脚本语句处理 driver.execute_script(mobile: alert,{action: accept, buttonLabel: “Continue”} 问题5登录google页面元素无法获取 之前偶尔也会遇到这个问题但是重启模拟器、在Xcode重新编译WDA、重启Appium后就可以定位到登录页面元素这次升级后却不行。 重新安装了 Appium Server GUI 1.22.1版本之前用的是 Appium 1.21.0-1发现只要启动了Appium Server GUI 客户端后不需要再通过 Xcode 编译出 WDA 到模拟器中直接运行代码启动webdriver模拟器中会自动生成 WDA此时 Editor app 也能启动起来。 虽然现在不用自己去编译WDA 了但是进入 Appium Server GUI 1.22.1 安装路径下的 /Applications/Appium\ Server\ GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent打开 WebDriverAgent.xcodeproj 来编译 WDA 会报错无法生成WDA但用 github 上的 WebDriverAgent-8.7.2 包来编译是没问题的。 所以现在使用 Appium Server GUI 1.22.1版本时要么不自己去编译WDA要么要用最新的包来编译 WDA才能正常运行代码。 部分修改代码 点击坐标的方式改变使用 PointerInput 和 ActionBuilder不再支持 TouchAction(self.driver).tap(xx, yy, count1).perform() from selenium.webdriver import ActionChains from selenium.webdriver.common.actions import interaction from selenium.webdriver.common.actions.mouse_button import MouseButton from selenium.webdriver.common.actions.action_builder import ActionBuilder from selenium.webdriver.common.actions.pointer_input import PointerInputpointer PointerInput(kindinteraction.POINTER_TOUCH, namefinger1) actions ActionBuilder(self.driver, mousepointer) actions.pointer_action.move_to_location(x, y) actions.pointer_action.pointer_down() actions.pointer_action.pointer_up() actions.perform()pointer PointerInput(kindinteraction.POINTER_TOUCH, namefinger1) actions ActionBuilder(self.driver, mousepointer) actions.pointer_action.move_to_location(start_x, start_y) actions.pointer_action.pointer_down() actions.pointer_action.pause(duration) actions.pointer_action.move_to_location(end_x, end_y) actions.pointer_action.pointer_up() actions.perform()actions ActionChains(self.driver) actions.w3c_actions.devices [] pointer_input0 actions.w3c_actions.add_pointer_input(touch, finger0) pointer_input0.create_pointer_move(xx, yy) pointer_input0.create_pointer_down() pointer_input0.create_pause(0.5) pointer_input0.create_pointer_move(xx1, yy1) pointer_input0.create_pointer_up(MouseButton.LEFT) pointer_input1 actions.w3c_actions.add_pointer_input(touch, finger1) pointer_input1.create_pointer_move(xx, yy) pointer_input1.create_pointer_down() pointer_input1.create_pause(0.5) pointer_input1.create_pointer_move(xx2, yy2) pointer_input1.create_pointer_up(MouseButton.LEFT) actions.perform()pointer PointerInput(kindinteraction.POINTER_TOUCH, namefinger1) actions ActionBuilder(self.driver, mousepointer) for index, point in enumerate(coordinate_list):x, y pointif index 0:# Long press on the first pointactions.pointer_action.move_to_location(xx, yy)actions.pointer_action.pointer_down().pause(0.5)else:# Move to subsequent pointsactions.pointer_action.move_to_location(xx, yy).pause(0.5) actions.pointer_action.pointer_up() actions.perform()不再支持像 find_element_by_accessibility_id、find_element_by_name 这类的接口而是使用 find_element(MobileBy.ACCESSIBILITY_ID, locator)、find_element(By.NAME, locator) # WebDriverWait(self.driver, timeouttime_out, poll_frequency0.5, ignored_exceptionsNone).until(lambda x: x.find_element_by_accessibility_id(locator))WebDriverWait(self.driver, timeouttime_out, poll_frequency0.5, ignored_exceptionsNone).until(lambda x: x.find_element(MobileBy.ACCESSIBILITY_ID, locator))处理系统弹框 def handle_system_alert(self, buttonContinue):try:WebDriverWait(self.driver, 10).until(ec.alert_is_present())self.driver.execute_script(mobile: alert, {action: accept, buttonLabel: f{button}})return Trueexcept Exception as e:print(fNo alert present: {e})return False
http://www.pierceye.com/news/15289/

相关文章:

  • 数据库跟网站个人网站如何进行网络推广
  • wordpress 建立第二个网站钢铁建设网站
  • 营销型网站建设讨论题天津百度推广代理商
  • 网站分析的优劣势全免费无代码开发平台
  • 做网站的具体步骤wordpress即阅文教程
  • 公益广告 公司网站建设中...大连做网站公司
  • 国外主流网站开发技术《网站建设》期末考试
  • 重庆专业网站推广时间网站建设的电话
  • 端子网站建设宣传片拍摄心得体会
  • 网站集约化建设较好的城市长沙官网seo技巧
  • 成都公司做网站的建设银行个人客户
  • 杭州网站模板广东东莞免费网站制作公司
  • 网站建设费算广告费吗wordpress漏洞教程
  • 好的网站建设公司哪家好提供做网站服务好
  • 做网站的叫什么wordpress固定链接403
  • logo设计网站参考在线动画手机网站模板下载安装
  • 网站设计专业就业方向有哪些哪些网站可以做引流
  • 保山网站制作网站建设需要用到的软件
  • 城市建设网站调查问卷买个域名
  • 网加速器冬镜seo
  • dede网站名称不能中文网站开发用到的研究方法
  • 织梦网站搬迁搭建电商平台
  • asp网站开发实验报告仿微博网站模板
  • 智能logo设计网站南京电商网站建设
  • 手机商城系统开发seo推广怎么做
  • 个人网站设计分类公司网站设计与实现的英文文献
  • 西安手机网站制作的公司上海网站建设高端定制网络服务公司
  • 做食物的网站在线制作二维码生成器
  • 什么是网站的根目录wordpress如何销售卡密
  • aspnet网站开发教程wordpress路由正则