<span id="Label3"></p><p><p> <span style="font-size: 18pt"><strong>first, Install the Selenium</strong></span></p></p><p><p>Forget I have changed the computer, a check only found that I have not installed selenium, (⊙﹏⊙) b</p></p><p><p>Attach the check method: (if you have already installed Python Ha)</p></p><p><p>Execute commands in Python's own idle</p></p><pre><pre><span style="color: #0000ff"></span> from <span style="color: #0000ff">Import</span> Webdriver</pre></pre><p><p>If there is no error, it is installed, unfortunately, my is ...</p></p><p><p></p></p><p><p>So how to install selenium? Baidu told Me!</p></p><p><p>There are two ways: the first is the traditional download installation package, installation, and the second is to install directly with PIP</p></p><p><p> <span style="background-color: #c0c0c0"><strong>literacy:</strong> <code>pip</code> is a <span style="background-color: #c0c0c0">Python</span> package management tool, mainly for installation <code>PyPI</code> on the package, can replace the <code>easy_install</code> Tool.</span></p></p><p><p><span style="background-color: #ffffff">Since the last article we have so hard to put on the pip, why not?</span></p></p><p><p><span style="background-color: #ffffff">Enter the python installation directory, cmd~</span></p></p><pre><pre>python-m pip Install Selenium</pre></pre><p><p>Installation is complete! Can use the method of the article head said to test Oh ~ No error is the installation success (*^__^*) hehe ...</p></p><p><p></p></p><p><p> <span style="font-size: 18pt"><strong>second, installation Appium-python-client</strong></span></p></p><p><p><span style="font-size: 18pt"><strong> </strong><span style="font-size: 15px">Why Install appium-python-client? At this point, we need to understand the installation of appium-python-client is used to do!</span></span></p></p><p><p><span style="font-size: 18pt"><span style="font-size: 15px">Appium's practical methods are hidden in the Client's source code, for driver and webelement instances, there is a corresponding element lookup method (webelement look for the following sub-element), some children specifically for the function of the cell phone, You need to use this client after Installation.</span></span></p></p><p><p><span style="font-size: 18pt"><span style="font-size: 15px">Appium in order to implement its own find method, the first custom of a Mobileby class, the class object is plugged into its definition of some of the extended properties, the values of these properties will be pushed to the server side by Webdriver protocol to identify and execute, In order for these attributes to be applied to the find method, Appium well inherits and extends the Webdriver. Remote, and then implements the element lookup by invoking the driver Instance's Find_element and find_elements two core methods, so, since it is an extension, The Appiumdriver instance can use all of the Seleniumdriver's instance methods for element lookups, and their list can be sorted Out.</span></span></p></p><p><p><span style="font-size: 18pt"><span style="font-size: 15px">In short, this is the existence of a class library, we need to call some methods, we need the reference of this library, we can directly invoke when programming! Since it is so good, it must be installed ~ ~</span></span></p></p><p><p><span style="font-size: 18pt"><span style="font-size: 15px">Installation method is also very simple, like selenium, there are two ways (download the installation package or use pip, again feel the convenience of pip!). )</span></span></p></p><p><p><span style="font-size: 18pt"><span style="font-size: 15px">CMD in the python>scripts directory</span></span></p></p><pre><pre>Pip Install Appium-python-client</pre></pre><p><p>At this point, appium's python environment is complete!!</p></p><p><p>Appium Build five: Install Selenium+appium-python-client</p></p></span>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service