Skip to content

Instantly share code, notes, and snippets.

View BooookStore's full-sized avatar
🏠

BooookStore BooookStore

🏠
View GitHub Profile
@BooookStore
BooookStore / .ideavimrc
Last active November 7, 2022 03:32
エディタの設定ファイル
" <leader> を <space> に変更
let mapleader = " "
" クリップボード設定
set clipboard=unnamed
" プラグイン有効化
set NERDTree
set easymotion
set highlightedyank
package com.kotlium.integration
import com.kotlium.Scenario
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.openqa.selenium.By.xpath
import org.openqa.selenium.chrome.ChromeOptions
import org.testcontainers.containers.BrowserWebDriverContainer
import org.testcontainers.containers.GenericContainer
@BooookStore
BooookStore / GettingStartedSLF4J.java
Created January 2, 2020 07:06
SLF4J output pattern
package com.example.slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class GettingStartedSLF4J {
public static void main(String[] args) {
Logger logger = LoggerFactory.getLogger(GettingStartedSLF4J.class);
package com.example.slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class GettingStartedSLF4J {
public static void main(String[] args) {
Logger logger = LoggerFactory.getLogger(GettingStartedSLF4J.class);
@BooookStore
BooookStore / TestcontainerExample.kt
Last active January 1, 2020 08:58
Selenium Testcontainer
import org.junit.Rule
import org.junit.jupiter.api.Test
import org.openqa.selenium.By
import org.openqa.selenium.chrome.ChromeOptions
import org.openqa.selenium.support.ui.ExpectedConditions
import org.openqa.selenium.support.ui.WebDriverWait
import org.testcontainers.containers.BrowserWebDriverContainer
import org.testcontainers.junit.jupiter.Testcontainers
@Testcontainers
import org.junit.jupiter.api.Test
import org.openqa.selenium.By
import org.openqa.selenium.WebDriver
import org.openqa.selenium.chrome.ChromeOptions
import org.openqa.selenium.remote.RemoteWebDriver
import org.openqa.selenium.support.ui.ExpectedConditions
import org.openqa.selenium.support.ui.WebDriverWait
import java.net.URL
class RemoteWebDriverExample {
import org.junit.jupiter.api.Test
import org.openqa.selenium.By
import org.openqa.selenium.WebDriver
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions
class Examples {
@Test
fun kotlinHomePageSectionTextGetExample() {
@BooookStore
BooookStore / build.gradle.kts
Created December 24, 2019 04:36
selenium on gradle and kotlin
@file:Suppress("PropertyName")
plugins {
kotlin("jvm") version "1.3.61"
}
group = "org.example"
version = "1.0-SNAPSHOT"
val selenium_version = "3.141.59"
@BooookStore
BooookStore / selenium-chrome.js
Created October 27, 2019 03:05
headless chrome + selenium + webdriverio
const selenium = require('selenium-standalone');
const {remote} = require('webdriverio');
selenium.install((result) => console.log({result}));
selenium.start((err, child) => {
(async () => {
const browser = await remote({
logLevel: 'trace',
capabilities: {
browserName: 'chrome',
@BooookStore
BooookStore / action.js
Created October 26, 2019 12:25
redux tutorial
/**
* action types
*/
export const ADD_TODO = 'ADD_TODO';
export const TOGGLE_TODO = 'TOGGLE_TODO';
export const SET_VISIBILITY_FILTER = 'SET_VISIBILITY_FILTER';
/**
* other constants