This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: Role | |
metadata: | |
name: scale-apps | |
namespace: default | |
rules: | |
- apiGroups: | |
- "apps/v1" | |
verbs: | |
- get |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: auto-scale-robot-sa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: selenium-node-chrome | |
labels: | |
name: selenium-node-chrome | |
spec: | |
selector: | |
app: selenium-node-chrome | |
browser: chrome |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.k8s.io/v1beta1 | |
kind: Ingress | |
metadata: | |
name: selenium-ingress | |
annotations: | |
nginx.ingress.kubernetes.io: /$1 | |
spec: | |
rules: | |
- host: my-selenium-grid.com | |
http: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: selenium-hub | |
labels: | |
name: selenium-hub | |
spec: | |
selector: | |
app: selenium-hub | |
ports: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This way you can customize which branches should be skipped when | |
# prepending commit message. | |
if [ -z "$BRANCHES_TO_SKIP" ]; then | |
BRANCHES_TO_SKIP=(master develop test) | |
fi | |
BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
BRANCH_NAME="${BRANCH_NAME##*/}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void doLocalClipboardReadTest() throws Exception { | |
String text = "Mussum ipsum cacilds, vidis litro abertis. Consetis adipiscings elitis. Pra lá , depois divoltis porris, paradis. Paisis, filhis, espiritis santis. Mé faiz elementum girarzis, nisi eros vermeio, in elementis mé pra quem é amistosis quis leo. Manduma pindureta quium dia nois paga."; | |
driver = utils.launchBrowser(); | |
driver.navigate().to("https://googlechrome.github.io/samples/async-clipboard/"); | |
driver.findElement(By.cssSelector("textarea#out")).sendKeys(text); | |
utils.waitFor(1); | |
uiUtils.takeScreenShot(); | |
driver.findElement(By.cssSelector("button#copy")).click(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//0 is default , 1 is enable and 2 is disable | |
prefs.put("profile.content_settings.exceptions.clipboard", getClipBoardSettingsMap(1)); | |
private static Map<String,Object> getClipBoardSettingsMap(int settingValue) throws JsonProcessingException { | |
Map<String,Object> map = new HashMap<>(); | |
map.put("last_modified",String.valueOf(System.currentTimeMillis())); | |
map.put("setting", settingValue); | |
Map<String,Object> cbPreference = new HashMap<>(); | |
cbPreference.put("[*.],*",map); | |
ObjectMapper objectMapper = new ObjectMapper(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function getCBContents() { | |
try { | |
window.cb = await navigator.clipboard.readText(); | |
console.log("Pasted content: ", window.cb); | |
} catch (err) { | |
console.error("Failed to read clipboard contents: ", err); | |
window.cb = "Error : " + err; | |
} | |
} | |
getCBContents(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void doLocalClipboardReadTest() throws Exception { | |
String text = "Mussum ipsum cacilds, vidis litro abertis. Consetis adipiscings elitis. Pra lá , depois divoltis porris, paradis. Paisis, filhis, espiritis santis. Mé faiz elementum girarzis, nisi eros vermeio, in elementis mé pra quem é amistosis quis leo. Manduma pindureta quium dia nois paga."; | |
driver = utils.launchBrowser(); | |
driver.navigate().to("https://googlechrome.github.io/samples/async-clipboard/"); | |
driver.findElement(By.cssSelector("textarea#out")).sendKeys(text); | |
utils.waitFor(1); | |
uiUtils.takeScreenShot(); | |
driver.findElement(By.cssSelector("button#copy")).click(); |