LoginSignup
6
4

More than 5 years have passed since last update.

seleniumのデバッグ方法

Last updated at Posted at 2015-07-28

webelementのデバッグ方法

debug.py
from selenium import webdriver
driver = webdriver.Firefox()
body = driver.find_element_by_tag_name("body")
# bodyの中身を出力したい場合
print body.get_attribute("outerHTML")
6
4
0

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
6
4