Wednesday 17 October 2012

Project Training for BCA,MCA,BE Computer,IT,BSC IT,MSC IT,Diploma Students,IGNOU,DOEACC students

Send your email to all IT companies for enquiring about Project Training for BCA,MCA,BE Computer,IT,BSC IT,MSC IT,Diploma Students,IGNOU,DOEACC students using JustDial.com

This is automated form filling system developed using Selenium Webdriver and JAVA.

Its not a rocket science. Its simple. Just follow some instructions.

SETTING UP SELENIUM WEB DRIVER into ECLIPSE

http://selftechy.com/2011/05/31/setting-up-selenium-with-eclipse

http://www.anitpatel.net/2011/12/27/setting-up-selenium-web-driver-eclipse-testng/


Once you are ready with Eclipse and added Selenium webdriver jars in Eclipse then make one new class in eclipse and copy paste following code in that class 



public static void main(String[] args) throws InterruptedException {
              WebDriver driver = new FirefoxDriver();
              driver.manage().window().maximize();
             
              // Uncomment following command one by one and run this whole script for all this command
              // this is made for Banglore city
              // you can get more city same way by going and searching on justdialand get links
              // add that link here and run whole script again
             
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developers-For-Bank");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developers");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developers-In-Application");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developer-ASP-Dot-Net");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developers-For-Cellular-Phones");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developers-For-Textile-Industry");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developer-SAP-ERP");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developers-For-Education");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developer-Accounting-Management");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developer-Distributors");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developer-Real-Estate");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developers-For-Call-Centre");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developers-For-Colleges");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developers-For-CRM");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developers-For-Departmental-Store");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developers-For-Excise");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developers-For-Hotels");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developers-For-HRD");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developers-For-Inventory-Management");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developers-For-Invoice");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developers-For-Sales-TAX");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developers-For-Single-Phase-Motor-Design");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developers-For-Three-Phase-Motor-Design");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developers-For-Travel-Agents");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developers-In-Inventory");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Developers-In-Power-Builder");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Development-For-ERP");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Development-For-Inventory-Management");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Installation");
//            driver.navigate().to("http://www.justdial.com/Bangalore/Computer-Software-Dealers");
             
              String SearchLinkText = null;
             
             
              // Set variable j based on no of page of the search result of the Justdial.com
              // Click on Next Button 21 times
              for (int j = 1; j <= 21; j++) {
                     System.out.println("Page no" + j);
                     System.out.println("-----------------------------------");
                    
                     for(int i=1;i<=25;i++){
                          
                          
                           try {
                                  String Start = "//*[@id='mainContent']/div[3]/div[";
                                  String End = "]/div[1]/span/a";
                                 
                                  SearchLinkText = driver.findElement(By.xpath(Start+i+End)).getText() ;
                                  System.out.println(SearchLinkText + " --- is opened");
                                  driver.findElement(By.xpath(Start+i+End)).click();
                                 


                                  Thread.sleep(5000L);
                                 
                                  if (driver.findElement(By.linkText("Send Enquiry by Email")).isDisplayed()) {
                                        
                                         // Click on Send Enquiry by Email link
                                         driver.findElement(By.linkText("Send Enquiry by Email")).click();
                                        
                                  } else{
                                         System.out.println(SearchLinkText + " --- Skipping Send Enquiry by Email");
                                        
                                  }
                                 
                                 

                                  //Enter your name in "Your name" in following command
                                  driver.findElement(By.xpath("//*[@id='enqname']")).sendKeys("Your Name");
                                 
                                  //Enter your Mobile no into "Your Mobile no"  in following command
                                  driver.findElement(By.xpath("//*[@id='enqmobile']")).sendKeys("Your Mobile no");
                                 
                                  //Enter your Email ID into "Your Email ID"  in following command
                                  driver.findElement(By.xpath("//*[@id='enqemail']")).sendKeys("Your Email ID");
                                 
                                  //Enter your Email Subject into "Email Subject"  in following command
                                  driver.findElement(By.xpath("//*[@id='enqsub']")).sendKeys("Email Subject [Ex: I am looking for Project & Training in JAVA]");
                                 
                                  ////Enter your one line Email Body into "Email Subject"  in following command
                                  driver.findElement(By.xpath("//*[@id='enqbd']")).sendKeys("Enter oneline email body [Ex: I am looking for training for my 6th sem of BE CE]");
                                 
                                  driver.findElement(By.xpath("//*[@id='Enquiry']/p[9]/input")).click();
                                   
                                  Thread.sleep(10000L);
                                  driver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);

                                 
                                  System.out.println("Email Sent to --- " + i);
                           } catch (Exception e) {
                           System.out.println("Unable to locate ");
                          
                           }
                           driver.navigate().back();
                          
                     }
                    
                     //Click on Next button
                     driver.findElement(By.xpath("//*[@id='srchpagination']/a[13]")).click();
                    
              }
             
             
       }


Tuesday 18 September 2012

How to Detect Computer & Email Monitoring or Spying Software

How to Detect Computer & Email Monitoring or Spying Software - Link

Detect if someone is monitoring your computer usage - Link 

How to Detect Email Monitoring on Your Computer - Link

Friday 14 September 2012

Career Options for Women


Today women with their smartness, grace and elegance have conquered the whole world. They with their hard work and sincerity have excelled in each and every profession. Women are considered to be more honest, meticulous, and efficient and hence more and more companies prefer hiring women for better performance and result.

Women prefer all types of job but a few favourites are listed below.

