FindByCssSelector

21 views
Skip to first unread message

Richard

unread,
May 16, 2014, 11:52:16 AM5/16/14
to subs...@googlegroups.com
Hi,

I was going to add my own step implementation for FindByCssSelector, only to realise that # is used for comments (and therefore I can't select something like #modal-dialog .close-button). I guess there's nothing I can do about that?

Kind regards,
Richard

Ian Moore

unread,
May 19, 2014, 6:04:01 AM5/19/14
to subs...@googlegroups.com
Hi Richard,

You can put # in quotes and it will be treated as a literal, although the eclipse plugin highlighting appears to comment out the rest of the line, so I think you should be able to define a substep as

Define: FIndByCss "<selector>"
      ...... <selector>

I think we should incorporate that into the core webdriver substeps to be honest....

Hope that helps
Ian
Reply all
Reply to author
Forward
0 new messages