在CSS3中使用什么代替CONTAINS() [英] What to use instead of CONTAINS() in CSS3
本文介绍了在CSS3中使用什么代替CONTAINS()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有关自动化的问题.我使用Selenium RC.
Question about automation. I use Selenium RC.
我将FF升级到3.6.18,看来里面找不到任何包含"contains()"的定位器
I upgraded my FF to 3.6.18 and it seems that it can't find any locators which have "contains()" inside
我已经阅读了很多论坛.这是一个已知的问题,但是我没有找到任何解决方案.
I've read alot of forums. It's a known problem, but I did not find any solution.
那现在用什么代替而不是contains()?
So what to use instead of contains() now?
推荐答案
CSS中唯一与 contains()类似的功能是:
The only functionality in CSS which is similar to contains() is:
element[attribute*="substring"]
当您需要检查属性中包含的一些子字符串时,这很有用.
It is helpful when you need to check some substring which contains in the attribute.
这篇关于在CSS3中使用什么代替CONTAINS()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文