当前位置:网站首页>About selenium common. exceptions. Webdriverexception: message: an unknown server side error solution (resolved)
About selenium common. exceptions. Webdriverexception: message: an unknown server side error solution (resolved)
2022-06-26 15:04:00 【Full stack husky】

| Wanyeji |
|---|
| Faint thunder , Cloudy sky . |
| But I hope the wind and rain will come , I can keep you here . |
Preface :
Author's brief introduction : Husky who yearns for power , You can call me Siberian Husky , One devoted to TFS - The whole stack Empowered bloggers
CSDN Blog expert certification 、 Nova plan Season 3 full stack track top_1 、 Huawei cloud sharing expert 、 Alibaba cloud expert Blogger
If there is something wrong with the knowledge of the article , Please correct me. ! Learn with you , Progress together
The motto of life : Being superior to some other man , Is not high , The true nobility is to be superior to one's former self .
If you feel the blogger's article is good , Please pay attention. 、 give the thumbs-up 、 Collect three companies to support bloggers
Column series ( Click unlock ) Learning route guidance Knowledge orientation Python Full stack white paper Zero foundation beginner level chapter Easy to get started in an easy to understand way , Let you fall in love with Python The charm of . Advanced Grammar Mainly around multi-threaded programming 、 Regular expression learning 、 Including project exercises close to actual combat . Office automation Realize the automatic operation of daily office software , Save time 、 Improve office efficiency . Automation test practice From the perspective of actual combat , One step ahead , Rapid transformation test development engineer . Database development practice Updating Introduction and practice of reptile Updating Data analysis Updating Introduction to the front +flask Full stack Updating django+vue Full stack Updating expand - Introduction to artificial intelligence Updating The road to network security Stepping on a pit Record the pit encountered during learning and drilling , It is convenient for those who come from behind to catch up Net security literacy Three days fishing , No deep understanding of the principle , It will only make you a script boy . vulhub The loopholes in the shooting range reappear Make it easy to reproduce vulnerabilities , Let security researchers focus more on the vulnerability principle itself . shell Programming Don't involve linux Basics , The final case will be in the direction of safety reinforcement . [ To be finished ] WEB Vulnerability attack and defense 2021 year 9 month 3 Stop updating on , Move to safe communities such as prophet community and small secret circles Collection of penetration tools 2021 year 9 month 3 Stop updating on , Move to safe communities such as prophet community and small secret circles A little Engineer Test artifact - Charles Software test data packet capture analysis artifact Test artifact - Fiddler Learn to fiddle , Learn not to stand upside down and eat , Rarefied ! Test artifact - Jmeter Not just a performance test artifact , It can also be used to build a lightweight interface automation testing framework . RobotFrameWork Python Automatic test tool realized , This chapter only introduces UI Automation part . Java Realization UI automation Document written in 2016 year ,Java Realized UI automation , It still has reference significance . MonkeyRunner There are not many application scenarios for this tool at present , The document has been deleted , Only for the sake of good typesetting .

List of articles
If you click in, you must first carefully check whether your error reporting details are consistent with those of the blogger , The “WebDriverException” Many exception types , Please carefully check whether the error information in this article is consistent with yours .
Example script with errors
# coding=utf-8
from time import sleep
from appium import webdriver # appium The feature of Android is that Android 、IOS The bottom layer of is encapsulated into webdriver Type statements
# from appium.webdriver.common import appiumby
''' The difference in WEB automation ,APP Automation requires a concept of equipment ; The so-called equipment concept , Is the start parameter '''
# Launch parameters
desired_caps = {
} # Definition desired_caps Variable , Used to assign a lot of startup information
desired_caps['platformName'] = 'Android' # Equipment name 、 System is "Android"
desired_caps['platformVersion'] = '4.4.2' # Here is the setup center of the night God simulator to view the Android version "7.1.2" , Later, I will tell you how to switch versions
desired_caps['deviceName'] = '127.0.0.1::62001' # If it is a real machine, fill in the equipment name ; Because we use simulators , Fill in IP Port number
desired_caps['appPackage'] = 'com.android.contacts' # APP The package name ; Here we use the address book
desired_caps['appActivity'] = '.activities.PeopleActivity' # The name of the launched interface ( Or the startup name , The default is "." At the beginning )
desired_caps['automationName']='UiAutomator1'
# Declare the mobile driver
driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps) # Register to this node , Pass in "desired_caps". This node is "appium" Open port node
# Navigate to the contact you want to work on
driver.find_element_by_id('com.android.contacts:id/cliv_name_textview').click() # Here is the demonstration effect , First write . Later, I will tell you how to locate this id
sleep(3)
driver.quit()
Preface
Doing it APPIUM Of APP The following two error messages appear during the automated case demonstration :
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Unable to find an active device or emulator with OS 4.4.2. The following are available: 127.0.0.1:62001 (7.1.2)

