チェックは、このコードはRequestsLibrary
*** Settings ***
Library Collections
Library RequestsLibrary
*** Test Cases ***
Test Request content-type
create ntlm session github http://example.com auth=${names}
${resp}= Get Request github /files/diversification.pdf
log ${resp.headers['content-type']}
を使用して別のオプションは以下のとおりです。これが信頼できるものかどうかはわかりません。わたしにはできる。 pdfオブジェクトxpathを見つけ、タイプ属性を取得します。
*** Settings ***
Library Selenium2Library
*** Test Cases ***
Test Request content-type
Open Browser http://example.com/files/diversification.pdf ${BROWSER}
${ContentType}= Get Element Attribute xpath=//*[@id="plugin"]@type
pdfが生成されたページのURLがありません。私はPDFを生成ボタンをクリックし、次に 'url/gdf65gfd2g2fg5vcb2c2b'(例)で新しいタブを開きます。 – mirko