Skip to content

Instantly share code, notes, and snippets.

View sri85's full-sized avatar
🤖

Sri π sri85

🤖
  • United Kingdom
View GitHub Profile
@sri85
sri85 / chromedriver_logs.txt
Created September 14, 2019 20:35
Chromedriver Logs
12.973][DEBUG]: Sending adb command: host:transport:emulator-5554|shell:am start -W -n com.android.chrome/com.google.android.apps.chrome.Main -d data:,
[14.373][DEBUG]: Received adb response: Starting: Intent { dat=data:, cmp=com.android.chrome/com.google.android.apps.chrome.Main }
Status: ok
Activity: com.android.chrome/org.chromium.chrome.browser.ChromeTabbedActivity
ThisTime: 825
TotalTime: 1336
WaitTime: 1373
Complete
[14.373][DEBUG]: Sending adb command: host-serial:emulator-5554:forward:tcp:12685;localabstract:chrome_devtools_remote
This file has been truncated, but you can view the full file.
e} sending message to a Handler on a dead thread
at android.os.MessageQueue.enqueueMessage(MessageQueue.java:545)
at android.os.Handler.enqueueMessage(Handler.java:661)
at android.os.Handler.sendMessageAtTime(Handler.java:630)
at android.os.Handler.sendMessageDelayed(Handler.java:600)
at android.os.Handler.post(Handler.java:356)
at android.os.ResultReceiver$MyResultReceiver.send(ResultReceiver.java:57)
at com.android.internal.os.IResultReceiver$Stub.onTransact(IResultReceiver.java:58)
at android.os.Binder.execTransact(Binder.java:674)
2019-09-13 23:11:28.205 4063-4063/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
@sri85
sri85 / appium_logs.txt
Last active September 14, 2019 20:16
Appium Cordova Logs
[info] [Appium] Welcome to Appium v1.13.0
[info] [Appium] Appium REST http interface listener started on 0.0.0.0:4723[info] [HTTP] --> GET /wd/hub/sessions
[info] [HTTP] {}
[debug] [GENERIC] Calling AppiumDriver.getSessions() with args: []
[debug] [GENERIC] Responding to client with driver.getSessions() result: []
[info] [HTTP] <-- GET /wd/hub/sessions 200 5 ms - 40
[info] [HTTP] [info] [HTTP] --> POST /wd/hub/session
[info] [HTTP] {"desiredCapabilities":{"app":"/Users/sripathi.pai/appium-tutorial/cordova-appium-example/platforms/android/build/outputs/apk/android-debug.apk","autoWebview":"true","autoWebviewTimeout":"20000","chromedriverExecutable":"/Users/sripathi.pai/appium-tutorial/chromedriver","deviceName":"any","ensureWebviewsHavePages":"true","platformName":"Android","platformVersion":"8.0","
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>net.serenitybdd.demos.todos</groupId>
<artifactId>todo-demo</artifactId>
<version>1.0.0-SNAPSHOT</version>
<name>Sample Serenity project using Cucumber and WebDriver</name>
<properties>
<serenity.cucumber.version>1.1.6</serenity.cucumber.version>
@sri85
sri85 / Test.java
Created October 17, 2016 13:03 — forked from klepikov/Test.java
Demo code for the GTAC 2013 talk "Web Performance Testing with WebDriver" by Michael Klepikov
import java.io.IOException;
import java.net.URL;
import java.util.Date;
import java.util.List;
import java.util.logging.Level;
import org.json.*;
import org.openqa.selenium.*;
import org.openqa.selenium.chrome.*;
import org.openqa.selenium.logging.*;
@sri85
sri85 / sel.py
Created October 11, 2016 13:54
Minimal Tc for geckodriver
rom selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
# Tell the Python bindings to use Marionette.
# This will not be necessary in the future,
# when Selenium will auto-detect what remote end
# it is talking to.
driver = webdriver.Remote(
command_executor='http://127.0.0.1:4444/wd/hub',
[Child 6901] ###!!! ABORT: Aborting on channel error.: file /builds/slave/m-rel-m64-00000000000000000000/build/src/ipc/glue/MessageChannel.cpp, line 2052
[Child 6901] ###!!! ABORT: Aborting on channel error.: file /builds/slave/m-rel-m64-00000000000000000000/build/src/ipc/glue/MessageChannel.cpp, line 2052
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
firefox_capabilities = DesiredCapabilities.FIREFOX
firefox_capabilities['marionette'] = True
firefox_capabilities['binary'] = '/Applications/FirefoxDeveloperEdition.app/Contents/MacOS/firefox'
driver = webdriver.Firefox(capabilities=firefox_capabilities)
driver.get("http://google.com")
@sri85
sri85 / output.txt
Last active September 16, 2015 17:11
Traceback (most recent call last):
File "test_1044.py", line 47, in <module>
driver = EventFiringWebDriver(driver, DefaultWebDriverEventListener(driver))
NameError: name 'DefaultWebDriverEventListener' is not defined