2

I have written a script which reads data from excel file and I use sendKeys method to input that data to textbox. Now I want to append/concatenate data after reading from excel and than resultant string I want to send as input to textbox using selenium webdriver following is code snippet

following code read data as "john" I want to append "[email protected]" after reading from excel and want to send it as input to textbox for "FName"

driver.findElement(By.xpath(".//*[@id='accountName']")).sendKeys(objExcel.getCellData("FName", i));
asked Apr 7, 2016 at 19:49

1 Answer 1

1
sendKeys(objExcel.getCellData("Fname",i) + "@example.com");

Hope I understood your question correctly (just wondering).

answered Apr 8, 2016 at 2:38
1
  • yes I've already managed to do it on my own, however thank you for your response! Commented Apr 8, 2016 at 10:46

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.