Here is a snapshot of my page under test:
<div class="menubox1">
<table class="menubox1box1">
<tbody>
<tr class="menubox2">
<td class="menubox22">
<table class="menubox221">
<tbody>
<tr>
<td class="menubox2211" id="tdMenuBar">
<table id="tblMenuBar">
<tbody>
<tr id="mytr">
<>
<div id="divMenu">
I have to access the div using xpath but there is an empty node just above it. How should I handle such empty nodes?
I tried framing this: By.xpath("//*[@class=\"menubox1\"]/table/tbody/tr/td/table/tbody//div")
It failed to identify the element. Am I missing something here?