Is there any way I can use "or" in css selector like we use in Xpaths? I need to extract titles from certain pages. In some pages title will be in h3 tag and in some pages it will be h4.
I tried the following code, it didnt return anything.
$('h3[class="toUpper"] or h4[class="bold"]').text().trim()