OXYGEN
HomeGitHubReleasesCommunity
  • Welcome to Oxygen
  • About
    • What is Oxygen?
    • Getting Started (Videos)
      • Oxygen IDE Controls Overview
      • Recording a Web Test
      • Oxygen Commands Explained
    • Getting help
  • Download and work with Oxygen
    • Download & Installation
      • Oxygen IDE Installation
      • Oxygen for Mobile Installation
      • Oxygen for Windows Desktop Automation Setup
      • Oxygen for Mac Installation
        • Mac Installation Troubleshooting
      • Oxygen CLI Installation
      • Java Installation Instructions
      • Recording Troubleshooting
    • Start working with Oxygen
      • Getting Started - Web
        • Introduction - Web Testing
        • Recording a Web Test
        • Creating a Web Test
        • Sample Project - Web Test
      • Getting Started - Mobile
        • Introduction - Mobile Testing
        • Recording a Test on Mobile
        • Creating a Test - Mobile
        • Sample Project - Mobile
      • Getting Started - Oxygen for Windows Desktop Automation
      • Getting Started- Oxyge CLI
        • Running a Test Script on Windows
        • Running Multiple Tests (Suites) on Windows
    • Oxygen Modules
      • assert
      • date
      • db
      • email
      • eyes
      • http
      • log
      • mailinator
      • mob
      • pdf
      • proxy
      • serial
      • shell
      • soap
      • twilio
      • utils
      • web
      • win
    • Test Parameters
  • Cloud Providers
    • Sauce Labs
    • Lambda Test
    • TestObject
  • Advanced programming in Oxygen
    • Project Configuration
    • Locating Elements
    • Page Objects
    • Environments
    • Code Components
Powered by GitBook
On this page
  • assert
  • assertNot
  • count

Was this helpful?

  1. Download and work with Oxygen
  2. Oxygen Modules

pdf

Provides generic methods for working with PDF files.

assert

Asserts that text is present in a PDF file

Parameters:

Name

Type

Description

pdfFilePath

String

Relative or absolute path to the PDF file.

text

String

Text to assert.

pageNum

Number

optional Page number.

message

String

optional Message to throw if assertion fails.

reverse

Boolean

optional Check also reverse variant of string.

assertNot

Asserts that text is not present in a PDF file

Parameters:

Name

Type

Description

pdfFilePath

String

Relative or absolute path to the pdf file.

text

String

Text to assert.

pageNum

Number

optional Page number.

message

String

optional Message to throw if assertion fails.

reverse

Boolean

optional Check also reverse variant of string.

count

Count the number of times specified text is present in a PDF file.

Parameters:

Name

Type

Description

pdfFilePath

String

Relative or absolute path to the pdf file.

text

String

Text to count.

pageNum

Number

optional Page number.

reverse

Boolean

optional Check also reverse variant of string.

Returns:

Number - Number of times the specified text was found.

PreviousmobNextproxy

Last updated 3 years ago

Was this helpful?