Skip to main content

Posts

Showing posts from June, 2017

Best Pattern Printing Code Ever Seen

int main ( void ) { // your code goes here int a , b , c ; for ( b = 10 , c = 10 ; a = "- FIGURE?, UMKC,XYZHello Folks, \ TFy!QJu ROo TNn(ROo)SLq SLq ULo+ \ UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^ \ NBELPeHBFHT}TnALVlBLOFAkHFOuFETp \ HCStHAUFAgcEAelclcn^r^r \\ tZvYxXy \ T|S~Pn SPm SOn TNn ULo0ULo#ULo-W \ Hq!WFs XDt!" [ b +++ 21 ] ; ) for ( ; a -- > 64 ; ) putchar ( ++ c == 'Z' ? c = c / 9 : 33 ^ b & 0x1 ) ; return 0 ; } Output: !!!!!!!!!! !!!!!!!!!!!!!!! !!!!!!!!!!!!!! !!!!!!!!!!!!!!! !!!!!!!!!!!! ...

Clicking the Web Element and Scraping the Details

Hi, guys in this Tutorials I am going to show you how to click a web element and scrap the details. Follow the below steps  1. Create a Java project and download the jars  selenium-server-standalone-2.41.0.jar 2.Add the downloaded Jar in your project. 3.Download the Chrome Drive for use in the program below. 4 Create the program for scraping import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; public class Demo1 { public static void main(String[] args) throws InterruptedException { //first paramter is driver name and second is driver's path System.setProperty("webdriver.chrome.driver", "C:\\New_Teslra\\DemoTipschromedriver\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.get("http://google.co.in"); driv...