Commit 8098a61b authored by Benjamin Blanc's avatar Benjamin Blanc

testbrowser: browser: Fix xpath in getListboxControl

xpath expression is modified, <tbody> is add to the filter
expression in order to do not follow any <tr> found inside <thead>.
parent 9c6013a5
...@@ -1160,7 +1160,7 @@ class ContextMainForm(MainForm): ...@@ -1160,7 +1160,7 @@ class ContextMainForm(MainForm):
column_type = 'td' column_type = 'td'
xpath_str = '%s//tr[%d]//%s[%d]/*[not(@type="hidden") and ' \ xpath_str = '%s//tbody//tr[%d]//%s[%d]/*[not(@type="hidden") and ' \
'not(contains(@class, "hidden"))][%d]' % \ 'not(contains(@class, "hidden"))][%d]' % \
(listbox_basic_xpath_str, (listbox_basic_xpath_str,
relative_line_number, relative_line_number,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment