Python+selenium Automatic Simulation User Login (note: Log a forced unload rpm dependency package, the RPM, yum and other command exceptions, unable to remotely xftp tools)

Source: Internet
Author: User

In the recent groping Python+selenium automation, to achieve simulation user login search and other operations, feedback related logs, and then to Zabbix analysis, monitoring page access is normal.

Linux Firefox will need to be upgraded during the period, because the production environment is intranet environment, can not use Yum to upgrade. I would like to use Docker in an external environment to install, and then into the mirror after the migration to the intranet environment. However, because the system has poor Docker support for Red Hat 6.4, the external network will download the dependent package for the backward line installation.

    • Download Firefox and related dependent components in the context of external network.

1, update the local Yum source for the Ali Yum source. (also available with a Yum source from Linux) reference: 51939362

CentOS use:wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo  更新yum源

Yum Clean All--clear Yum Cache

Yum Makecache--Create cache

2. Install the Yum plugin: yum-downloadonly

installing yum-downloadonly:yum-y install Yum-downloadonly

use:yum-y install--downloadonly--downloaddir=/tmp/firefox

   3. Install Firefox and download dependent components

Note: RPM-IVH may report a software conflict or a dependency, if the use of RPM-E--nodeps Force assistance after installation, may appear rpm, yum commands such as abnormal or unable to connect xftp tools. You can only use Linux rescue mode for recovery. If you want to upgrade the relevant RPM package, please use RPM-UVH for related upgrade operation.

Remark: How to use Linux Rescue recovery mode ~ ~ ~

The virtual machine or the physical machine uses the mirror boot, selects the third option, the concrete method may refer to: http://blog.51cto.com/dreamlinuxc/1845327 to configure. It is important to note that when installing RPM in recovery mode, you need to use: RPM-IVH * * * * * *-root=/mnt/sysimage, otherwise rpm may fail to install, the online search for a lot of rescue mode use of the data are not clearly stated .

To be Continued ~ ~ ~

Python+selenium Automatic Simulation User Login (note: Log a forced unload rpm dependency package, the RPM, yum and other command exceptions, unable to remotely xftp tools)

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.