Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 07_Form_Submit_Success.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
a) Our GUI automation guides: http://qxf2.com/gui-automation-diy
b) Other GitHub repos: https://github.com/qxf2

AUTHOR: Avinash Shetty
AUTHOR: Avinash shetty
Contact: [email protected]

SCOPE:
Expand Down
12 changes: 6 additions & 6 deletions 11_Consolidated_Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
a) Our GUI automation guides: http://qxf2.com/gui-automation-diy
b) Other GitHub repos: https://github.com/qxf2

AUTHOR: Avinash Shetty
Contact: avinash@qxf2.com
Author: Ramya
Contact: ramya.muthumohan@qxf2.com

SCOPE:
1) Launch Firefox driver
Expand All @@ -29,7 +29,7 @@
# Maximize the browser window
driver.maximize_window()
# Navigate to Qxf2 Tutorial page
driver.get("http://qxf2.com/selenium-tutorial-main")
driver.get(https://github.com/qxf2/newsletter_automation.git)

# Find the Example table element in the page
table = driver.find_element_by_xpath("//table[@name='Example Table']")
Expand All @@ -49,15 +49,15 @@
cols_data.append(cols[j].text.encode('utf-8'))
result_data.append(cols_data)
# Print the result set
print result_data
(print) result_data

# Find the name field using xpath with id
name = driver.find_element_by_xpath("//input[@id='name']")
# Send text to the name element using send_keys method
name.send_keys('Avinash')
name.send_keys('ramya')
# Find the email field using xpath without id
email = driver.find_element_by_xpath("//input[@name='email']")
email.send_keys('avinash@qxf2.com')
email.send_keys('ramya.muthumohan@qxf2.com')
# Find the phone no field using id
phone = driver.find_element_by_id('phone')
phone.send_keys('9999999999')
Expand Down