Saturday, 10 March 2012

Enter text into JavaScript Prompt Dialog Box [JavaScript alert messages ] in web application using selenium automation testing + WebDriver

importorg.openqa.selenium.Alert;
importorg.openqa.selenium.By;
importorg.openqa.selenium.WebDriver;
importorg.openqa.selenium.firefox.FirefoxDriver;

//JavaScript Prompt Dialog Box  [JavaScript alert messages ] in web application using selenium automation testing
public class JavaScriptAlert_LearnSeleniumWithJasmine{

       public static void main(String[] args) throws InterruptedException {
             
             
              WebDriver Jasminedriver = new FirefoxDriver();
              Jasminedriver.get("http://www.javascripter.net/faq/prompt.htm#top");
             
              Jasminedriver.findElement(By.xpath("html/body/p[1]/table/tbody/tr/td[1]/form/input")).click();
              Alert javascriptAlert = Jasminedriver.switchTo().alert();
              Thread.sleep(5000);
              javascriptAlert.sendKeys("Hi Jasmine ");
             
              javascriptAlert.accept();
              System.out.println("Jasmine OK");
             
              javascriptAlert = Jasminedriver.switchTo().alert();
             
              Thread.sleep(5000);
              javascriptAlert.accept();
              System.out.println("Jasmine OK");
             
              Jasminedriver.findElement(By.xpath("html/body/p[1]/table/tbody/tr/td[1]/form/input")).click();
             
              javascriptAlert = Jasminedriver.switchTo().alert();
              Thread.sleep(5000);
              javascriptAlert.sendKeys("Hi Jasmine ");
              javascriptAlert.dismiss();
              System.out.println("Jasmine OK");
             

              javascriptAlert = Jasminedriver.switchTo().alert();
             
              Thread.sleep(5000);
              javascriptAlert.accept();
              System.out.println("Jasmine OK");

              Jasminedriver.quit();
             
             
             
       }

}

JavaScript Prompt Dialog Box [JavaScript alert messages ] in web application using selenium automation testing


importorg.openqa.selenium.Alert;
importorg.openqa.selenium.By;
importorg.openqa.selenium.WebDriver;
importorg.openqa.selenium.firefox.FirefoxDriver;

//JavaScript Prompt Dialog Box  [JavaScript alert messages ] in web application using selenium automation testing
public classJavaScriptAlert_LearnSeleniumWithJasmine {

       public static void main(String[] args) throws InterruptedException {
              WebDriver Jasminedriver = new FirefoxDriver();
              Jasminedriver.get("http://www.javascripter.net/faq/prompt.htm#top");
             
              Jasminedriver.findElement(By.xpath("html/body/p[1]/table/tbody/tr/td[1]/form/input")).click();
              Alert javascriptAlert = Jasminedriver.switchTo().alert();
              Thread.sleep(5000);
              javascriptAlert.accept();
              System.out.println("Jasmine OK");
             
              javascriptAlert = Jasminedriver.switchTo().alert();
             
              Thread.sleep(5000);
              javascriptAlert.accept();
              System.out.println("Jasmine OK");
             
              Jasminedriver.findElement(By.xpath("html/body/p[1]/table/tbody/tr/td[1]/form/input")).click();
             
              javascriptAlert = Jasminedriver.switchTo().alert();
              Thread.sleep(5000);
              javascriptAlert.dismiss();
              System.out.println("Jasmine OK");
             

              javascriptAlert = Jasminedriver.switchTo().alert();
             
              Thread.sleep(5000);
              javascriptAlert.accept();
              System.out.println("Jasmine OK");
             
       }

}

Alert: Modal Message Box [JavaScript alert messages ] in web application using selenium automation testing


importorg.openqa.selenium.Alert;
importorg.openqa.selenium.By;
importorg.openqa.selenium.WebDriver;
importorg.openqa.selenium.firefox.FirefoxDriver;

//Alert: Modal Message Box [JavaScript alert messages ] in web application using seleniumautomation testing
public classJavaScriptAlert_LearnSeleniumWithJasmine {

       public static void main(String[] args) throws InterruptedException {
              WebDriver Jasminedriver = new FirefoxDriver();
              Jasminedriver.get("http://www.javascripter.net/faq/alert.htm");
             
              Jasminedriver.findElement(By.xpath("html/body/p[1]/table/tbody/tr/td[1]/form/input")).click();
              Alert javascriptAlert = Jasminedriver.switchTo().alert();
              Thread.sleep(5000);
              javascriptAlert.accept();
              System.out.println("Jasmine OK");
             
             
             
       }

}

Thursday, 8 March 2012

Learn Selenium with Jasmine


Learn Selenium with Jasmine

As of Friday, Google has over 50 teams running over 51K tests per day on internal Selenium Farm. 96% of these tests are handled by Selenium RC and the Farm machines correctly. The other 4% are partly due to RC bugs, partly to test errors, but isolating the cause can be difficult. Selenium has been adopted as the primary technology for functional testing of web applications within Google. That's the good news.

http://learnseleniumautomation.blogspot.in/2011/12/prerequisites-environment-setup-and.html

Tuesday, 6 March 2012

Top Inspiration | Team building movies

Top Inspiration | Team building movies





Iqbal
Main Madhuri Dixit Banna Chahati Hoon 
Chak De India
Rocket Singh Sales man of the year
Rang De Basanti 
Tara Rum Pum
Joh Jeeta Wahi Sikander 
Badmaash Company 
Guru 
Border 
Sarfarosh 
Nayak -The Real Hero
3 Idiots 
Lage Raho Munna Bhai
Munna Bhai MBBS 
Udaan
Swadesh
Taare Zameen Par
Lagaan
Black
King's speech