Skip to main content
Tweeted twitter.com/#!/StackSQA/status/478167012519452672
changed tags
Link

Selenium opens browser and loads page, then stops.

I have inherited a selenium project with no internal documentation and I'm a bit stuck on how to get it up and running (I am new to Selenium). We've gotten to a point where the program will open up an instance of firefox and load up the correct URL, but it never appears to even attempt to log in.

We're running Selenium 2.26.0 and Firefox 18.0.2.

My test suite is as follows (I've shortened the package and import directories for privacy):

package pro.selenium.testSuites;

import org.jbehave.core.annotations.UsingSteps; import org.junit.Test;

import pro.automation.annotations.AutomationAnnotations.PageObjects; import pro.automation.annotations.AutomationAnnotations.StoryPath; import pro.selenium.pageObjects.PageExecutiveDashboard; import pro.selenium.pageObjects.PageExecutiveOverallExpansion; import pro.selenium.pageObjects.PageLogin; import pro.selenium.pageObjects.PageTeamDriverStatistics; import selenium.steps.LoginSteps;

@UsingSteps(instances={LoginSteps.class}) @PageObjects(list={PageLogin.class, PageExecutiveDashboard.class, PageTeamDriverStatistics.class, PageExecutiveOverallExpansion.class}) @StoryPath(path="Login.story") public class LoginTest extends WebStories {

package pro.selenium.testSuites;

import org.jbehave.core.annotations.UsingSteps;
import org.junit.Test;

import pro.automation.annotations.AutomationAnnotations.PageObjects;
import pro.automation.annotations.AutomationAnnotations.StoryPath;
import pro.selenium.pageObjects.PageExecutiveDashboard;
import pro.selenium.pageObjects.PageExecutiveOverallExpansion;
import pro.selenium.pageObjects.PageLogin;
import pro.selenium.pageObjects.PageTeamDriverStatistics;
import selenium.steps.LoginSteps;

@UsingSteps(instances={LoginSteps.class})
@PageObjects(list={PageLogin.class, PageExecutiveDashboard.class, PageTeamDriverStatistics.class, PageExecutiveOverallExpansion.class})
@StoryPath(path="Login.story")
public class LoginTest extends WebStories {
    
    @Test
    public void test(){} 

}

}

The story is here:

Scenario: TC1241: Log In - Blank User Name and Password Error Given I am on the Login page When I click the Login button Then I validate the Error text contains "Username is a required field." And I validate the Error text contains "Password is a required field." And I validate the User Name textfield is "" And I validate the Password textfield is ""

Scenario: TC1241: Log In - Blank User Name and Password Error
Given I am on the Login page
When I click the Login button
Then I validate the Error text contains "Username is a required field."
And I validate the Error text contains "Password is a required field."
And I validate the User Name textfield is ""
And I validate the Password textfield is ""

When I run it all, the console shows only the following and then stops. On the browser itself there is never any change.

Scenario: TC1241: Log In - Blank User Name and Password Error Given I am on the Login page

Scenario: TC1241: Log In - Blank User Name and Password Error
Given I am on the Login page

Any ideas of what I could be missing here?

Selenium opens browser and loads page, then stops.

I have inherited a selenium project with no internal documentation and I'm a bit stuck on how to get it up and running (I am new to Selenium). We've gotten to a point where the program will open up an instance of firefox and load up the correct URL, but it never appears to even attempt to log in.

We're running Selenium 2.26.0 and Firefox 18.0.2.

My test suite is as follows (I've shortened the package and import directories for privacy):

package pro.selenium.testSuites;

import org.jbehave.core.annotations.UsingSteps; import org.junit.Test;

import pro.automation.annotations.AutomationAnnotations.PageObjects; import pro.automation.annotations.AutomationAnnotations.StoryPath; import pro.selenium.pageObjects.PageExecutiveDashboard; import pro.selenium.pageObjects.PageExecutiveOverallExpansion; import pro.selenium.pageObjects.PageLogin; import pro.selenium.pageObjects.PageTeamDriverStatistics; import selenium.steps.LoginSteps;

@UsingSteps(instances={LoginSteps.class}) @PageObjects(list={PageLogin.class, PageExecutiveDashboard.class, PageTeamDriverStatistics.class, PageExecutiveOverallExpansion.class}) @StoryPath(path="Login.story") public class LoginTest extends WebStories {

@Test
public void test(){}

}

The story is here:

Scenario: TC1241: Log In - Blank User Name and Password Error Given I am on the Login page When I click the Login button Then I validate the Error text contains "Username is a required field." And I validate the Error text contains "Password is a required field." And I validate the User Name textfield is "" And I validate the Password textfield is ""

When I run it all, the console shows only the following and then stops. On the browser itself there is never any change.

Scenario: TC1241: Log In - Blank User Name and Password Error Given I am on the Login page

Any ideas of what I could be missing here?

Selenium opens browser and loads page, then stops.

I have inherited a selenium project with no internal documentation and I'm a bit stuck on how to get it up and running (I am new to Selenium). We've gotten to a point where the program will open up an instance of firefox and load up the correct URL, but it never appears to even attempt to log in.

We're running Selenium 2.26.0 and Firefox 18.0.2.

My test suite is as follows (I've shortened the package and import directories for privacy):

package pro.selenium.testSuites;

import org.jbehave.core.annotations.UsingSteps;
import org.junit.Test;

import pro.automation.annotations.AutomationAnnotations.PageObjects;
import pro.automation.annotations.AutomationAnnotations.StoryPath;
import pro.selenium.pageObjects.PageExecutiveDashboard;
import pro.selenium.pageObjects.PageExecutiveOverallExpansion;
import pro.selenium.pageObjects.PageLogin;
import pro.selenium.pageObjects.PageTeamDriverStatistics;
import selenium.steps.LoginSteps;

@UsingSteps(instances={LoginSteps.class})
@PageObjects(list={PageLogin.class, PageExecutiveDashboard.class, PageTeamDriverStatistics.class, PageExecutiveOverallExpansion.class})
@StoryPath(path="Login.story")
public class LoginTest extends WebStories {
    
    @Test
    public void test(){} 

}

The story is here:

Scenario: TC1241: Log In - Blank User Name and Password Error
Given I am on the Login page
When I click the Login button
Then I validate the Error text contains "Username is a required field."
And I validate the Error text contains "Password is a required field."
And I validate the User Name textfield is ""
And I validate the Password textfield is ""

When I run it all, the console shows only the following and then stops. On the browser itself there is never any change.

Scenario: TC1241: Log In - Blank User Name and Password Error
Given I am on the Login page

Any ideas of what I could be missing here?

Source Link

Selenium opens browser and loads page, then stops

Selenium opens browser and loads page, then stops.

I have inherited a selenium project with no internal documentation and I'm a bit stuck on how to get it up and running (I am new to Selenium). We've gotten to a point where the program will open up an instance of firefox and load up the correct URL, but it never appears to even attempt to log in.

We're running Selenium 2.26.0 and Firefox 18.0.2.

My test suite is as follows (I've shortened the package and import directories for privacy):

package pro.selenium.testSuites;

import org.jbehave.core.annotations.UsingSteps; import org.junit.Test;

import pro.automation.annotations.AutomationAnnotations.PageObjects; import pro.automation.annotations.AutomationAnnotations.StoryPath; import pro.selenium.pageObjects.PageExecutiveDashboard; import pro.selenium.pageObjects.PageExecutiveOverallExpansion; import pro.selenium.pageObjects.PageLogin; import pro.selenium.pageObjects.PageTeamDriverStatistics; import selenium.steps.LoginSteps;

@UsingSteps(instances={LoginSteps.class}) @PageObjects(list={PageLogin.class, PageExecutiveDashboard.class, PageTeamDriverStatistics.class, PageExecutiveOverallExpansion.class}) @StoryPath(path="Login.story") public class LoginTest extends WebStories {

@Test
public void test(){}

}

The story is here:

Scenario: TC1241: Log In - Blank User Name and Password Error Given I am on the Login page When I click the Login button Then I validate the Error text contains "Username is a required field." And I validate the Error text contains "Password is a required field." And I validate the User Name textfield is "" And I validate the Password textfield is ""

When I run it all, the console shows only the following and then stops. On the browser itself there is never any change.

Scenario: TC1241: Log In - Blank User Name and Password Error Given I am on the Login page

Any ideas of what I could be missing here?