Browser Title Assertions


assertTitleEquals

Description: This function will validate if the title of the current page is equals the user-provided data.

Input Format : @Expected text

Usage:

ObjectName Action Input Condition Reference
Object assertTitleEquals @value PageName << Hardcoded Input
Object assertTitleEquals Sheet:Column PageName << Input from Datasheet
Object assertTitleEquals %dynamicVar% PageName <<Input from variable

Inputs in the Input column can be either hardcoded (in this case the data is preceded by a "@"), passed from the data sheet (datasheet name : column name) or passed from a variable value (%variable name%), as given in the above example.

Corresponding Code:

@Action(object = ObjectType.BROWSER, desc ="Assert if Browser's Title Equals [<Data>]", input =InputType.YES)
    public void assertTitleEquals() {
        assertTitle(SpecText.Type.IS);
    }

Internally uses Galen Specs Language to check that URL text is Equal or not to the given URL.As Galen relies on Selenium – the text will be returned the same way it appears in a real browser (e.g. white space is ignored).

text is - checks that text is exactly as expected


assertTitleContains

Description: This function will validate if the title of the current page has the user-provided data.

Input Format : @Expected text

Usage:

ObjectName Action Input Condition Reference
Object assertTitleContains @value PageName << Hardcoded Input
Object assertTitleContains Sheet:Column PageName << Input from Datasheet
Object assertTitleContains %dynamicVar% PageName <<Input from variable

Inputs in the Input column can be either hardcoded (in this case the data is preceded by a "@"), passed from the data sheet (datasheet name : column name) or passed from a variable value (%variable name%), as given in the above example.

Corresponding Code:

@Action(object = ObjectType.BROWSER, desc ="Assert if Browser's Title Contains [<Data>]", input =InputType.YES)
    public void assertTitleContains() {
        assertTitle(SpecText.Type.CONTAINS);
    }

Internally uses Galen Specs Language to check that URL text Contains or not to the given URL.As Galen relies on Selenium – the text will be returned the same way it appears in a real browser (e.g. white space is ignored).

text contains - checks element contains expected text


assertTitleStartsWith

Description: This function will validate if the title of the current page begins with the user-provided data.

Input Format : @Expected text

Usage:

ObjectName Action Input Condition Reference
Object assertTitleStartsWith @value PageName << Hardcoded Input
Object assertTitleStartsWith Sheet:Column PageName << Input from Datasheet
Object assertTitleStartsWith %dynamicVar% PageName <<Input from variable

Inputs in the Input column can be either hardcoded (in this case the data is preceded by a "@"), passed from the data sheet (datasheet name : column name) or passed from a variable value (%variable name%), as given in the above example.

 @Action(object = ObjectType.BROWSER, desc ="Assert if Browser's Title StartsWith [<Data>]", input =InputType.YES)
    public void assertTitleStartsWith() {
        assertTitle(SpecText.Type.STARTS);
    }

Internally uses Galen Specs Language to check that URL text StartsWith or not to the given URL.As Galen relies on Selenium – the text will be returned the same way it appears in a real browser (e.g. white space is ignored).

text starts - element should start with expected text


assertTitleEndsWith

Description: This function will validate if the title of the current page ends with the user-provided data.

Input Format : @Expected text

Usage:

ObjectName Action Input Condition Reference
Object assertTitleEndsWith @value PageName << Hardcoded Input
Object assertTitleEndsWith Sheet:Column PageName << Input from Datasheet
Object assertTitleEndsWith %dynamicVar% PageName <<Input from variable

Inputs in the Input column can be either hardcoded (in this case the data is preceded by a "@"), passed from the data sheet (datasheet name : column name) or passed from a variable value (%variable name%), as given in the above example.

 @Action(object = ObjectType.BROWSER, desc ="Assert if Browser's Title EndsWith [<Data>]", input =InputType.YES)
    public void assertTitleEndsWith() {
        assertTitle(SpecText.Type.ENDS);
    }

Internally uses Galen Specs Language to check that URL text EndsWith or not to the given URL.As Galen relies on Selenium – the text will be returned the same way it appears in a real browser (e.g. white space is ignored).

text ends - element should end with expected text


assertTitleMatches

Description: This function will validate if the title current page matches the user-provided data. You can also use regular expression in the Input field.

Input Format : @Expected text

Usage:

ObjectName Action Input Condition Reference
Object assertTitleMatches @value PageName << Hardcoded Input
Object assertTitleMatches Sheet:Column PageName << Input from Datasheet
Object assertTitleMatches %dynamicVar% PageName <<Input from variable

Inputs in the Input column can be either hardcoded (in this case the data is preceded by a "@"), passed from the data sheet (datasheet name : column name) or passed from a variable value (%variable name%), as given in the above example.

 @Action(object = ObjectType.BROWSER, desc ="Assert if Browser's Title Matches [<Data>]", input =InputType.YES)
    public void assertTitleMatches() {
        assertTitle(SpecText.Type.MATCHES);
    }

