mardi 2 octobre 2018

React Grid table parsing with java and selenium

How can I parse the following to use individual objects every row?

Here is the react grid table:

|Name |Age| |John Smits|52 |

<div class="Grid">
    <div class="GridRow">
        <div class="GridCell">Name</div>
        <div class="GridCell">Age</div>
    <div class="Grid__Content">
        <div class="GridRow">
            <div class="GridCell">John Smith</div>
            <div class="GridCell">52</div>
</div>

I'd like to use something like that: table.getName(String) or getAge(int)

So No array, no position, just getters. I used to use webtable parser, but the structure was totally different tbody thead tr td, which is easier to use.

Any help, sample code would be appreciated.

Aucun commentaire:

Enregistrer un commentaire