The following xpath selects siblings of selected context. But I'm confused about the following xpath expression:
xpath://h2[contains(text(),'A few of our most popular courses')]/parent::div//div[//a[text()='SELENIUM']]/following-sibling::div[@class='rt-grid-2 rt-omega']
Question: Why this expression is boxed inside div?
Expression from above:
a[text()='SELENIUM'] boxed inside
div. If I'm omitting the box and re-write as follows, it's not identifying the objects.
Full code of the above can be viewed on Guru99 site.