Internally uses Galen Specs Language to check that URL text Matches or not to the given URL.As Galen relies on Selenium – the text will be returned the same way it appears in a real browser (e.g. white space is ignored).

text matches - verifies that text matches Java Regular Expression


assertTitleIEquals

Description: This function will validate if the title of the current page is equals the user-provided data. This function will ignore case of user provided data.

Input Format : @Expected text

Usage:

ObjectName Action Input Condition Reference
Object assertTitleIEquals @value PageName << Hardcoded Input
Object assertTitleIEquals Sheet:Column PageName << Input from Datasheet
Object assertTitleIEquals %dynamicVar% PageName <<Input from variable

Inputs in the Input column can be either hardcoded (in this case the data is preceded by a "@"), passed from the data sheet (datasheet name : column name) or passed from a variable value (%variable name%), as given in the above example.

 @Action(object = ObjectType.BROWSER, desc ="Assert if Browser's Title Equals [Ignorecase] [<Data>]", input =InputType.YES)
    public void assertTitleIEquals() {
        assertTitleI(SpecText.Type.IS);
    }

Internally uses Galen Specs Language to check that URL text is Equal or not to the given URL.As Galen relies on Selenium – the text will be returned the same way it appears in a real browser (e.g. white space is ignored).

text is - checks that text is exactly as expected


assertTitleIContains

Description: This function will validate if the title of the current page contains the user-provided data. This function will ignore case of the user-provided data.

Input Format : @Expected text

Usage:

ObjectName Action Input Condition Reference
Object assertTitleIContains @value PageName << Hardcoded Input
Object assertTitleIContains Sheet:Column PageName << Input from Datasheet
Object assertTitleIContains %dynamicVar% PageName <<Input from variable

Inputs in the Input column can be either hardcoded (in this case the data is preceded by a "@"), passed from the data sheet (datasheet name : column name) or passed from a variable value (%variable name%), as given in the above example.

 @Action(object = ObjectType.BROWSER, desc ="Assert if Browser's Title Contains [Ignorecase] [<Data>]", input =InputType.YES)
    public void assertTitleIContains() {
        assertTitleI(SpecText.Type.CONTAINS);
    }

Internally uses Galen Specs Language to check that URL text Contains or not to the given URL.As Galen relies on Selenium – the text will be returned the same way it appears in a real browser (e.g. white space is ignored).

text contains - checks element contains expected text


assertTitleIStartsWith

Description: This function will validate if the current page title begins with the user-provided data. This function will ignore case of the user-provided data.

Input Format : @Expected text

Usage:

ObjectName Action Input Condition Reference
Object assertTitleIStartsWith @value PageName << Hardcoded Input
Object assertTitleIStartsWith Sheet:Column PageName << Input from Datasheet
Object assertTitleIStartsWith %dynamicVar% PageName <<Input from variable

Inputs in the Input column can be either hardcoded (in this case the data is preceded by a "@"), passed from the data sheet (datasheet name : column name) or passed from a variable value (%variable name%), as given in the above example.

Corresponding Code:

@Action(object = ObjectType.BROWSER, desc ="Assert if Browser's Title StartsWith [Ignorecase] [<Data>]", input =InputType.YES)
    public void assertTitleIStartsWith() {
        assertTitleI(SpecText.Type.STARTS);
    }

Internally uses Galen Specs Language to check that URL text StartsWith or not to the given URL.As Galen relies on Selenium – the text will be returned the same way it appears in a real browser (e.g. white space is ignored).

text starts - element should start with expected text


assertTitleIEndsWith

Description: This function will validate if the title of the current page ends with the user-provided data. This function will ignore case of the user-provided data.

Input Format : @Expected text

Usage:

ObjectName Action Input Condition Reference
Object assertTitleIEndsWith @value PageName << Hardcoded Input
Object assertTitleIEndsWith Sheet:Column PageName << Input from Datasheet
Object assertTitleIEndsWith %dynamicVar% PageName <<Input from variable

Inputs in the Input column can be either hardcoded (in this case the data is preceded by a "@"), passed from the data sheet (datasheet name : column name) or passed from a variable value (%variable name%), as given in the above example.

 @Action(object = ObjectType.BROWSER, desc ="Assert if Browser's Title EndsWith [Ignorecase] [<Data>]", input =InputType.YES)
    public void assertTitleIEndsWith() {
        assertTitleI(SpecText.Type.ENDS);
    }

Internally uses Galen Specs Language to check that URL text EndsWith or not to the given URL.As Galen relies on Selenium – the text will be returned the same way it appears in a real browser (e.g. white space is ignored).

text ends - element should end with expected text