Giter Site home page Giter Site logo

selenium_automation_adding_cisco_meraki_vpn_exclusion_rules's Introduction

Selenium Automation: Adding Cisco Meraki VPN exclusion rules

In the sample, you can see how we automatically add (from the list) VPN exclusion rules after running the script.

Selenium is an open-source tool that automates web browsers. It provides a single interface that lets testers automate user actions using multiple programming languages such as Ruby, Java, NodeJS, PHP, Perl, Python, and C#. But what if we try to automate some tasks that we can do only by using Web GUI interfaces/Dashboard?

Requirements

You can deploy app using Python

Download the latest Firefox driver here Add Firefox driver in /usr/local/bin/geckodriver or edit path in fillLocalInternetBreakout.py file

Clone and open project

git clone https://github.com/oborys/Selenium_automation_Adding_Cisco_Meraki_VPN_exclusion_rules.git
cd Selenium_automation_Adding_Cisco_Meraki_VPN_exclusion_rules

Open files cred and paste your variable that you use to access the Cisco Meraki dashboard email, dashboardPass, and 'url_sd_wan_and_traffic_rules' as URL for access SD-WAN and Traffic rules setting.

img

For Windows:

CLICK ME

Install pip

Pip (Python Package Installer), the official documentation for pip.

Usually Python3 comes with pip preinstalled. If you get an error "pip command not found", use the following command to install pip:

Download get-pip.py, make sure you're saving the file to Desktop

In your Command Prompt, navigate to Desktop.

cd Desktop

Execute get-pip.py

python get-pip.py

Now pip should work system-wide.

virtualenv

In your Command Prompt, enter:

pip install virtualenv

Launch virtualenv

In your Command Prompt navigate to your project:

cd Meraki_Network_Objects_automation

Within your project:

virtualenv env

Activate your virtualenv:

on Windows, virtualenv creates a batch file

\env\Scripts\activate.bat

to activate virtualenv on Windows, activate script is in the Scripts folder :

\path\to\env\Scripts\activate

Example:

C:\Users\'Username'\venv\Scripts\activate.bat

Another way to install pip

Save the "ez_setup.py" file to your desktop form https://bootstrap.pypa.io/ez_setup.py

In your Command Prompt navigate to Desktop:

cd Desktop

Execute ez_setup.py:

python ez_setup.py

install pip:

easy_install pip

Install dependencies

pip install -r requirements.txt

Run the app

set FLASK_APP=hello
flask run

python3 -m venv venv

Activate your venv

source venv/bin/activate

Install dependencies

pip install -r requirements.txt
export FLASK_APP=meraki_automation.py

Run the app

python fillLocalInternetBreakout.py 

selenium_automation_adding_cisco_meraki_vpn_exclusion_rules's People

Contributors

oborys avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

andn-cg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.