Skip to content

Instantly share code, notes, and snippets.

View Tset-Noitamotua's full-sized avatar
🤖
Working from home

Tset Noitamotua Tset-Noitamotua

🤖
Working from home
  • Secret Agency
  • Germany
View GitHub Profile
import time
from glance_dom import GlanceDom
from selenium import webdriver
driver = webdriver.Chrome()
driver.get('https://github.com/robotframework/SeleniumLibrary')
glance = GlanceDom(driver)
@GLMeece
GLMeece / open_browser_examples.robot
Last active September 27, 2019 08:55
Open Browser Examples
# Starting with a generic "Open Browser to Page" keyword, following that are examples for:
# Google Chrome
# PhantomJS
#
# Assumed global or suite variables:
# ${browser} - the browser you want to use in testing
# ${delay} - the "speed" that Selenium verbs execute at
# ${user_agent} - User Agent string like: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
#
# Note: The documentation is written with the libdoc utility in mind. See:
@GLMeece
GLMeece / how_to_execute_robot_framework_tests.md
Last active October 3, 2022 10:00
How to Run Robot Framework Tests

About

This is a quick "how to run" if you already have everything Robot Framework-related installed. This Gist might be especially handy for those you either just starting out, or if you've inherited a code-base from someone else.

The following assumes you have a terminal (CMD or PowerShell on Windows, Terminal on Mac or Linux) and aren't afraid to use it.

Testing ALL THE THINGS

Test All the Things

  1. cd into the root directory of the Robot Framework files and test cases; we'll assume all test cases are somewhere within a directory named test_cases.
@GLMeece
GLMeece / runtime_os_info.py
Last active August 8, 2023 06:09
Get OS info at runtime
#!/usr/bin/env python
import os
import platform
"""
Utility functions for determining Operating System info at runtime.
- *Module*: runtime_os_info
- *Platform*: Unix, Mac, Windows
@aviskase
aviskase / Postman.desktop
Last active November 21, 2023 20:56
Install Postman
[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=postman
Icon=/home/USERNAME/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;
@jeebak
jeebak / Vagrantfile
Last active January 23, 2020 22:34 — forked from anthonysterling/Vagrantfile
A vagrant replacement for ievms (for Linux, and macOS hosts)
# Usage: vagrant up windowsVersion-IEversion
#
# Eg. vagrant up win10-edge
#
# Based off of: # https://gist.github.com/anthonysterling/7cb85670b36821122a4a
boxes = {
# http://www.vagrantbox.es/
"xp-6" => "http://aka.ms/ie6.xp.vagrant",
"xp-8" => "http://aka.ms/ie8.xp.vagrant",
"vista-7" => "http://aka.ms/ie7.vista.vagrant",
@uchagani
uchagani / Vagrant-Windows.md
Last active August 9, 2016 09:46
How to create a fast-booting windows guest for Vagrant

Requirements:

  • VirtualBox
  • Vagrant
  • Windows 8.1/Server 2008/Server 2012 ISO
  1. Create VM in VirtualBox manually and install OS
  2. Create vagrant user with password vagrant
  3. Turn off firewall
  4. Disable 'Windows Search' Service (only if u don't need it, i don't need it)
@dmizverev
dmizverev / __init__.txt
Last active November 4, 2019 09:43
Robot Framework REST API
*** Settings ***
Documentation Примеры тестов для тестирования REST API.
...
... == Зависимости ==
... - [ https://github.com/dmizverev/robot-framework-library/blob/master/library/JsonValidator.py | JsonValidator ]
... - [ https://github.com/dmizverev/robot-framework-library/blob/master/library/OracleDB.py | OracleDb]
... - [ https://github.com/bulkan/robotframework-requests | RequestsLibrary]
... - [ http://robotframework.org/robotframework/latest/libraries/Collections.html | Collections]
Resource ..${/}resource${/}common.txt
Suite Setup Suite_Setup
@cmbaughman
cmbaughman / vagrant-win-howto.md
Last active September 7, 2018 09:15
Vagrant >=1.6 Windows Instructions

How to set up a Windows VM with Vagrant

Create your VM

==================

  1. Obtain a windows vm from Modern IE.
  • Win 8 OSX
curl -O -L "https://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE10-Win8.1&parts=5&filename=VMBuild_20131127/VirtualBox/IE10_Win8/Mac/IE10.Win8.For.MacVirtualBox.part{1.sfx,2.rar,3.rar,4.rar,5.rar}"