How do we pass parameter by using arrylist through dataprovider

EX: public void Create_Acct(String FirstName,String LastName,String Mobileno,String Age,String Gender,String Addrs,String Pincode)

{

driver.findElement(By.xpath(“”)).sendKe?ys(FirstName);

driver.findElement(By.xpath(“”)).sendKe?ys( LastName);

driver.findElement(By.xpath(“”)).sendKe?ys(Mobileno);

driver.findElement(By.xpath(“”)).sendKe?ys(Age);

driver.findElement(By.xpath(“”)).sendKe?ys(Gender);

driver.findElement(By.xpath(“”)).sendKe?ys(Addrs);

driver.findElement(By.xpath(“”)).sendKe?ys(Pincode);

}

can we pass the parameters  through arrylist or String List..

Please give me suggestion…

Default Asked on January 29, 2018 in Selenium WebDriver.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.