Tag Archives: webdriver

UI Testing As A Service – UITAAS

UI Testing As A Service – UITAAS

Uilicious snippet

Uilicious blog artuicles

eclipse red robotframework symlink error

if you are getting a eclipse red robotframework ‘Too many levels of symbolic links’ symbolic link error

20180209 13:47:02.625 : INFO : Opening browser 'chrome' to base url 'http://google.com'.
20180209 13:47:02.647 : INFO : Cannot capture screenshot because no browser is open.
20180209 13:47:02.660 : FAIL : OSError: [Errno 40] Too many levels of symbolic links
Starting test: Dem.Dem.test1
Ending test: Dem.Dem.test1

it may be because you made a mistake when you created your symlink to your webdriver and have created a recursive symlink to itself

# ls -l /usr/local/bin/
total 24
lrwxrwxrwx 1 root root 12 Feb 9 13:44 chromedriver -> chromedriver
lrwxrwxrwx 1 root root 16 Feb 9 13:32 geckodriver -> /opt/geckodriver
-rwxr-xr-x 1 root root 205 Feb 9 13:08 pip
-rwxr-xr-x 1 root root 205 Feb 9 13:08 pip3
-rwxr-xr-x 1 root root 205 Feb 9 13:08 pip3.5
-rwxr-xr-x 1 root root 80 Feb 9 13:11 pybot
-rwxr-xr-x 1 root root 202 Feb 9 13:11 rebot
-rwxr-xr-x 1 root root 198 Feb 9 13:11 robot
lrwxrwxrwx 1 root root 3 Feb 9 13:49 zzz -> zzz

you may have typed

# ln -s zzz /usr/local/bin/

when what you meant to do is

# ln -s /opt/chromedriver /usr/local/bin/

 

robotframework selenium-library can be used to generate documentation too

robotframework selenium-library can be used to generate documentation too

*** Setting ***
Library    SeleniumLibrary

Suite Setup	   Suite Init   
Suite Teardown	   Suite Term 

*** Variable ***
${BROWSER}    firefox

*** Test Cases ***
test1
    go to    http://google.com
    Capture Page Screenshot    goo.png
test2
    go to    http://yahoo.co.uk
    Capture Page Screenshot    yah.png
test3
    go to    http://msn.co.uk
    Capture Page Screenshot    msn.png
        
*** Keywords ***
Suite Init
    open browser    http://google.com   ${BROWSER}
    set window size    800    600

Suite Term 
    close browser

 

eclipse red robotframework plugin

windows 10 python 3 robotframework 3 webdrivers

windows 10 python 3 robotframework 3 seleniumlibrary webdrivers for web testing

install python

  • install python (see https://goo.gl/y36JcN)
  • pip install robotframework
  • pip install robotframework-seleniumlibrary

install browsers

  • download and install browsers (chrome, edge, firefox)

download drivers

install webdrivers

  • unzip webdrivers
  • move exes to a folder in your windows PATH

such as

C:\Users\MYUSERNAME\AppData\Local\Microsoft\WindowsApps\

then you can run python robot

C:\Users\MYUSERNAME> python -m robot mytests.robot