Monday, 4 March 2019

selenium basics for beginners

 Selenium Introduction

 l  Selenium is an open source tool (no cost involved – free to download from Seleniumhq) “”
l  Selenium supports language like HTML, Java, PHP, purl, Python, Ruby and C# .
l  Selenium supports multiple web browsers like, IE, Firefox, Chrome, Opera
l  Selenium supports multiple Operating systems like Windows, Linux, Mac
l  Selenium Components

Saturday, 9 February 2019

Call python code in C# using IronPython

Why it’s required?

Python has lots of  useful library that we can utilise in our application and get that functionality in our webapplication. So just trying how to get the python features in MVC applications.

Using the Ironpython  to call the python code in C# code.  Follow the steps and use the below code to call the python code.

1.       Taking the reference of IronPython  using the Nuget Package as like below.

Print value of textarea using javascript

We are facing the problem to print the full textarea text when using the default browser print. It will print the full content of the pages which will print only that text which is visible to the textarea.

Content which is not displaying or go out of page due to overflow. Please use below code to see that.

We are having the Textarea and div control and when we click on the print then it will hide the text area and put the Textarea text to div

Monday, 14 January 2019

C# Interview Questions

It is C# basic interview question for beginners level.

1.       What is Class?
Ans: Collection of objects is called class. It is a logical entity.
A class can also be defined as a blueprint from which you can create an individual object. Class doesn't consume any space.

2.       Difference between Class and Objects?
Ans: Any entity that has state and behavior is known as an object. An Object can be defined as an instance of a class. An object contains an address and takes up some space in memory.

3.       What is Oops concept?
a.       What is inheritance?
Ans: When one object acquires all the properties and behaviors of a parent object, it is known as inheritance. It provides code reusability. It is used to achieve runtime polymorphism.

b.       What is Encapsulation?
Ans: Binding (or wrapping) code and data together into a single unit are known as encapsulation.

c.       What is Polymorphism?
Ans: If one task is performed by different ways, it is known as polymorphism.

d.       What is Abstract?
Ans: Hiding internal details and showing functionality is known as abstraction

Sunday, 13 January 2019

Generate the Signed key for apache cordova

You can generate the sign key for your apache application by the given procedure.

1.       Open the command promt, it is windows command prompt.

2.       Get the  Keystore path
C:\Program Files\Java\jdk1.8.0_111\bin\keystore
Go to that above path in the command window.

3.       Give the Below command

keytool -genkey -v -keystore NAME-mobileapps.keystore -alias NAMEmobileapps -keyalg RSA -keysize 2048 -validity 10000

Tuesday, 8 January 2019

compilesdkversion 'android-26' requires jdk 1.8 or later to compile visual studio

You are getting the build error in the Android Apache Cordova.

>compilesdkversion 'android-26' requires jdk 1.8 or later to compile visual studio

You  are getting this error as your application is not pointing to the valid version of the  java SDK (JDK) 

You need to set the JAVA SDK version from below screen in visual Studio.

Tools > Option > Tools for Apache Cordova  > Environment Variable Override

failed to find target with hash string 'android-26' in: C:\ProgramData\Microsoft\AndroidSDK\25

You are getting the below issue, which is build error from android cordova application

* What went wrong:
> failed to find target with hash string 'android-26' in: C:\ProgramData\Microsoft\AndroidSDK\25

It is happening as you have not installed the particular image which your application is pointing to. You are missing the image where your android SDK is present as 

You are having the android SDK version mentioned in Build.Gradle as like below.
ext {
    apply from: 'cordova.gradle'
    cdvCompileSdkVersion = 26 //privateHelpers.getProjectTarget()
    cdvBuildToolsVersion = privateHelpers.findLatestInstalledBuildTools()

Read PDF Table texts in Python

It will read the text from PDF in python.  Read Tables of PDF and place the data to XLSX file and read the XLSX file to one by one.

Suppose you are having the PDF file like below.

It’s a PDF file for Home loan, using the pdftables_api it will use to convert the PDF File into the form of xlsx file.

Now it will convert the PDF file into XSLX.

Tuesday, 25 December 2018

Arduino : Sending Data from ESP8266 to thingSpeak

Setting of ThingSpeak
1.       Create account in Think speak. And complete the validation

2.       Create a new Channel in thingSpeak.

Then click on save channel. By default it will show the empty chart as like below.

Sunday, 16 December 2018

Arduino : Connecting speaker

Simple application to check that the Speaker is connected to the  Arduino or not and how it will produce sound.

Required Items.
1. Speakar
2. Arduino
3. 5V

Follow the below code and upload into arduino for speaker connection

void setup()

void loop()
  tone(8,33, 500);

   tone(8,37, 500);

   tone(8,41, 500);
Circuit for Arduino Connecting speaker 

for more info you can see the below link. for creating melody Arduino Connecting speaker