I'm working with RobotFramework and trying to get the number of elements matching 'xpath'.
${count}= Get Matching Xpath Count //*[@id="alertForm:alertDetailTabSet:0:neTable:tbody"]/tr
The 'xpath' must be correct. When I search by xpath on the website, it finds me 18 elements what's ok. When I start the test and then look at log output ${count} equals zero. It should be also eighteen.
Does anyone know what's wrong? Thanks in advance !!!
Have you tried with Get Count
?
${count} Get Count ${YourXpath}
log ${count}