LoginSignup
5

More than 5 years have passed since last update.

SeleniumでローカルのHTMLファイルを呼び出す

Posted at

driver = Selenium::WebDriver.for :firefox

driver.get('file:///呼び出したいHTMLのパス')

file:///をつけることでいけた。

参考

java - How to use selenium webdriver on local (on my pc) webpage instead of locate somwhere on www? - Stack Overflow

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5