使用selenium前學習HTML(2) 標籤

2022-06-28 13:21:10 字數 1050 閱讀 2434

doctype html

>

<

html

lang

="en"

>

<

head

>

<

meta

charset

="utf-8"

>

<

title

>title

title

>

head

>

<

body

>

<

h1> this is a heading

h1>

<

h2>這是乙個標題

h2>

<

h3>這還是乙個標題

h3>

<

h4>this is heading 4

h4>

<

h5>this is heading 5

h5>

<

h6>this is heading 6

h6>

<

p>請僅僅把標題標籤用於標題文字。不要僅僅為了產生粗體文字而使用它們。請使用其它標籤或 css 代替。

p>

<

p>this is a paragraph.

p>

<

p>this is another paragraph.

p>

<

p>段落元素由 p 標籤定義。

參考:/html/html_basic.asp

使用RestTemplate呼叫外部Http介面

使用resttemplate呼叫外部http介面 我們使用resttemplate呼叫外部介面,resttemplate可以自動轉換實體類和json字串,這樣便於我們呼叫介面。通常我們得到乙個外部介面,會告訴我們請求報文和響應報文。例如 這樣在轉換時,就會自動將companyreqheader轉換為...

selenium基本使用

coding utf 8 author wang selenium 是乙個用於對web網頁進行自動測試的工具,可以通過它提供的一些方法自動操作 瀏覽器,可以完全模擬人的操作 seleniumpython爬蟲中的應用 1.獲取動態網頁中的資料,一些動態的資料在我們獲取的原始碼中並沒有顯示的這一類動態載...

Selenium 使用介紹

chromedriver selenium from selenium import webdriver executable path chromedriver driver webdriver.chrome executable path executable path 獲取所有的frame f...