使用SeleniumJava读取表数据

使用SeleniumJava读取表数据,java,selenium,Java,Selenium,我试着搜索这个,并尝试了在这里找到的多种解决方案。但到目前为止,一切都不起作用 我试图从中获取数据的表是在页面中输入内容后创建的。然后站点从我输入的内容中提取数据并创建一个表。我遇到了让驱动程序等待表可见的问题,因为它找不到元素 这里有一些html <table id="products"> <thead> <tbody> <tr class="template subheading-template subheading draggable

我试着搜索这个,并尝试了在这里找到的多种解决方案。但到目前为止,一切都不起作用

我试图从中获取数据的表是在页面中输入内容后创建的。然后站点从我输入的内容中提取数据并创建一个表。我遇到了让驱动程序等待表可见的问题,因为它找不到元素

这里有一些html

<table id="products">
 <thead>
  <tbody>
   <tr class="template subheading-template subheading draggable removeable">
   <tr class="template spec-template draggable product removeable odd">
   <tr class="components hide modify">
   <tr class="draggable product removeable even" data-id="G38180">
    <td class="drag"/>
    <td>
    <td class="cell-gpn">G38180</td>
    <td class="cell-rpn">0729151158PROD2</td>
    <td class="cell-1 editable">
    <td class="cell-2 editable">
    <td class="cell-3 editable">
    <td class="cell-4 editable">
桌子在哪里

@FindBy(xpath = "//table[@id='products']")
public WebElement relatedProductsTableRows;
@FindBy(xpath = "//table[@id='products']")
public WebElement relatedProductsTableRows;