Capture current JSF page content

后端 未结 4 1558
孤城傲影
孤城傲影 2021-01-25 05:37

I want to capture the current page and send it to an application that converts it to pdf.

This is what I am using:

FacesContext facesContext=FacesContext         


        
4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-25 06:08

    I do not know how to capture the page's content using the current user's session, but I can suggest another way to do it - you could move the pdf conversion logic inside a Selenium test-case and use the test-case to navigate and login to the page requiring authentication. After the automated tc has logged in, you could call your pdf conversion logic...?

提交回复
热议问题