Skip to content

Instantly share code, notes, and snippets.

View shivam201's full-sized avatar

Shivam Maralay shivam201

  • Microsoft
  • India
View GitHub Profile
@shivam201
shivam201 / Issued Solved
Created June 12, 2020 05:58
Issue Solved
******* Error: Could not find or load main class JavaClientScript.API_TestCase_Runner *******
Case 1. c:\project\bin\xyz\hello.class
go inside bin -> java xyz.hello
Case 2. javac -cp "abc.jar;pqr.jar;" hello
put semicolon at last of the jar otherwise it won't consider as complete and hello wont be recognised
****** Error - Maven - Build is successfull but no test case get executed **********
Runner Java file should be of - Test.** (Started with Test - always capital 'T')
Java
why finally ?
function overloading and overriding
inheritance vs class
String Object vs normal String.
Selenium
fluent and explicit wait , xpath syntax
quit vs close
@shivam201
shivam201 / URL's
Created November 25, 2019 04:05
URLS's
Msisdn Validation :-https://libphonenumber.appspot.com/
@shivam201
shivam201 / Selenium
Last active May 2, 2022 09:18
InterviewQuestion
What Are The Benefits Does WebDriver Has Over Selenium RC?
Selenium RC had a complex architecture, whereas WebDriver removed those complications. The below points discuss why WebDriver is better than the RC.
Selenium RC is slow because it has an additional JavaScript layer known as the core. On the contrary, WebDriver is fast as it natively interacts with the browser by utilizing its built-in engine.
Selenium core can’t ignore the disabled elements, whereas WebDriver handles the page elements more realistically.
Selenium RC has a mature set of APIs but suffers from redundancies and complicated commands. On the other hand, WebDriver APIs have a cleaner interface and do not have any such problems.
Selenium RC doesn’t provide support for the HtmlUnit browser, whereas the WebDriver has a headless HtmlUnit driver.
Selenium RC includes a test result generator to produce HTML reports. Web Driver doesn’t have any built-in reporting ability.
What Are The Benefits Of Selenium Automation?
There are many benefits of usi
1. Market Place Plugin :-
1. Install new software.
2. Install with TestNG Eclipse - http://beust.com/eclipse
2. Convert to Test NG project :-
3. Change https: to http
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Suite">
@shivam201
shivam201 / PHP
Created August 22, 2019 00:20
PHP Note
*** Sending Mail via PHP SMTP ***
<?php
ini_set('display_errors','on');
error_reporting(E_ALL);
$result="";
if(isset($_POST['submit'])) {
require 'phpmailer/PHPMailerAutoload.php';
$mail = new PHPMailer;
$mail->Host='smtp.*****.com';
$mail->Port=465;
API for Getting Near By Location :-
a. Get Latitude amd longitude in HTML -5
<!DOCTYPE html>
<html>
<body>
<p>Click the button to get your coordinates.</p>
<button onclick="getLocation()">Try It</button>
@shivam201
shivam201 / Plants
Last active January 18, 2019 02:25
Plants
https://www.build-electronic-circuits.com/microcontroller-tutorial-part5/
https://www.projectsof8051.com/home-appliance-control-using-mobile-phone/
https://www.instructables.com/id/Control-Electrical-Devices-From-your-android-phone/
@shivam201
shivam201 / Data
Last active February 19, 2019 04:20
hosting Plans Links
https://www.hostingcharges.in/hosting-coupons/godaddy
https://www.hostingcharges.in/hosting-coupons/hostsoch
https://www.hostsoch.in/linux-hosting.html