https://github.com/mpjp/debugginglibrary
Library for remote chrome browser on robot framework
https://github.com/mpjp/debugginglibrary
debugging library python3 robot-framework
Last synced: 6 months ago
JSON representation
Library for remote chrome browser on robot framework
- Host: GitHub
- URL: https://github.com/mpjp/debugginglibrary
- Owner: mpjp
- License: mit
- Created: 2019-06-25T05:42:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-02-16T13:19:08.000Z (about 5 years ago)
- Last Synced: 2025-01-30T21:35:11.845Z (about 1 year ago)
- Topics: debugging, library, python3, robot-framework
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 6
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DebuggingLibrary
Library for remote chrome browser
[](https://pepy.tech/project/mpjp-debugginglibrary)
Introduction
------------
This keyword library is based on [Robot Framework](https://robotframework.org/). In my experience in developing automation test cases, every time we want to check the specific action, we may run the whole test script but it also wastes a lot of time.
So this library provides a keyword `Debug::Execute On Opened Browser` that can keep running the test scripts on the same browser.
Installation
----------
* Using pip
pip install mpjp-debuggingLibrary
* **Open remote chrome browser**
* Setting the location of chrome browser as environmental variables
* Create an empty folder at **C:\testChrome**
* Input the command below
chrome.exe --remote-debugging-port=9014 --user-data-dir="C:\testChrome"
> **9014** is port, you can change any port you want.
- **C:\\testChrome** location can change to any folder you want to set chrome data.
The clean chrome browser should be opened.
Example
-----
[Open remote chrome browser](#open) then go to `google` page.
Run the test case below :
```robotframework
*** Settings ***
Library SeleniumLibrary
Library DebuggingLibrary #import library
*** Test Cases ***
Search Robot Framework On Google
Debug::Execute On Opened Browser ##
Input Text name=q Robot Framework
Press Key name=q \\13
Page Should Contain Robot Framework
```