I am trying to parse an online file through automation testing in selenium webdriver ruby.I tried to do according to this url " http://blog.bitcrowd.net/test-rails-pdf-output-with-cucumber/ ".
I get an error in this line
reader = PDF::Reader.new(StringIO.new(page.source))
It shows PDF does not contain EOF marker (PDF::Reader::MalformedPDFError)
I do not use capybara gem, so I can not use page.source instead of using driver.page_source . I would like to know if there is an equivalent method in selenium wedriver ruby as page.source
source share