blueprintmrk / selenium-vba

Automatically exported from code.google.com/p/selenium-vba
0 stars 0 forks source link

find element by Partial ID #166

Open vuongmanhcuong opened 9 years ago

vuongmanhcuong commented 9 years ago

Dear All, I'd like to locate the elements in below web : http://tphcm.gdt.gov.vn/wps/portal/!ut/p/b1/04_Sj9Q1MTU2MDQzMjLTj9CPykssy0xPLMnMz0vMAfGjzOINTCw9fSzCgv29XJzMDTxdg3wdzd0tjQyMDIEKIkEKcABHA0L6w_Wj0JRY-hsYePqEmLoFm7kYWTgZwRTgtsLPIz83VT83KsfSU9dREQDwNR3X/dl4/d5/L2dBISEvZ0FBIS9nQSEh/ image

but Id of these elements is unpredictable, so i can not loop through them. //[@id="d3d6b938-b714-4917-a636-fc942c5444da"]/div[1]/span[1]/a //[@id="78274086-1113-4055-a65b-9c215d160fdd"]/a //[@id="ad106003-1a83-43e1-807e-cce2e1b4df53"]/a ... I try to use selenium.findElementByCssSelector ("[id=-]") and get error Could you let me know how can i locate the element. Thank you.