Comparing data with the data in excel sheet using Selenium Webdriver

+2 votes
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
• 140 points
3,324 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

+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,850 points
393 views
+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
5,840 views
+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,600 points
3,130 views
+2 votes
0 answers
+1 vote
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,600 points
1,682 views
+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
612 views
+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
424 views
+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,170 points
2,173 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP