Selenium Using C Sharp

  • /
  • Courses

Duration

20 hours

Course Price

$ 399.00

4.5 (23)

Course Content

1. Automation

  • Benefits of Automation Testing
  • Various Tools Available in Market
  • Comparison between the tool

2. Automation Approaches

  • Tool Based
  • Framework Based
  • Record & Play
  • Modularization

3. C# INTRODUCTION

  • Installing Visual Studio
  • Features of C#
  • Why C# for Selenium
  • First C# Project

4. C# Programming

  • Datatypes in C#
  • Local and Global Variable
  • Static and Non Static Variables/ Functions
  • Conditional Statements
  • LOOPS
  • ARRAYS – Single/Two Dimensional
  • FUNCTIONS
  • Call by reference and Value
  • Constructors
  • Interface
  • Overloading and Overriding Functions
  • Accessing modifiers - Public, Private, Default, Protected
  • Exception handling with try catch block
  • Final and Finally
  • Throw and Throws
  • List and Dictionary Class

5. Read/Write Data

  • Read/ Write data in Text File
  • Read/Write data in Excel
  • Reading Configuration File in C#

6. Selenium WebDriver

  • Command to Openurl in FireFox, Chrome, Internet Explorer
  • XPath
  • Finding Xpaths to identify
  • Absolute and partial Xpaths
  • CSS Selector
  • Get All List from page
  • Implicit Wait
  • Explicit Wait
  • Handling Dynamic objects/ids on the page
  • Extracting More than one object from a page
  • Extracting all links of a page/Bulk extraction of objects
  • Handling drop down list
  • Managing radio buttons and Checkboxes
  • Alert management
  • Taking Screenshots of the web pages
  • Window Handle
  • PopUp Handling
  • Mouse movement with Selenium - Actions class
  • Randomly clicking/selecting Objects - Randomising

7. Automation Framework- Hands On

  • Types Of Framework
  • Linear Framework
  • Data Driver Framework
  • Keyword Driven
  • Hybrid Framework

8. Automation Framework- Advanced Hands On

  • Hybrid Framework
  • Keyword Driven Framework

9. Automation Scripts Creation –Live Project

  • Using Hybrid Framework

 

 

 

Trainer Profile

Interview Questions & Answer

 

1) What is C-Sharp (C#)?

C# is a type- safe, object oriented,  modern, general-purpose, programming language developed by Microsoft.

 C# is designed for Common Language Infrastructure (CLI), which consists of the executable code and runtime environment.

 It allows use of various high-level languages on different computer platforms and architectures.

C# provides the rapid application development found in Visual Basic with the power of C++.

 

2) List some of the advantages of C#?

The advantages of C#  are as follows:

·         It is Easy to learn

·         It is Object oriented

·         It is Component oriented

·         It is Part of .NET framework

 

3)Explain the features of C#?

Below are some of the features supported in C# -

·         Constructors and Destructors

·         Properties

·         Passing Parameters

·         Arrays

·         Main

·         XML Documentation and

·         Indexers

 

4)Explain the types of comments in C#?

 The types of comments in C# are -

·         Single Line Comment Eg : //

·         Multiline Comments Eg: /* */

·         XML Comments Eg : ///

 

5)List out two different types of errors in C#?

Below are the types of errors in C# -

·         Compile Time Error

·         Run Time Error

 

6)What is inner exception in C#?

Inner exception in C#  is a property of exception class which will give you a brief insight of the exception i.e, parent exception and child exception details.

 

7)List  some of the exceptions in C#?

Below are some of the exceptions in C# -

·         NullReferenceException

·         ArgumentNullException

·         DivideByZeroException

·         IndexOutOfRangeException

·         InvalidOperationException

·         StackOverflowException etc.

 

8) Explain Hashtable in C#?

Hashtable  is used to store the key/value pairs based on hash code of the key. Key will be used to access the element in the collection. For example,

Hashtable myHashtbl = new Hashtable();
myHashtbl.Add("1", "TestValue1");
myHashtbl.Add("2", "TestValue2");

 

9)What is Jagged Array in C#?

A Jagged array is an array of arrays.

You can initialize a jagged array as −

int[][] scores = new int[2][]{new int[]{92,93,94},new int[]{85,66,87,88}};

Where, scores is an array of two arrays of integers - scores[0] is an array of 3 integers and scores[1] is an array of 4 integers.

 

10)What are dynamic type variables in C# ?

One can store any type of value in the dynamic data type variable. Type checking for these types of variables takes place at run-time.

Syntax for declaring a dynamic type is −

dynamic = value;
For example,
dynamic d = 20;

11)What is the purpose of as operator in C#?

As operator casts without raising an exception if the cast fails.

Object obj = new StringReader("Hello");

StringReader r = obj as StringReader;
 

 

12)How to inherit a class in C#?

A class can be derived from more than one class or interface, which means that it can inherit data and functions from multiple base classes or interfaces. The syntax used in C# for creating derived classes is as follows −


class

{

   ...

}

class :

{

   ...

}

 

13)What do you mean by namespace in C#?

namespace is designed for providing a way to keep one set of names separate from another. So that the class names declared in one namespace does not conflict with the same class names declared in another.

 

14)What is delegates in C# and uses of delegates?

C# delegates are same as pointers to functions, in C or C++. A delegate Object is a reference type variable that use to holds the reference to a method. The reference can be changed at runtime which is hold by an object of delegate, a delegate object can hold many functions reference which is also known as Invocation List that refers functions in a sequence FIFO, we can new functions ref in this list at run time by += operator and can remove by -= operator.

Delegates are especially used for implementing events and the call-back methods. All delegates are implicitly derived from the System.Delegate class.

 

15)Explain Anonymous type in C?

Anonymous types allow one to create a new type without defining them. This is way to defining read only properties into a single object without having to define type explicitly. Here Type is generating by the compiler and it is accessible only for the current block of code. The type of properties is also inferred by the compiler.

Consider:

var anonymousData = new

{  
     ForeName = "Jignesh",  
     SurName = "Trivedi"
};  
 
Console.WriteLine("First Name : " + anonymousData.ForeName); 

 

 

 

 

 

 

 

 

 

 

 

 

 

Blog

Register For Online Demo


Can't read the image? click here to refresh