trying to handle webtable in POM using pagefactory but error is thrown : <p><strong>strong text</strong>I was trying to handle webtable in POM using pagefactory but its throwing error </p>

<p>if i try nto paste xpath directly but otherwise its not working</p>

<pre><code> @FindBy (xpath = "//table[@id='userTable']/tbody/tr[")
     WebElement before_xpath;

     @FindBy (xpath = "]/td[2]")
     WebElement after_xpath;



     @FindBy (xpath = "//table[@id='userTable']/tbody/tr")
     List&lt;WebElement&gt; namelist;



     //Intialising PageObjects

     public users_page() {

         PageFactory.initElements(driver, this);


     }


     //Actions


  public void userlist(String nm, String un, String pw, String cpw, String hub) {


        List&lt;WebElement&gt; row =namelist;
           int row_count = row.size();
         System.out.println("Total no of rows " +row_count);

             for(int i=1;i&lt;row_count;i++) {


             WebElement actual_xpath = before_xpath +i +actual_xpath;
             System.out.println("Total  " +actual_xpath);

  }

  }}
</code></pre>

<p>It is throwing error on  WebElement actual_xpath = before_xpath +i +actual_xpath;.</p>

<p>its showing  The operator + is undefined for the argument type(s) WebElement, int</p>

<p>so hw i can handle this </p>