appium The contents of the error report are as follows :
Encountered internal error running command: Error: Unable to find an active device or emulator with OS 4.4.2. The following are available: 127.0.0.1:62001 (7.1.2)

Abnormal analysis
In fact, there is nothing to analyze , The prompt message has already told you . It is the default device information we have passed in “ Android version ” Not caused by , We introduced The Android version is 4.4.2 , But in fact “ Night God Simulator ” The current default version of is “7.1.2”.
PS: I wrote this script before , At that time “ Night God Simulator ” The default version of is “4.4.2”, The error message tells us that the current Android version of the device is “7.1.2”


边栏推荐
- Minister of investment of Indonesia: Hon Hai is considering establishing electric bus system and urban Internet of things in its new capital
- 券商经理给的开户二维码安全吗?找谁可以开户啊?
- 聊聊 RPA 方向的规划:简单有价值的事情长期坚持做
- Unity C# 网络学习(十)——UnityWebRequest(二)
- 【云原生】 ”人人皆可“ 编程的无代码 iVX 编辑器
- R语言使用ggplot2可视化泊松回归模型(Poisson Regression)的结果、可视化不同参量组合下的计数结果
- Unity uses skybox panoramic shader to make panorama preview. There is a gap. Solution
- clustermeet
- 杜老师说网站更新图解
- Pod scheduling of kubernetes
猜你喜欢

Use abp Zero builds a third-party login module (II): server development

Unity uses skybox panoramic shader to make panorama preview. There is a gap. Solution
![[cloud native] codeless IVX editor programmable by](/img/10/7c56e46df69be6be522a477b00ec05.png)
[cloud native] codeless IVX editor programmable by "everyone"

乐鑫 AWS IoT ExpressLink 模组达到通用可用性

人的顶级能量从哪里获取?

The engine "node" is inconsistent with this module

feil_uVission4左侧工目录消失

Naacl2022: (code practice) good visual guidance promotes better feature extraction, multimodal named entity recognition (with source code download)

在云服务器中云磁盘如何挂载

使用 Abp.Zero 搭建第三方登录模块(一):原理篇
随机推荐
NAACL2022:(代码实践)好的视觉引导促进更好的特征提取,多模态命名实体识别(附源代码下载)...
聊聊几位大厂清华同学的近况
It's natural for the landlord to take the rent to repay the mortgage
设计人员拿到的工程坐标系等高线CAD图如何加载进图新地球
Halcon C# 设置窗体字体,自适应显示图片
Flex & bison start
Use abp Zero builds a third-party login module (II): server development
Excerpt from three body
Go变量的声明与赋值
The R language cartools package divides data, the scale function scales data, and the KNN function of the class package constructs a k-nearest neighbor classifier
R语言caTools包进行数据划分、scale函数进行数据缩放、class包的knn函数构建K近邻分类器
R语言epiDisplay包的tableStack函数制作统计汇总表格(分组的描述性统计、假设检验等)、不设置by参数计算基础描述性统计信息、指定对于大多数样本负相关的变量进行反序
Naacl2022: (code practice) good visual guidance promotes better feature extraction, multimodal named entity recognition (with source code download)
R language uses GLM function to build Poisson logarithm linear regression model, processes three-dimensional contingency table data to build saturation model, uses step function to realize stepwise re
北京银行x华为:网络智能运维夯实数字化转型服务底座
R语言dplyr包summarise_at函数计算dataframe数据中多个数据列(通过向量指定)的均值和中位数、指定na.rm参数配置删除缺失值
Transformers datacollatorwithpadding class
Login authentication service
Solution to the upper limit of TeamViewer display devices
同花顺注册开户安全吗,有没有什么风险?
