Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>AppiumAutomation</groupId>
<artifactId>AppiumAutomation</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
@nirkalsi
nirkalsi / AutoSample.java
Created September 5, 2018 08:07
News app test result
number of items inside the List : 1
enter to the 1st item's inner page - General tab
Printing news item's content
Element Found: Rent control fuels costliest fight on California 2018 ballot - Houston Chronicle
Element Found: 2018-08-12
news image exist
news description exist
Clicking on Sports tab
enter to the 1st item's inner page - Sports tab
Printing news item's content
@nirkalsi
nirkalsi / AutoSample.java
Created September 5, 2018 08:05
Automated news app
public class AutoSample {
WebDriver driver;
@Before
public void setUp() throws MalformedURLException {
// Created object of DesiredCapabilities class.
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("deviceName","Nexus");
capabilities.setCapability("platformName", "Android");
@nirkalsi
nirkalsi / AutoSample.java
Created August 30, 2018 08:26
Reaching title,date,description on a news item
public class AutoSample {
WebDriver driver;
@Before
public void setUp() throws MalformedURLException {
// Created object of DesiredCapabilities class.
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("deviceName","Nexus");
capabilities.setCapability("platformName", "Android");
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.nir.sportsnews.WebViewActivity">
<android.support.v7.widget.Toolbar
android:layout_width="match_parent"
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.nir.sportsnews.WebViewActivity">
<android.support.v7.widget.Toolbar
android:layout_width="match_parent"
package com.nir.sportsnews;
import android.app.ProgressDialog;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.os.SystemClock;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.nir.sportsnews.WebViewActivity">
<android.support.v7.widget.Toolbar
android:layout_width="match_parent"
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.scores365/com.scores365.ui.GPlusPopup}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2957)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3032)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6940)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)