Skip to main content

Posts

Showing posts with the label software development

Error Capturing -part 1

We need to capture some errors messages from the website we are testing. Here is our test case: 2.3 Check for validation 2 - Sign in 2.3.1: Launch hope page -http://automationpractice.com/index.php 2.2 .2: Click on link ‘Sign in’ 2.3.3 Under “Create Account” subheading, under ’Email address’ Enter email address that is already registered in text field 2.34 Click on Create an account button. 2.3.5 Capture error message ————————————————————— package com.automationpractice.AutomationPractice; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; /**  *  */ public class LaunchCloseApp { WebDriver driver ; @BeforeClass public void launchApp() { //instantiate Chrome Browser driver System.setProperty( "webdriver.chrome.driver" , "/Users/tester/Documents/webDrivers/chrome/chromedriver" ); driver ...

Getting started with Selenium on Mac

Getting Selenium working on Mac 1. Download Java - jdk from: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Fllow the instructions to install jdk. Add jdk installed path to your environment. On Mac - Go to the terminal and type nano .profile Type the folowing into your profile: JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home export JAVA_HOME Select your Control key and o on your keyborad to write out. Press Enter to accept the changes. Then, Control and x to come off. Check that jdk is installed. Go to another terminal, type - java -version Something like the following should return-   java version "1.8.0_151" Java(TM) SE Runtime Environment (build 1.8.0_151-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode) 2. Download Eclipse IDE for jee users- https://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/keplersr2 Follow the instr...