You can do it externally outside Selenium. Like with file downloads.
Extract Selenium cookies for session state if needed, then pass that
to HTTP request library (in your language) then make HTTP call to
request the file. Get the response and check the content-type header
there. This is all done outside Selenium, with only integration point
being passing along Selenium cookies if needed.
On Sep 6, 4:52 am, Johannes Koch <
johannes.k...@gmail.com> wrote:
> Hi Daniel,
>
> I would like to know, if a file that is beeing returned is correct the type
> "PDF" or not.
>
> How can I do that?
>
> thanks
> johannes
>
>
>
>
>
>
>
> On Tuesday, December 15, 2009 6:31:10 PM UTC+1, Daniel Wagner-Hall wrote:
>
> > On Tue, Dec 15, 2009 at 3:55 PM, TimM <
365...@gmail.com <javascript:>>