Skip to content

Instantly share code, notes, and snippets.

View manoj9788's full-sized avatar
🏠
Working from home

Manoj Kumar manoj9788

🏠
Working from home
View GitHub Profile
debug: Appium request initiated at /wd/hub/session
info: Using local app from desiredCaps: /Users/manoj/Downloads/MyCred.apk
debug: Request received with params: {"desiredCapabilities":{"platform":"Mac","app":"/Users/manoj/Downloads/MyCred.apk","browserName":"Android","version":"4.2"}}
debug: Using fast reset? false
info: Creating new appium session 58252c6e-7d6b-4a01-a243-6febbecfabae
info: [ADB] Using adb from /usr/bin/adb
@manoj9788
manoj9788 / Appium 1.4.3 Radar error.
Created March 28, 2013 19:27
I was using Appium.app of version 1.4.1 and it was updated to 1.4.3 and I just started the server and clicked on the window->inspector and the Appium crashed.
Process: Appium [8881]
Path: /Applications/Appium.app/Contents/MacOS/Appium
Identifier: com.appium.Appium
Version: 1.4.3 (???)
Code Type: X86-64 (Native)
Parent Process: launchd [339]
User ID: 501
Date/Time: 2013-03-29 00:54:28.561 +0530
OS Version: Mac OS X 10.8.2 (12C60)
@manoj9788
manoj9788 / gist:5713507
Last active December 18, 2016 17:22
Code Snippet to check some DropDown Values
String[] testData = {"Your own drop down values"};
WebElement dropdownElement = driver.findElement(By.id("some id"));
Select select = new Select(dropdownElement);
List<WebElement> options = select.getOptions();
for(WebElement elements:options)
{
boolean match = false;
for (int i=0; i<testData.length(); i++){
if (elements.getText().equals(testData[i]){
Manojs-MacBook-Pro:savethatname manoj$ bundle install --path=vendor/bundle
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using i18n (0.6.5)
Using multi_json (1.8.0)
Using activesupport (3.2.3)
Using builder (3.0.4)
@manoj9788
manoj9788 / gist:7073186
Created October 20, 2013 18:11
Appium error log Android
info: Welcome to Appium v0.10.4 (REV a8797e06e6891012451cd548a05477c67dda9e39)
info: Appium REST http interface listener started on 127.0.0.1:4723
info: socket.io started
info: Didn't get app but did get Android package, will attempt to launch it on the device
info: Creating new appium session ac3db4de-3c10-4e53-92eb-94d6bffb020a
info: Starting android appium
Last login: Mon Oct 21 14:43:04 on ttys000
Manojs-MacBook-Pro:sourcecodes manoj$ appium
info: Welcome to Appium v0.7.3 (REV 120bb6813272efc128276bd212202e2cda0dea14)
info: Appium REST http interface listener started on 0.0.0.0:4723
info - socket.io started
debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {"desiredCapabilities":{"platform":"Mac","browserName":"android","app-package":"com.android.calculator2","app-activity":"com.android.calculator2.Calculator","version":"4.3"}}
info: Didn't get app but did get Android package, will attempt to launch it on the device
info: Creating new appium session 791d5c03-55e1-4327-b872-164e7932d52f
info: Starting android appium
Manojs-MacBook-Pro:~ manoj$ appium -a 127.0.0.1 -p 4723
info: Welcome to Appium v0.10.4 (REV a8797e06e6891012451cd548a05477c67dda9e39)
info: Appium REST http interface listener started on 127.0.0.1:4723
info - socket.io started
debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {"desiredCapabilities":{"platform":"Mac","browserName":"android","app-package":"com.android.calculator2","app-activity":"com.android.calculator2.Calculator","version":"4.3"}}
info: Didn't get app but did get Android package, will attempt to launch it on the device
info: Creating new appium session 4bb94093-005a-4219-88f1-3171acedb87e
info: Starting android appium
debug: Using fast reset? true
package com.appium.sample;
import java.net.MalformedURLException;
import java.net.URL;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
Manojs-MacBook-Pro:~ manoj$ npm install -g protractor
\
> bufferutil@1.1.0 install /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
In file included from ../src/bufferutil.cc:16:
../node_modules/nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal'
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
<div class="sg-fourth speaker-wrap popup-trigger" data-popup_type="speaker" data-popup_title="Manoj Kumar K" data-popup_subtitle=" Manoj Kumar is a Principal Test Automation (Selenium) consultant. He is the editor-in-chief of one of the most visited selenium blogs assertselenium. He is also an open source enthusiast and contributor to open source libraries like Serenity, ngWebdriver and also one of the co-authors of the official selenium documentation.">
<p><img class="speaker-head speaker-head-md" src="img/speakers/speaker.jpg" alt="Manoj Kumar"/></p>
<p class="speaker-name">Manoj Kumar K</p>
<p>AssertSelenium</p>