Air Hostess
Advertising
Advocate
Electronic Engineer
Software Engineer
Fashion Designer
Journalism
Teacher
Business Executive
Beautician
Doctor 

A niche group for candidates to find jobs and companies to find good candidates. This group has helped more than 800+ pe
ople get placed to different jobs. The group is strictly moderated..

We look forward to continually providing great candidates for our clients and tremendous opportunities for our job seekers.




http://www.facebook.com/groups/CareerOptionsforWomen/

CareerOptionsforWomen@groups.facebook.com

Thursday 13 September 2012

Thursday 23 August 2012

All QA people invited to join me on FB

Learn selenium webdriver by example

1. Download Eclipse http://www.eclipse.org/downloads/
2. make new java project http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2FgettingStarted%2Fqs-3.htm
3. Create new class file with main
4. copy paste following code and enjoy 


public class ScrapNaukri {


public static void main(String[] args) throws IOException {

WebDriver driver = new FirefoxDriver();
driver.get("http://www.naukri.com");


driver.findElement(By.xpath("//*[@id='spanid_farea']/input[@id='farea']")).sendKeys("QA & Testing");

//Enter Location
//driver.findElement(By.xpath("//*[@id='ql']")).sendKeys("pune");

// Click on Search
driver.findElement(By.xpath("//*[@id='search']")).click();

//Xpaths
String Start_xpath_searchString = "//*[@id='";
String End_xpath_searchString = "']";


FileWriter fstream = new FileWriter("C:\\outfilename.txt", true);
BufferedWriter out = new BufferedWriter(fstream);


try {
while ((driver.findElement(By.xpath("//*[@id='pageNext']"))) != null) {

//Click on each link of search result
for(int i=1;i<=50;i++){

try{
driver.findElement(By.xpath(Start_xpath_searchString + i +End_xpath_searchString )).click();


// Go to Job Details
Set<String> windowids = driver.getWindowHandles();
Iterator<String> iter= windowids.iterator();


String mainWindowId=iter.next();
iter.next();
String tabbedWindowId=iter.next();

driver.switchTo().window(tabbedWindowId);

try{
driver.findElement(By.xpath("//*[@id='viewBtn']/a")).click();
Thread.sleep(1000);

System.out.println(driver.findElement(By.xpath("//*[@id='contactDet']")).getText());
String test = driver.findElement(By.xpath("//*[@id='contactDet']")).getText();
out.write(test);
out.newLine();

}catch(Exception e){
System.out.println("Skipped-----------------------------" + i);
}

driver.close();
driver.switchTo().window(mainWindowId);
}catch (Exception e) {
System.out.println("No more Page links to click");
}


}

driver.findElement(By.xpath("//*[@id='pageNext']")).click();
}
} catch (Exception e) {
System.out.println("No more Next button");
out.close();
}



driver.quit();
}

Thursday 2 August 2012

Selenium WebDriver Drag & Drop

Below links will help you to explore more Selenium WebDriver Drag & Drop:

1. Selenium WebDriver Using Drag / Drop. [Link]

2. Using Drag and Drop with WebDriver. [Link]

3. Using Drag and Drop in WebDriver. [Link]

4. Python Selenium WebDriver drag-and-drop. [Link]

5. Similar to above one:
Drag-and-drop failing on complex jQuery UI. [Link]

6. HTML5 Drag and Drop using Selenium WebDriver for Ruby. [Link]

7. Drag & Drop with WebDriver. [Link]

Selenium WebDriver & Internet Explorer

Selenium WebDriver & Internet Explorer

Below are some of the links to help you with your efforts to get Selenium WebDriver & Internet Explorer working:

1. Internet Explorer Driver. [Link]

2. How do I start the Internet Explorer WebDriver for Selenium in Python? [Link]

3. Interacting with web pages using Selenium WebDriver for C#. [Link]

4. Selenium Web Driver: InternetExplorerDriver : NoSuchElementException. [Link]

5. Using the Selenium WebDriver. [Link]

6. Selenium WebDriver and InternetExplorer. [Link]

7. Selenium WebDriver error for IE. [Link]

Selenium WebDriver Installation

WebDriver is a clean, fast framework for automated testing of webapps. Selenium WebDriver is not tied to any particular test framework.

Google Opensource blog says: WebDriver takes a different approach to solve the same problem as Selenium. Rather than being a JavaScript application running within the browser, it uses whichever mechanism is most appropriate to control the browser. For Firefox, this means that WebDriver is implemented as an extension. For IE, WebDriver makes use of IE's Automation controls. By changing the mechanism used to control the browser, we can circumvent the restrictions placed on the browser by the JavaScript security model. In those cases where automation through the browser isn't enough, WebDriver can make use of facilities offered by the Operating System. For example, on Windows we simulate typing at the OS level, which means we are more closely modeling how the user interacts with the browser, and that we can type into "file" input elements.

For in-depth knowledge on Selenium WebDriver, see here

Below are few links to help you in the process of Selenium WebDriver installation:
1. WebDriver for Chrome [Link]
2. Setting Up a Selenium-WebDriver Project [Link]
3. Installing Selenium Webdriver on Ubuntu 11 [Link]
4. Installing Selenium Webdriver (selenium-dotnet-2.20.0.zip) [Link]
5. Setting Up a Selenium-WebDriver Project [Link]
6. Selenium Webdriver for Python installation [Link 1] [Link 2]
7. Python - Getting Started With Selenium WebDriver on Ubuntu/Debian [Link]
8. Get started with Selenium 2 [Link]
10. Selenium WebDriver AndroidDriver [Link]