How can I match on an attribute that contains a certain string?

后端 未结 10 1963
一整个雨季
一整个雨季 2020-11-22 03:14

I am having a problem selecting nodes by attribute when the attributes contains more than one word. For example:

10条回答
  •  甜味超标
    2020-11-22 03:55

    For the links which contains common url have to console in a variable. Then attempt it sequentially.

    webelements allLinks=driver.findelements(By.xpath("//a[contains(@href,'http://122.11.38.214/dl/appdl/application/apk')]"));
    int linkCount=allLinks.length();
    for(int i=0; 

提交回复
热议问题