Skip to content

Library for remote chrome browser on robot framework

License

Notifications You must be signed in to change notification settings

mpjp/DebuggingLibrary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DebuggingLibrary

Library for remote chrome browser

Downloads

Introduction

This keyword library is based on Robot Framework. 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 then go to google page.

Run the test case below :

*** 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    

About

Library for remote chrome browser on robot framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages