An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# DebuggingLibrary
Library for remote chrome browser

[![Downloads](https://pepy.tech/badge/mpjp-debugginglibrary)](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
```