Class PDFSteps


  • public class PDFSteps
    extends java.lang.Object
    • Field Detail

      • properties

        public java.util.Properties properties
    • Constructor Detail

      • PDFSteps

        public PDFSteps()
    • Method Detail

      • i_open_pdf

        @When("^I open PDF file from (.+)$")
        public void i_open_pdf​(java.lang.String filelocation)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_open_pdf_URL

        @When("^I load PDF file from URL (.+)$")
        public void i_open_pdf_URL​(java.lang.String url)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_open_pdf_URL_from_address_bar

        @When("^I load PDF file from address bar$")
        public void i_open_pdf_URL_from_address_bar()
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_verify_term

        @When("^I verify text (.+) is present in the PDF$")
        public void i_verify_term​(java.lang.String searchterm)
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_verify_term_on_page

        @When("^I verify text (.+) is present on page (.+) in the PDF$")
        public void i_verify_term_on_page​(java.lang.String searchterm,
                                          int page,
                                          java.lang.String fieldname)
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_verify_term_between_pages

        @When("^I verify text (.+) is present between pages (.+) and (.+) in the PDF$")
        public void i_verify_term_between_pages​(java.lang.String searchterm,
                                                int start,
                                                int end,
                                                java.lang.String fieldname)
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_convert_PDF_to_HTML

        @When("^I convert PDF to HTML$")
        public void i_convert_PDF_to_HTML()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_upload_pdf_for_consumption

        @When("^I upload PDF for consumption$")
        public void i_upload_pdf_for_consumption()
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_open_converted_HTML

        @When("^I open the converted HTML from (.+)$")
        public void i_open_converted_HTML​(java.lang.String path)
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_verify_element_at_xpath

        @When("^I verify that the element at xpath (.+) is (.+)$")
        public void i_verify_element_at_xpath​(java.lang.String xpath,
                                              java.lang.String term)
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_download_and_load_pdf

        @When("^I download and load the PDF$")
        public void i_download_and_load_pdf()
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_verify_element_at_locator_path

        @When("^I verify that the element at locator path (.+) is (.+) present in the PDF file$")
        public void i_verify_element_at_locator_path​(java.lang.String locatorPath,
                                                     java.lang.String term)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • i_verify_blocks_at_locator_path

        @When("^I verify that the block elements at locator path (.+) is (.+) present in the PDF file$")
        public void i_verify_blocks_at_locator_path​(java.lang.String locatorPath,
                                                    java.lang.String term)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • i_verify_date_at_PDF_locator_path

        @When("^I verify that the PDF element at locator path (.+) in (.+) time zone in (.+) format$")
        public void i_verify_date_at_PDF_locator_path​(java.lang.String locatorPath,
                                                      java.lang.String timeZone,
                                                      java.lang.String format)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • i_verify_blocks_date_at_PDF_locator_path

        @When("^I verify that the PDF block element at locator path (.+) in (.+) time zone in (.+) format$")
        public void i_verify_blocks_date_at_PDF_locator_path​(java.lang.String locatorPath,
                                                             java.lang.String timeZone,
                                                             java.lang.String format)
                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • i_verify_blocks_Inbetween_at_locator_path

        @When("^I verify that the block elements inbetween locator path (.+) is (.+) present in the PDF file$")
        public void i_verify_blocks_Inbetween_at_locator_path​(java.lang.String locatorPath,
                                                              java.lang.String term)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • i_clear_the_pdf

        @When("^I clear the pdf$")
        public void i_clear_the_pdf()
      • i_output_pdf

        @When("^I output PDF in text format$")
        public void i_output_pdf()
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_open_the_downloaded_file

        @When("^I open first downloaded file in chrome browser$")
        public void i_open_the_downloaded_file()