• // : Select current node.
  • Tagname: Tagname of the particular node.
  • @: Select attribute.
  • Attribute: Attribute name of the node.
  • Value: Value of the attribute.
from selenium.webdriver.common.by import By

Xpath=//tagname[@attribute='value']
Xpath=//input[@name='uid']
Xpath=//input[@type='text']                             
Xpath=  //label[@id='message23']
Xpath=  //input[@value='RESET']
Xpath=//*[@class='barone']
Xpath=//a[@href='http://demo.guru99.com/']
Xpath= //img[@src='//guru99.com/images/home/java.png']
Xpath=//*[contains(@type,'sub')]
Xpath=//*[contains(@name,'btn')]
Xpath=//*[contains(@id,'message')]Xpath=//*[contains(text(),'here')]
Xpath=//*[contains(@href,'guru99.com')]
Xpath=//*[@type='submit' or @name='btnReset']
Xpath=//input[@type='submit' and @name='btnLogin']
Xpath=//label[starts-with(@id,'message')]
Xpath=//td[text()='UserID']
Xpath=//*[@type='text']//following::input
Xpath=//*[@type='text']//following::input[1]
Xpath=//*[text()='Enterprise Testing']//ancestor::div
Xpath=//*[text()='Enterprise Testing']//ancestor::div[1]
Xpath=//*[@id='java_technologies']//child::li
Xpath=//*[@id='java_technologies']//child::li[1]
Xpath=//*[@type='submit']//preceding::input
Xpath=//*[@type='submit']//preceding::input[1] 
xpath=//*[@type='submit']//following-sibling::input
Xpath=//*[@id='rt-feature']//parent::div
Xpath=//*[@id='rt-feature']//parent::div[1]
Xpath =//*[@type='password']//self::input
Xpath=//*[@id='rt-feature']//descendant::a
Xpath=//*[@id='rt-feature']//descendant::a[1]

 

 

  • Using class_name:

MonkeyJ 發表在 痞客邦 留言(0) 人氣()

這系列圖片一次100張要改名
一張一張手動改費時傷神
用python 3秒搞定
文章標籤

MonkeyJ 發表在 痞客邦 留言(0) 人氣()

fn+shift+delete  => insert
fn+delete


MonkeyJ 發表在 痞客邦 留言(0) 人氣()

rm -r d:/<file path>
rm -r d:/<file path>
rm -r d:/<file path>

MonkeyJ 發表在 痞客邦 留言(0) 人氣()

image

希望自己是熱門新項目的早期參與者 ?

Yolotter 是一個由 10,000 個最精緻的手繪水獺 NFT 組成的集合,

文章標籤

MonkeyJ 發表在 痞客邦 留言(4) 人氣()

imageimage

 

2020.12.26 更新:

文章標籤

MonkeyJ 發表在 痞客邦 留言(0) 人氣()

  幫你省手續費相關文章  

推薦文章 => ETH手續費好貴?! 這個時段交易竟然省超過50% GAS FEE手續費 | TXSTREET、 ETHERSCAN觀察及時GWEI變化幫助節省以太鏈礦工費用

文章標籤

MonkeyJ 發表在 痞客邦 留言(0) 人氣()

Goons of Balatroon
 
  Goons of Balatroon 遊戲卡包  
文章標籤

MonkeyJ 發表在 痞客邦 留言(0) 人氣()

google pagespeed 工具 => 點擊前往

可以獲得效能分數跟最佳化建議

image

文章標籤

MonkeyJ 發表在 痞客邦 留言(0) 人氣()

一張圖勝過千言萬語
image


文章標籤

MonkeyJ 發表在 痞客邦 留言(0) 人氣()