Processing of selenium rich text box and editor

1, input tag 1. The input tag is an operation on short text. Such as the input box on baidu home page: <input type="text" class="s_ipt" name="wd" id="kw" maxlength="100" autocomplete="off"> Value exists in value. Enter the control interface and enter the command value assignment method: driver.find_element_by_id("kw").send_keys("eq ...

Posted by jf3000 on Sat, 18 Dec 2021 14:51:23 +0100

Course-grabbing Code of Nanjing Agricultural University--python-based selenium package + Google browser

Preface I am an undergraduate in Nanjing Agricultural University. Because I can't grab classes, I wrote a code for grabbing classes, which is a little bug, but the effect is still good. Small white studies, big man don't spray Tip: The following is the main body of this article. The following cases can be used as reference. 1. Pre-prepa ...

Posted by sleightofhand on Fri, 17 Dec 2021 23:03:47 +0100

Python | crawler | selenium automated test | b site touch verification code login

In fact, I'm not afraid of jokes. In the initial stage of learning crawler, my dream is to automatically log in to station b and obtain the data I want to obtain in station b. Now I have finally realized this dream. I am very grateful to csdn bloggers. Your blog has brought me great help. Thank you~ This time, I also summarized the cracking of ...

Posted by erwt on Mon, 13 Dec 2021 10:58:04 +0100

selenium automated test 01

preface   As a newcomer, I plan to write a blog to record my personal learning process. It took a week to learn selenium automation, and then record some syntax, code and so on. The writing style is not very good. Some code labels and comments may not be very accurate. I hope you will forgive me. selenium automated testing? I use Java+ ...

Posted by kevinritt on Thu, 09 Dec 2021 07:19:01 +0100

A little trick makes it easy for Selenium to deal with scrollbars and element focus

01 JS processing scroll bar Execute via webdriver_ The script () method executes the JS script operation scroll bar Right scroll bar Firefox browser and Chrome browser use different syntax. It is listed in the following area. It looks like Google browser 71 general Firefox # Firefox browser scrolls to the bottom js = "var q=document.docum ...

Posted by Retired Bill on Wed, 08 Dec 2021 05:07:42 +0100

Selenium test framework batch registration

Selenium test framework Open cmd to download Selenium first: pip install -i https://pypi.douban.com/simple selenium If it is downloaded with cmd: pip show selenium. Is the download successful using this command Or directly in the pycham IDE Introduce this shelf package on the project header: from selenium import webdriver Install browser ...

Posted by fri on Tue, 07 Dec 2021 14:09:46 +0100

Problems and solutions in iframe

preface         Today, when I was working on the verification code identification project, I encountered a problem at the beginning. I reported all kinds of errors. I studied and inquired for a long time and finally solved it. I'll summarize and share it here. Problems encountered and Solutions         ...

Posted by xdracox on Thu, 02 Dec 2021 22:21:43 +0100

About selenium configuring Chrome drivers (Windows systems)

The selenium test tool can be used to simulate the operation of a user's browser. The supported browsers are PhantomJS,Firefox,Chrome, etc. Developers can select different simulated browsers according to the current system form. Each simulated browser requires a corresponding browser driver (an executable file suffixed with.exe). The author ...

Posted by 990805 on Thu, 11 Nov 2021 17:25:46 +0100

[python] take the blog Garden Network as an example to realize the separation of program and data by using ini configuration file in learning automation test

preface Where should the page positioning elements used in UI automation test be stored? What I want to say is that if you use the PO design pattern to design test cases, you can store the positioning elements in each page or separately in a directory. For new keys, different pages correspond to files with different names to store the positioni ...

Posted by johnkperks on Mon, 01 Nov 2021 03:57:47 +0100

How to build a test framework from 0_ 11 - socket interface test

During interface testing, in addition to the common http interface, there is another common one, socket interface. Today, I will explain how to test socket interface with Python's own socket library. 1, socket interface Socket, also known as socket, can be understood as the address of an application and the key to network communication. We ca ...

Posted by SP8600 on Fri, 24 Sep 2021 13:23:19 +0200