返回列表 上一主題 發帖

[分享] 轉換ie物件語法為Selenium(chrome) ?

回復 14# t8899


Sub test2()
    Set driver = CreateObject("Selenium.ChromeDriver")
    driver.Get "https://mis.taifex.com.tw/futures/disclaimer/"
    driver.findelementbyxpath("//*[@id=""content""]/main/div[2]/div[2]/button[1]").Click
End Sub

TOP

回復 11# t8899

xpath 可以直接 copy, 不用一個一個找.

TOP

        靜思自在 : 改變自己是自救,影響別人是救人。
返回列表 上一主題