Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7742403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:16:01+00:00 2026-06-01T09:16:01+00:00

I need to perform data validation of two tables using Selenium . Given a

  • 0

I need to perform data validation of two tables using Selenium.

Given a properly marked-up HTML table filled with data:

<table>
    <tbody>
        <tr>
            <td>A</td>
            <td>B</td>
            <td>C</td>
        </tr>

        <tr>
            <td>1</td>
            <td>2</td>
            <td>3</td>
        </tr>
    </tbody>
</table>

And I want to “deserialize” this table (gather its data) into a bi-dimensional array (String[][]) using Selenium. The reason I want to do so is that I have another HTML table (on the other web-page) that contains supposedly the same data stored in it – and I need to perform data validation between those two tables.

I have tried lots of options on how to solve this problem, and iterative cell-by-cell data gathering (locating cells either using the getTable() or getText() methods) is not one of them – since it takes enormous amounts of time to complete a big table on an overloaded web-page.

JavaScript injection (using the getEval() method) is not available in my case since the table resides in an <iframe> that has an origin (base URL) that differs from the one of the main page. And according to same origin policy this cannot be performed.

Guys, any idea on how to solve the given problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T09:16:03+00:00Added an answer on June 1, 2026 at 9:16 am

    You could use JAXB to deserialize the HTML text into plain java object hierarchy and then construct a 2D array from those objects.

    Another option: parse the text as XML into a org.w3c.dom.Document and use XPath in Java to find and iterate over the elements.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to perform normalization on data structure. I have one table with lots
I need to perform a search in two different data structures in C#, and
I need to perform update/insert simultaneously changing structure of incoming data. Think about Shops
I'm developing an application through Core Data and I need to perform some calculation
I need to perform a find and replace using XSLT 1.0 which is really
I need to perform operations on Lua tables from C where the tables are
I need to perform the following task : There are two 'ul' elements containing
I need to perform a comparison between two XML documents. I've been looking at
I am using jQuery and in order to perform dynamic computations I need to
I need to perform the following on MySQL/InnoDB. Assume I have a table consists

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.