Comparing data with the data in excel sheet using Selenium Webdriver

+1 vote
Hello,

I have written a code for registration using Data Driven Framework, and inside the main method I have written 'IF-ELSE' loop but, I am not able to write logic for comparing the email ID which I have used for registration and the data which is mentioned in excel sheet. So I want help in developing logic for writing code as mentioned:
1. I want to compare email id which I have used for registration purpose with the data in my excel sheet. If both email ID matches then it should go to the 'ELSE' loop and proceed with the login. Otherwise, it should go inside 'FOR' loop and do the registration where I have called the registration method.

If anyone is able to help me that would be of great help.

Thanks in advance.

Best Regards,
Kunal
Apr 9, 2020 in Software Testing by Kunal
• 130 points
1,961 views

Hey, @kunal,

I would suggest you go through this: https://www.edureka.co/community/45605/how-can-we-read-data-from-an-excel-sheet-in-selenium-webdriver

I hope this will be helpful

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Software Testing

0 votes
1 answer

Data driven test through Ms Excel is not entering the values properly in to the app only 1 is entering

Hi, @Faha, Chromedriver version should be shown in ...READ MORE

answered Oct 28, 2020 in Software Testing by Gitika
• 65,870 points
185 views
+1 vote
2 answers

How to read data in Robot framework from excel file.

You can try run "py –m pip ...READ MORE

answered May 19, 2020 in Software Testing by anonymous
3,467 views
0 votes
1 answer

How can i bypass login in Selenium webdriver?

Hey @Pranish, here's a method that uses ...READ MORE

answered Aug 11, 2020 in Software Testing by Karan
• 19,610 points
1,401 views
+1 vote
0 answers
0 votes
1 answer

Selenium webdriver in java how to automate email verification ?

Hey @Manali, check this out https://blog.mailtrap.io/selenium-email-ve ...READ MORE

answered Oct 19, 2020 in Software Testing by Karan
• 19,610 points
438 views
0 votes
0 answers

Write Assert fail differences to Excel or text file, Selenium C#

I am using selenium  with C# I have ...READ MORE

Feb 27, 2020 in Software Testing by Etl
• 160 points
401 views
0 votes
0 answers

Selenium Driver.Pageload() is not working in safari browser

Am trying to wait tll page loads ...READ MORE

Jun 20, 2020 in Software Testing by Kumar
• 120 points
263 views
0 votes
1 answer
0 votes
1 answer

Select a row in AG-grid through selenium c# ..?

For every angular grid, angular generates the ...READ MORE

answered Jul 7, 2020 in Software Testing by Sirajul
• 59,050 points
1,042 views