selenium - Looking to validate the presence of a hidden tag with the HTML source -


i'm looking validate (hidden) tag, nothing javascript, in webpage. tag present , visible, in page source. have used selenium's selenium.gethtmlsource(); command before. however, time around need assert presence of absence of tag, without unnecessarily having slice , dice source.

any ideas? thanks.

consider using jquery this. example like:

if ($("#hidden_tag_id")) {   ... } 

should it.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -