HOW CAN I CLICK ON XPATH

Get help with using AutoHotkey and its commands and hotkeys
User avatar
rizwan4season
Posts: 11
Joined: 13 Nov 2020, 08:37

HOW CAN I CLICK ON XPATH

26 Dec 2020, 01:24

driver.findElementByID("ctl00_ContentPlaceHolder2_dgSubmitted_ctl02_lbPrint").Click
Driver_Wait(driver_load)
driver := ChromeGet()
;MsgBox, % driver.Window.Title "`n" driver.Url
driver.findElementByID("IconImg_rptViewer1_toptoolbar_export").Click

;==============================================================
xpath=//td/div/table/tbody/tr/td/table/tbody/tr/td[2]/div ;here how Can i Click
;==============================================================
User avatar
Xtra
Posts: 2048
Joined: 02 Oct 2015, 12:15

Re: HOW CAN I CLICK ON XPATH

26 Dec 2020, 01:32

Example:

Code: Select all

driver.FindElementByXPath("//td/div/table/tbody/tr/td/table/tbody/tr/td[2]/div").Click
User avatar
rizwan4season
Posts: 11
Joined: 13 Nov 2020, 08:37

Re: HOW CAN I CLICK ON XPATH

26 Dec 2020, 01:51

THANKS IT'S WORKING.................!

Return to “Ask For Help”

Who is online

Users browsing this forum: boiler, LeonAskin, Sandervdb, wineguy, yoooooo and 60 guests