Využití Puppeteeru pro automatizaci akcí webového prohlížeče
Usage of Puppeteer for automation of web browser actions
bachelor thesis (DEFENDED)
View/ Open
Permanent link
http://hdl.handle.net/20.500.11956/127959Identifiers
Study Information System: 233208
Collections
- Kvalifikační práce [11242]
Author
Advisor
Referee
Škoda, Petr
Faculty / Institute
Faculty of Mathematics and Physics
Discipline
General Computer Science
Department
Department of Software Engineering
Date of defense
2. 7. 2021
Publisher
Univerzita Karlova, Matematicko-fyzikální fakultaLanguage
Czech
Grade
Very good
Keywords (Czech)
Puppeteer|automatizace webového prohlížečeKeywords (English)
Puppeteer|web browser automationV této práci se zabýváme automatickým ovládáním webových prohlížečů. Naším cílem je vytvořit řešení umožňující zaznamenat akce, které bude možné uložit a opětovně vykonat. Vzhledem k tomu, že takových produktů existuje již řada, zejména pro ustálený framework Selenium, je pro nás zásadní využít novější a modernější knihovnu Puppeteer, pro kterou tyto nástroje neexistují. Práce začíná rešeršní částí některých knihoven a produktů, následně jsou stanoveny požadavky kladené na naše řešení, mezi které patří připojení ke vzdálené instanci prohlížeče a uživatelské rozhraní. Řešení bylo implementováno podle těchto požadavků. Součástí práce je zhodnocení a porovnání funkcionality oproti konkurenčním produktům. Krátce můžeme vyhodnotit - výhodou našeho řešení oproti produktům Selenium IDE a Katalon Recorder vytvořených nad Seleniem je možnost připojení na vzdálenou instanci prohlížeče. Nevýhodou je chybějící podpora podmínek a cyklů, které nebyly stanoveny v požadavcích, a proto nebyly implementovány.
In this thesis, we deal with the automatic control of web browsers. Our aim is to create a solution to record actions that can be saved and re-executed. As there is already a number of such products, especially for the established Selenium framework, it is crucial for us to use the newer and modern Puppeteer library for which these tools do not exist. The thesis begins with the research part of libraries and products, then the requirements for our solution are determined, which include remote browser connection and user interface. The solution was implemented according to these requirements. Part of the thesis involves evaluating and comparing functionality with competing products. We can briefly evaluate-the advantage of our solution over Selenium IDE and Katalon Recorder products built on Selenium is the ability to connect to a remote instance of a browser. The drawback is the lack of support for conditions and cycles that were not determined as a requirement, and, therefore, have not been implemented.