Can anyone help me with Zomato login test script using Python Selenium Webdriver

0 votes
Can anyone help me with Zomato login test script using Python Selenium Webdriver?
Jul 29, 2019 in Selenium by Laxmikant
1,833 views

1 answer to this question.

0 votes

Hi Laxmikant, if you want to write an automation test script to test Zomato's login functionality, you can use following sample code for the help:

from selenium import webdriver
import time

browser = webdriver.Chrome("C:\Program Files (x86)\Google\Chrome\chromedriver.exe")

browser.maximize_window()

browser.get('https://www.zomato.com / ncr')

time.sleep(3)

username = "test"
password = "test"
browser.find_element_by_xpath("//a[@id ='signin-link']").click()
time.sleep(2)

browser.find_element_by_xpath("//a[@id ='login-email']").click()

user = browser.find_element_by_xpath("//input[@id ='ld-email']")
user.send_keys(username)

pass = browser.find_element_by_xpath("//input[@id ='ld-password']")
pass.send_keys(password)

browser.find_element_by_xpath("//input[@id ='ld-submit-global']").click()

print('Login Successful')
browser.close()
answered Jul 29, 2019 by Anvi
• 14,150 points

Related Questions In Selenium

0 votes
2 answers

Can anyone help me that how to run Selenium WebDriver test cases in Chrome?

You first need to download chrome driver ...READ MORE

answered Aug 26, 2019 in Selenium by Abha
• 28,140 points
1,655 views
0 votes
1 answer
0 votes
1 answer

Please help me with automation script for testing Carousel Rotation with Selenium Webdriver.

Hey Hussain, you can use following lines ...READ MORE

answered Aug 14, 2019 in Selenium by Abha
• 28,140 points

edited Jul 19, 2023 by Khan Sarfaraz 4,421 views
0 votes
1 answer

Installing Selenium Webdriver with Python package

Hey Hemant, for installing Selenium Webdriver with ...READ MORE

answered May 8, 2019 in Selenium by Anvi
• 14,150 points
15,122 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
12,579 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
8,559 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,910 points
6,606 views
+1 vote
1 answer

Can I get meta-description of a webpage using selenium webdriver with python?

Hi Arpit, you can use this code ...READ MORE

answered Jul 31, 2019 in Selenium by Anvi
• 14,150 points
3,520 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP