Saturday, October 19, 2019

Facebook login using python Script[Selenium]

Facebook login using python [Script]

What Is Selenium WebDriver?

Selenium WebDriver is an API that allows us to write automated tests for web applications. The automated tests that use Selenium WebDriver are run by using a web browser. In other words, Selenium WebDriver helps us to verify that our application is working as expected when it is used by a real user.

The key features of Selenium WebDriver are:

It supports many common programming languages such as C#, Java, JavaScript, Python, and so on.

It supports all common web browsers.

It supports headless browsers such as HtmlUnit and PhantomJS.

Get pass Function  :  getpass function is used for take password without displaying the window .

#facebook login python script.

from selenium import webdriver # selenium tool for web activtie
from getpass import getpass #To take password without displaying. user = input('Enter your username or email id: ') pwd = getpass('Enter your password : ') driver = webdriver.Chrome() driver.get("") username_box = driver.find_element_by_id('email') username_box.send_keys(user) password_box = driver.find_element_by_id('pass') . password_box.send_keys(pwd) login_btn = driver.find_element_by_id('u_0_2') login_btn.submit()


Saturday, October 12, 2019

Java program to Convert Integer Number to Roman Number.{By Hottest Way).💣👌 Please Check out .

class Main {
public static void main(String[] args) {
int num;
System.out.println("please the number below 5000");
Scanner obj = new Scanner(;
num = obj.nextInt();
String str = String.valueOf(num);
char []arr = str.toCharArray();
int len = str.length();
int count[] = new int[10];
for(int i=0;i<len;i++){
count[i] = (int)arr[i]-48;    }
String ones[] = new String[]{"","I","II","III","IV","V","VI","VII","VIII",
String tens[] = new String[]{"","X","XX","XXX","XL","L","LX","LXX","LXXX",
String hundred[] = new String[]{"","C","CC","CCC","CD","D","DC","DCC",

String thousand[] = new String[]{"","M","MM","MMM","MMMM","~V"};
if(len==4 && num<=5000){
String romancounting = thousand[count[0]]+ hundred[count[1]] + tens[count[2]] + ones[count[3]];
else if(len==3) {
String romancounting = hundred[count[0]]+
System.out.println(romancounting);  }
else if(len==2){
String romancounting = tens[count[0]]+
System.out.println(romancounting);   }
else     {
System.out.println("Sorrt But number is invalid!
} } }

Arrays in Solidity Programming Language.

Arrays Solidity supports both generic and byte arrays. It supports both fixed size and dynamic arrays. It also supports multidimensional ...