2017年10月1日 星期日

How to get html elements with multiple css classes

The expression you're looking for is:
//div[contains(@class, 'class1') and contains(@class, 'class2')]
I highly suggest XPath visualizer, which can help you debug xpath expressions easily. It can be found here:

from : https://stackoverflow.com/questions/3881044/how-to-get-html-elements-with-multiple-css-classes

沒有留言:

wibiya widget