How to find the total number of rows in a nested table using xpath?

I guess your target HTML has a <iframe>, doesn’t it?

If you want to select a HTML element inside <iframe> you need to switch context into the document inside the <iframe> by