Skip to content

Instantly share code, notes, and snippets.

View christian-bromann's full-sized avatar
🕵️‍♂️
Testing All The Things™

Christian Bromann christian-bromann

🕵️‍♂️
Testing All The Things™
View GitHub Profile
---
layout: iframe-left
url: https://w3c.github.io/webdriver-bidi/
---
# WebDriver Bidi Protocol
Some interesting new capabilities worth looking into:
@christian-bromann
christian-bromann / README.md
Created February 7, 2023 18:52
Stateful.com Blog Post: How to Use the GitHub API to List Repositories

How to Use the GitHub API to List Repositories

As a software engineer you probably use GitHub quite often; as part of your day job, working on your solo projects, or when contributing to open source. Generally speaking, GitHub's UI is clean, intuitive, and nice to use. However, if you need to integrate GitHub with the applications you write, using GitHub manually just won't cut it. That's where GitHub's REST API comes in handy.

This post is a hands-on guide to the GitHub API. More specifically, you'll learn how to use the API to list repositories. We'll walk you through several scenarios, providing code samples and request examples in each one. By the end of the post, you'll feel comfortable when it comes to fetching repositories from GitHub.

Requirements

There are a few boxes you have to check if you want to follow along with the tutorial. First of all, I assume you're comfortable with the concept of RESTful APIs and have some experience working with AP

@christian-bromann
christian-bromann / dropdown.md
Created July 21, 2022 17:07 — forked from citrusui/dropdown.md
"Dropdowns" in Markdown
How do I dropdown?
This is how you dropdown.

<details>
<summary>How do I dropdown?</summary>
<br>
This is how you dropdown.
@christian-bromann
christian-bromann / proof
Created November 15, 2021 22:28
Keybase proof
### Keybase proof
I hereby claim:
* I am christian-bromann on github.
* I am bromann (https://keybase.io/bromann) on keybase.
* I have a public key ASCKalN1Vw3JP9jI-JIyR0lN9MwNiQXLgVk7RjDhHYjOfQo
To claim this, I am signing this object:
@christian-bromann
christian-bromann / gatsby.e2e.js
Created July 18, 2020 10:13
Gatsby WebdriverIO Recipe
const GatsbyPage = require('../pageobjects/home.page');
describe('My home page', () => {
beforeEach(() => {
GatsbyPage.open();
})
it('make this test work', () => {
expect(GatsbyPage.header).toHaveText('Hello Gatsby');
});
@christian-bromann
christian-bromann / test.js
Created November 9, 2017 14:02
Actions API demo using WebdriverIO in standalone mode
(async function () {
const webdriverio = require('webdriverio')
const browser = webdriverio.remote({
path: '/',
desiredCapabilities: {
browserName: 'firefox'
}
})
@christian-bromann
christian-bromann / Readme.md
Last active August 8, 2017 22:04
Run Chrome headless

Run Chrome headless

The good old PhantomJS times are over. The project is not maintained anymore and it is recommended to switch over to Chrome headless. Just run a local Selenium standalone server:

$ java -jar Sites/selenium-server-standalone-3.4.0.jar
@christian-bromann
christian-bromann / package.json
Last active June 12, 2022 20:05
WebdriverIO example
{
"name": "wdio-examples",
"version": "1.0.0",
"description": "WebdriverIO examples",
"dependencies": {
"wdio-sauce-service": "^0.3.0",
"wdio-selenium-standalone-service": "^0.0.7",
"wdio-spec-reporter": "0.0.3",
"webdriverio": "^4.4.0"
},
@christian-bromann
christian-bromann / expected.json
Created September 9, 2015 17:51
microsoftedge driver array/object bug
[{
"a": 1,
"b": 2
}, {
"c": 3,
"d": [1, 2, 3, 4, 5],
"e": [{
"some": "object",
"other": "thing"
}]
@christian-bromann
christian-bromann / WDIO.xunit.phantomjs.32442.xml
Created May 21, 2015 00:42
WebdriverIO example xunit report
<testsuites name="phantomjs" tests="10" failures="2" errors="1" disabled="1" time="3.845">
<testsuite name="google page" tests="4" failures="1" skipped="0" disabled="0" time="2.754" timestamp="Thu May 21 2015 02:10:50 GMT+0200 (CEST)" id="1" file="/Users/christianbromann/Sites/Webprojekte/webdriverjs/DEV/specs/test.google.spec.js">
<testcase name="should have title1" disabled="false" time="0.977" id="2" file="/Users/christianbromann/Sites/Webprojekte/webdriverjs/DEV/specs/test.google.spec.js" status="passed">
<system-out type="command"><![CDATA[
POST http://0.0.0.0:4444/wd/hub/session/15787134-1f6b-4da7-a1c8-86c656c366e0/url - {"url":"http://localhost:8080"}
GET http://0.0.0.0:4444/wd/hub/session/15787134-1f6b-4da7-a1c8-86c656c366e0/title - {}
]]></system-out>
<system-out type="result"><![CDATA[
POST http://0.0.0.0:4444/wd/hub/session/15787134-1f6b-4da7-a1c8-86c656c366e0/url - {"state":"success","sessionId":"15787134-1f6b-4da7-a1c8-86c656c366e0","hCode":845403856,"value":null,"clas