컴퓨터/Python

python innerHTML과 outerHTML 차이 driver.find_element_by_xpath('//*').get_attribute('outerHTML')

풍경소리^^ 2020. 10. 25. 18:42

na27.tistory.com/226

 

innerHTML과 outerHTML 차이

innerHTML과 outerHTML 차이 innerHTML innerHTML에서 지정한 요소 태그를 제외한 안쪽 태그만 값을 가져온다 자기자신 미포함 outerHTML outerHTML에서 지정한 요소 태그도 포함하여 값을 가져오고 선택한 엘리

na27.tistory.com

lottogame.tistory.com/746

 

Python을 사용하여 Selenium WebDriver에서 WebElement의 HTML 소스 가져 오기

Python을 사용하여 Selenium WebDriver에서 WebElement의 HTML 소스 가져 오기 Selenium WebDriver를 실행하기 위해 Python 바인딩을 사용하고 있습니다. from selenium import webdriver wd = webdriver.Firefox(..

lottogame.tistory.com

python driver.find_element_by_xpath('//*').get_attribute('outerHTML')

'컴퓨터 > Python' 카테고리의 다른 글

fiddler  (0) 2020.10.27
python 아마존 bestsellers?ld=NSGoogle  (0) 2020.10.26
python youtube 관련 검색어 수집하기  (0) 2020.10.25
python time.sleep random  (0) 2020.10.21
python pyside2 qtdesigner 설치  (0) 2020.10.19