Skip to main content

Test automation tutorial with Selenium WebDriver part 2: Setup

Setup

This tutorials will be based around easyselenium.
easyselenium is simple Selenium WebDiver wrapper written in Python.
Why? - It has GUI.
Tutorial will be done in Windows OS but all software can be use on MacOS and GNU/Linux as well.

Needed software:
  1. Install Python 2.7 - https://www.python.org/downloads/
    • NOTE: Select 'Add python.exec to Path' during installation process
  2. Install pip - https://pip.pypa.io/en/stable/installing/
  3. Install wxPython - http://wiki.wxpython.org/How%20to%20install%20wxPython
  4. Install Selenium WebDriver with pip - open command promt('cmd.exe') and run command:  pip install selenium
  5. Install nose with pip - open command promt('cmd.exe') and run command:  pip install nose
    1. Install nose-htmloutput plug-in with pip - Open command promt('cmd.exe') and run command:  pip install nose-htmloutput
    2. Install nose-pathmunge plug-in with pip - Open command promt('cmd.exe') and run command:  pip install nose-pathmunge
  6. Install easyselenium
    1.  Download and extract archive https://github.com/kirillstrelkov/easyselenium/archive/master.zip
    2. Go to easyselenium-master\easyselenium-master folder
    3. Open command promt('cmd.exe') and go to folder where setup.py script is located(use 'cd' command), example:
      • cd C:\Users\IE User\Downloads\easyselenium-master\easyselenium-master\
    4. Run installation script in command promt:
      • setup.py install
  7. Install Chrome browser - https://www.google.com/chrome/
  8. Install Git
  9. Download Jenkins
    1.  Download LTS version https://jenkins.io/index.html
  10. Install ChromeDriver
    1. Download&extract latest driver https://sites.google.com/a/chromium.org/chromedriver/downloads
    2. Move it to home folder(ex. C:\Users\IE User)
  11. Install Internet Explorer Driver Server
    1. Go to http://www.seleniumhq.org/download/
    2. Find header 'The Internet Explorer Driver Server' 
    3. Download&extract latest correct version
    4. Move it to home folder(ex. C:\Users\IE User)

Check that everything works:
  1. Close all opened command promts and open new one
  2. Execute command: easy_selenium_ui.py
  3. You should see something like that see 'Easy selenium UI' picture
  4. Choose 'gc' - google chrome as a browser
  5. Try to open browser by clicking 'Open url'
  6. You should see new Google Chrome window
  7. Try to close browser by clicking 'Close browser'
  8. Google Chrome window should be closed
Easy selenium UI

Comments

  1. Nice blog..! I really loved reading through this article. Thanks for sharing.You done a great job.Dell Boomi Training in Bangalore

    ReplyDelete

Post a Comment