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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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