Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException
import unittest, time, re
class SeleniumTest(unittest.TestCase):
@iotakodali
iotakodali / csv.java
Created January 10, 2018 04:55
UIDAI - SRDH Code Parameters
/*******************************************************************************
* DISCLAIMER: The sample code or utility or tool described herein
* is provided on an "as is" basis, without warranty of any kind.
* UIDAI does not warrant or guarantee the individual success
* developers may have in implementing the sample code on their
* environment.
*
* UIDAI does not warrant, guarantee or make any representations
* of any kind with respect to the sample code and does not make
* any representations or warranties regarding the use, results
@iotakodali
iotakodali / Apeligibility.java
Created April 29, 2018 07:13
Java Bean for app of Andhra Pradesh Citizen Survey
package com.codetree.nandyala.model;
import com.google.gson.annotations.SerializedName;
public class Apeligibility {
@SerializedName("ADDRESS")
private String address;
@SerializedName("AE_MOB_NUM")
private String aeMobNum;
@SerializedName("AE_UID")
@iotakodali
iotakodali / map.geojson
Last active August 9, 2019 04:49
Surveillance Cameras locations in Bangalore
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@iotakodali
iotakodali / SmartPulseSurvey.java
Created July 18, 2023 13:18
The parameters collected part of Smart Pusle Survey in Andhra Pradesh in 2016
public class Apeligibility {
@SerializedName("ADDRESS")
private String address;
@SerializedName("AE_MOB_NUM")
private String aeMobNum;
@SerializedName("AE_UID")
private String aeUid;
@SerializedName("AGRICULTURE_VEHICLE")
private String agricultureVehicle;
@SerializedName("APPLICANT_NAME")
@iotakodali
iotakodali / HouseHold.Java
Created July 18, 2023 13:21
The parameters collected from each household part of survey's in Andhra Pradesh
HashMap hashMap = new HashMap(9);
hashMap.put("coloum_id", new C0691c.C0692a("coloum_id", "INTEGER", true, 1, (String) null, 1));
hashMap.put("HOUSEHOLD_ID", new C0691c.C0692a("HOUSEHOLD_ID", "TEXT", false, 0, (String) null, 1));
hashMap.put("UID_NUM", new C0691c.C0692a("UID_NUM", "TEXT", false, 0, (String) null, 1));
hashMap.put("CITIZEN_NAME", new C0691c.C0692a("CITIZEN_NAME", "TEXT", false, 0, (String) null, 1));
hashMap.put("DOB_DT", new C0691c.C0692a("DOB_DT", "TEXT", false, 0, (String) null, 1));
hashMap.put("MOBILE_NUMBER", new C0691c.C0692a("MOBILE_NUMBER", "TEXT", false, 0, (String) null, 1));
hashMap.put("GENDER", new C0691c.C0692a("GENDER", "TEXT", false, 0, (String) null, 1));
hashMap.put("DOOR_NO", new C0691c.C0692a("DOOR_NO", "TEXT", false, 0, (String) null, 1));
C0691c cVar = new C0691c("ResurveyHouseholdList", hashMap, C1254a.m4704y(hashMap, "STATUS", new C0691c.C0692a("STATUS", "TEXT", false, 0, (String) null, 1), 0), new HashSet(0));
@iotakodali
iotakodali / HeadOfFamily.java
Created July 18, 2023 13:24
The parameters collected describing each member of household part of survey's in Andhra Pradesh
hashMap7.put("coloum_id", new C0691c.C0692a("coloum_id", "INTEGER", true, 1, (String) null, 1));
hashMap7.put("UID", new C0691c.C0692a("UID", "TEXT", false, 0, (String) null, 1));
hashMap7.put("isStayingInFamily", new C0691c.C0692a("isStayingInFamily", "INTEGER", true, 0, (String) null, 1));
hashMap7.put("isHeadOftheHOH", new C0691c.C0692a("isHeadOftheHOH", "TEXT", false, 0, (String) null, 1));
hashMap7.put("unique_id", new C0691c.C0692a("unique_id", "TEXT", false, 0, (String) null, 1));
hashMap7.put("d_no", new C0691c.C0692a("d_no", "TEXT", false, 0, (String) null, 1));
C0691c cVar7 = new C0691c("OfflineFamilyDetails", hashMap7, C1254a.m4704y(hashMap7, "captured_time", new C0691c.C0692a("captured_time", "TEXT", false, 0, (String) null, 1), 0), new HashSet(0));
C0691c a7 = C0691c.m2907a(bVar2, "OfflineFamilyDetails");
if (!cVar7.equals(a7)) {
return new C0680i.C0682b(false, C1254a.m4681g("OfflineFamilyDetails(com.ap.gsws.volunteer.room.OfflineFamilyDetails).\n Expected:\n", cVar7, "\n Found:\n", a7));
@iotakodali
iotakodali / ImageCapture.java
Created July 18, 2023 13:27
Part of code of Andhra Pradesh Volunteer app collecting images
public void onClick(View view) {
if (TextUtils.isEmpty(this.f5955k.f7003L)) {
C3995c.m9925m(this.f5955k, "Please select atlease one family member ");
} else if (this.f5955k.f6997F.equalsIgnoreCase(BuildConfig.FLAVOR)) {
Toast.makeText(this.f5955k, "Please Capture Image", 0).show();
} else if (!this.f5955k.f7000I) {
Toast.makeText(this.f5955k, "Please Capture GPS", 0).show();
} else if (!this.f5954j.isChecked()) {
UnmappedActivity unmappedActivity = this.f5955k;
C3995c.m9925m(unmappedActivity, unmappedActivity.getResources().getString(R.string.volunteer_consent_msg));
@iotakodali
iotakodali / HouseHoldReSurvey.java
Created July 18, 2023 13:28
Details of parameters that are collected by Andhra Pradesh Volunteer app
HashMap hashMap2 = new HashMap(11);
hashMap2.put("coloum_id", new C0691c.C0692a("coloum_id", "INTEGER", true, 1, (String) null, 1));
hashMap2.put("P_HOUSEHOLD_ID", new C0691c.C0692a("P_HOUSEHOLD_ID", "TEXT", false, 0, (String) null, 1));
hashMap2.put("P_CITIZEN_NAME", new C0691c.C0692a("P_CITIZEN_NAME", "TEXT", false, 0, (String) null, 1));
hashMap2.put("P_CLUSTER_ID", new C0691c.C0692a("P_CLUSTER_ID", "TEXT", false, 0, (String) null, 1));
hashMap2.put("P_SUB_CASTE_ID", new C0691c.C0692a("P_SUB_CASTE_ID", "TEXT", false, 0, (String) null, 1));
hashMap2.put("P_INSERTED_BY", new C0691c.C0692a("P_INSERTED_BY", "TEXT", false, 0, (String) null, 1));
hashMap2.put("P_UID_NUM", new C0691c.C0692a("P_UID_NUM", "TEXT", false, 0, (String) null, 1));
hashMap2.put("P_GSWS_CODE", new C0691c.C0692a("P_GSWS_CODE", "TEXT", false, 0, (String) null, 1));
hashMap2.put("P_CASTE_CATEGEORY_ID", new C0691c.C0692a("P_CASTE_CATEGEORY_ID", "TEXT", false, 0, (String) null, 1));