Check that the hide-if-contains snippet is working as expected.
Test that basic usage of the snippet works as expected against a static target.
hic-basic-static
Failed. Element is not hidden.
abptestpages.org#$#hide-if-contains 'hic-basic-static' p[id]
Test that basic usage of the snippet works as expected against a dynamic target.
abptestpages.org#$#hide-if-contains 'hic-basic-dynamic' p[id]
Test that usage of the snippet with the search parameter works as expected.
abptestpages.org#$#hide-if-contains 'hic-search' p[id] .target
Test that usage of the snippet with regex works as expected.
hic-regex-1
Should not be hidden
hic-regex-1
Should not be hidden
hic-regex-2
Failed. Element is not hidden.
hic-regex-3
Failed. Element is not hidden.
abptestpages.org#$#hide-if-contains /hic-regex-[2-3]/ p[id]
Test that usage of the snippet in a frame works as expected.
abptestpages.org#$#hide-if-contains hidden span#frame-target