Skip to content

Instantly share code, notes, and snippets.

View sawo's full-sized avatar

sawo

View GitHub Profile
@sawo
sawo / magyar-szavak.txt
Created January 22, 2023 23:01 — forked from Konstantinusz/magyar-szavak.txt
Magyar szavak listája
This file has been truncated, but you can view the full file.
abajgat
abakusz
abál
abált
abaposztó
abárol
abba
abbahagy
abbahagyat
abbahagyogat
@sawo
sawo / phantomjs_intaller.sh
Last active November 12, 2019 12:13 — forked from wbotelhos/phantomjs_intaller.sh
Installing PhantomJS 1.9 on Ubuntu 12.xx x64/x86
#!/bin/bash
sudo apt-get remove phantomjs
sudo unlink /usr/local/bin/phantomjs
sudo unlink /usr/local/share/phantomjs
sudo unlink /usr/bin/phantomjs
cd /usr/local/share
@sawo
sawo / helloworld-spec2.js
Created January 27, 2017 11:40
Protractor test for Hello World Angular app that uses page object
// assuming that our page object is saved to a separate file:
var page = require('./helloworld.pageobject.js');
describe('angularjs hello world app testing', function() {
it('H1 tag should contain: "Hello Wrold!"', function() {
page.get();
page.setName('world');
page.titleShouldHaveText('Hello world!');
});
});
@sawo
sawo / helloworld-pageobject.js
Created January 27, 2017 11:37
Page object for the hello world angular application
var helloWorldPageObject = function() {
this.get = function() {
browser.get('');
};
this.title = element(by.id('title'));
this.titleShouldHaveText = function(value) {
expect(this.title.getText()).toBe(value);
};
@sawo
sawo / helloworld-spec.js
Created January 27, 2017 11:20
Angular 1 hello world protractor test
describe('angularjs hello world app testing', function() {
it('H1 tag should contain: "Hello Wrold!"', function() {
browser.get('http://localhost:8080/index.html');
element(by.model('name')).sendKeys('world');
var headerElement = element(by.id('title'));
headerElement.getText().then(function(text) {
expect(text).toEqual('Hello world!');
});
});
});
@sawo
sawo / conf.js
Last active January 27, 2017 11:19
Protractor config file for hello world
exports.config = {
seleniumAddress: ‘http://localhost:4444/wd/hub’,
specs: [‘helloworld-spec.js’]
};
@sawo
sawo / angular-hello-world.html
Created January 27, 2017 11:13
Angular 1 hello world application
<!doctype html>
<html ng-app>
<head>
<title>My Angular App</title>
<script src=“https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js”></script>
</head>
<body>
<h1 id=“title”>Hello {{name}}!</h1>
<input type=“text” placeholder=“What is your name?” data-ng-model=“name” />
</body>