<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chiheisen</author_name>
  <author_url>https://blog.hatena.ne.jp/chiheisen/</author_url>
  <blog_title>地平線に行く</blog_title>
  <blog_url>https://yujisoftware.hatenablog.com/</blog_url>
  <categories>
    <anon>Selenium</anon>
  </categories>
  <description>先日、↓これを使ってブラウザからサーバにファイルをアップロードするという画面を作っていました。 作るまではよかったんですが、それを SeleniumRC でテストしようと思ったら・・・ファイル欄の操作はできないそうです(Selenium Core FAQ - Selenium - OpenQA Wiki) Firefoxならできるとのことですが、テストしたいブラウザはIE6/7/8。 しょうがないので、こんな力技で突破しました。 /** * ファイル入力欄(input[@type=file])に、アップロードファイルを設定します。 * このメソッドは、IE6/7でのみ実行できます。 * 実行中…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyujisoftware.hatenablog.com%2Fentry%2F20101220%2F1292859178&quot; title=&quot;input type=file 欄を、Selenium で操作する (IE6/7限定) - 地平線に行く&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-12-20 00:32:58</published>
  <title>input type=file 欄を、Selenium で操作する (IE6/7限定)</title>
  <type>rich</type>
  <url>https://yujisoftware.hatenablog.com/entry/20101220/1292859178</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
