In the first example, we are going to find a button and then find its sibling. In this example, the query that we will generate is equivalent to
//input[@value='Button with ID']. Place that into Selenium IDE Target textbox and see which element it highlights.
following-siblingthat we need. Our locator will look like
//input[@value='Button with ID']/following-sibling::input[@value='Sibling Button']and if it was placed ...