Is there a CSS selector for elements containing certain text?

后端 未结 18 2367
别跟我提以往
别跟我提以往 2020-11-21 04:26

I am looking for a CSS selector for the following table:

Peter    | male    | 34
Susanne  | female  | 12

Is there any selector to match all

18条回答
  •  一向
    一向 (楼主)
    2020-11-21 05:04

    The syntax of this question looks like Robot Framework syntax. In this case, although there is no css selector that you can use for contains, there is a SeleniumLibrary keyword that you can use instead. The Wait Until Element Contains.

    Example:

    Wait Until Element Contains  | ${element} | ${contains}
    Wait Until Element Contains  |  td | male
    

提交回复
热议问题