Selenium 2: Detect content type of link destinations

后端 未结 3 1959
猫巷女王i
猫巷女王i 2021-01-15 19:16

I am using the Selenium 2 Java API to interact with web pages. My question is: How can i detect the content type of link destinations?

Basically, this is the backgro

3条回答
  •  天涯浪人
    2021-01-15 19:53

    You can figure out the content type will processing the data coming in. Not sure why you need to figure this out first. If so, use the HEAD method and look at the Content-Type header.

提交回复
热议问题