Comparing data with the data in excel sheet using Selenium Webdriver

+2 votes

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,
Apr 9, 2020 in Software Testing by Kunal
• 140 points

Hey, @kunal,

I would suggest you go through this:

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

+1 vote
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,950 points
+2 votes
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
+1 vote
1 answer

How can i bypass login in Selenium webdriver?

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

answered Aug 12, 2020 in Software Testing by Karan
• 19,620 points
+2 votes
0 answers
+1 vote
1 answer

Selenium webdriver in java how to automate email verification ?

Hey @Manali, check this out ...READ MORE

answered Oct 19, 2020 in Software Testing by Karan
• 19,620 points
+1 vote
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
• 170 points
+1 vote
0 answers

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

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

Jun 21, 2020 in Software Testing by Kumar
• 130 points
+1 vote
1 answer
+1 vote
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,070 points