Within different sections of the webpage, I have utilized the following locator (excerpt from HTML):
<table id="userPlaylistTable" cellspacing="0" cellpadding="0">
<p class="title"> ABC </p>
<p class="title"> DEF </p>
<p class="title"> GHI </p>
All of the items mentioned above share identical locators. How can I concatenate them into a string like "ABC DEF GHI"?
I aim to obtain this string because these elements are part of a table and follow a specific order within it. By comparing the obtained string after rearranging their order, I can verify if the reordering has occurred.
I attempted:
se.get_text("css=table#userPlaylistTable p.title")
However, this only retrieves the text of the first element, which is "ABC".
Are there any alternative methods to obtain the ordered text in a table as described above?
If possible, could someone assist me with the process? Thank you very much. Sunny