Skip to main content
6 events
when toggle format what by license comment
Aug 24, 2011 at 21:03 comment added Cunzhi I made it very clear that there is no space around Trouble. If regexp works with css, the simplified "\sTrouble\s" should match. Try this simple HTML code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "w3.org/TR/html4/strict.dtd" > <html lang="en"> <head> <title><!-- Insert your title here --></title> </head> <body> <div class="item"> <div class="text">Trouble</div></div> </body> </html> With Selenium IDE and see the difference: click | css=div.item > div.text:contains("Trouble") click | css=div.item > div.text:contains("\s*Trouble")
S Aug 24, 2011 at 19:54 history suggested Andrey Agibalov CC BY-SA 3.0
clarified the idea
Aug 24, 2011 at 19:54 comment added Andrey Agibalov @Cunzhi: you should probably provide a minimal html code that allows reproducing the behavior you describe.
Aug 24, 2011 at 19:51 comment added Cunzhi As in my original question, Firebug does not shows there is any space around Trouble. <br> It does not work and even css=div.item > div.text:contains("\sTrouble\s") does not work either. <br> So I would suspect if css can work together with regexp.
Aug 24, 2011 at 19:50 review Suggested edits
S Aug 24, 2011 at 19:54
Aug 24, 2011 at 19:40 history answered Melena CC BY-SA 3.0