report.html

Report generated on 21-Dec-2022 at 01:38:03 by pytest-html v2.1.1

Environment

Packages {"pluggy": "0.13.1", "py": "1.9.0", "pytest": "6.1.0"}
Platform Windows-10-10.0.19041-SP0
Plugins {"allure-pytest": "2.8.18", "datadir": "1.3.1", "html": "2.1.1", "metadata": "1.10.0"}
Python 3.8.5

Summary

2 tests ran in 5878.28 seconds.

0 passed, 0 skipped, 2 failed, 0 errors, 0 expected failures, 0 unexpected passes

Results

Result Test Duration Links
Failed test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification 2874.85
self = <test_orders_and_payment_flow.TestOrderAndPaymentFlowCertificationProgram object at 0x000001C1D2FF0610>
initialize_pages = None
testdata = {'contact_no': '123456789', 'country': ['in', 'us', 'gb', 'au', 'de', 'sg', ...], 'db_type': 'mysql', 'dynamo_db_type': 'dynamo', ...}

@pytest.mark.test_details("0000","high","Order and Payment Flow","Pradeep")
def test_Orders_and_Payment_Flow_certification(self,initialize_pages,testdata):

'''
Objective: Make payment and validate the data in Dynamo db and mySql

Step 01: get url
Step 02: click on Enroll Now CTA
Step 03: Make payment
Step 04: Validate the Dynamo db and MySql daya for the payment
'''
self.add_rows_in_csv('Report.csv')
url_count = self._count_url_txt_file_subdomain('Orders_and_Payment_Flow_Certification.txt')
logging.info(f"Total URL Present is: {url_count}")

# Step 01: get url
with open("Orders_and_Payment_Flow_Certification.txt") as file:
counter = 0
for url in file:
country_list = testdata['country']
for country in country_list:
try:
pytest.driver.delete_all_cookies()
pytest.driver.get(url)
logging.info(f"Url Opened is: {url}")
selenium_helper.wait_for_page_to_load(10,url)
self.pg_orders.change_country(country)

if selenium_helper.is_locator_present(self.pg_orders.locators['common_button_enroll_now_certificaton'],10):
course_data = None
self.pg_orders.click_enroll_now_certification(url)
course_data = self._complete_payment(country,testdata['payment_type'],testdata['name'],testdata['email_id'],testdata['contact_no'])
time.sleep(5)

logging.info(f"course_data: {course_data}")

# Step 04: Validate the Dynamo db and MySql data for the payment
token_no = pytest.driver.current_url.split('authtoken=')[-1]
logging.info(f"Token No is: {token_no}")
query = testdata['sql_query'].replace('<token_no>',token_no)

sql_data = db_helper.get_prod_data(query,testdata['db_type'])
logging.info(f"RAW SQL Data: {sql_data}\n")
sql_items = self.convert_items_to_json(sql_data)
logging.info(f"SQL DATA in JSON format: {sql_items}\n")

message = self.verify_mySQL_data_certification(course_data[0],sql_items,sql_data,testdata)
if 'successfull' in message[0].lower():
status = 'Success'
else:
status = 'Fail'
filename = 'Report.csv'
course_name = course_data[0]['course_name']
course_type = 'Certification Program'
# course_type = sql_items['training_type_txt']
rows = [[country.upper(),course_name,course_type,url,message,course_data[1][0],course_data[1][1],status]]
with open(filename, 'a', newline='\n') as csvfile:
csvwriter = csv.writer(csvfile)
csvwriter.writerows(rows)

# if '/details?authtoken' not in pytest.driver.current_url and selenium_helper.is_locator_present(self.pg_orders.locators['btn_enroll_now_cohort_classes'],3) != True and selenium_helper.is_locator_present(self.pg_orders.locators['btn_enroll_now'],3) != True:
else:
message = "Enroll Now button is not Appearing"
logging.info(message)
filename = 'Report.csv'
course_name = self.pg_orders.course_name_in_url.get_text()
course_type = 'Certification Program'
rows = [[country.upper(),course_name,course_type,url,message,'','','CTA NOT AVAILABLE']]
with open(filename, 'a', newline='\n') as csvfile:
csvwriter = csv.writer(csvfile)
csvwriter.writerows(rows)
except Exception as e:
counter = counter+1
logging.error("Exception occurred", exc_info=True)
filename = 'Report.csv'
course_name = 'NA'
course_type = 'Certification Program'
if course_data == None:
rows = [[country.upper(),course_name,course_type,url,'','','','Fail']]
with open(filename, 'a', newline='\n') as csvfile:
csvwriter = csv.writer(csvfile)
csvwriter.writerows(rows)
elif len (course_data) == 1:
rows = [[country.upper(),course_name,course_type,url,'',course_data[0],'','Fail']]
with open(filename, 'a', newline='\n') as csvfile:
csvwriter = csv.writer(csvfile)
csvwriter.writerows(rows)
elif len(course_data) == 2:
rows = [[country.upper(),course_name,course_type,url,'',course_data[1][0],course_data[1][1],'Fail']]
with open(filename, 'a', newline='\n') as csvfile:
csvwriter = csv.writer(csvfile)
csvwriter.writerows(rows)
continue

if counter != 0:
> pytest.fail('Failed')
E Failed: Failed

test_prod\test_orders_and_payment_flow.py:119: Failed
------------------------------Captured stderr call------------------------------
--- Logging error --- Traceback (most recent call last): File "c:\users\qateam\appdata\local\programs\python\python38\lib\logging\__init__.py", line 1084, in emit stream.write(msg + self.terminator) File "c:\users\qateam\appdata\local\programs\python\python38\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u20b9' in position 136: character maps to <undefined> Call stack: File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\qateam\AppData\Local\Programs\Python\Python38\Scripts\pytest.exe\__main__.py", line 7, in <module> sys.exit(console_main()) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 187, in console_main code = main() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 164, in main ret = config.hook.pytest_cmdline_main( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 306, in pytest_cmdline_main return wrap_session(config, _main) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 257, in wrap_session session.exitstatus = doit(config, session) or 0 File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 313, in _main config.hook.pytest_runtestloop(session=session) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 338, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 110, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 127, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 216, in call_and_report call = call_runtest_hook(item, when, **kwds) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 255, in call_runtest_hook return CallInfo.from_call( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 310, in from_call result = func() # type: Optional[TResult] File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 256, in <lambda> lambda: ihook(item=item, **kwds), when=when, reraise=reraise File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 163, in pytest_runtest_call item.runtest() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 184, in pytest_pyfunc_call result = testfunction(**testargs) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 58, in test_Orders_and_Payment_Flow_certification logging.info(f"course_data: {course_data}") Message: "course_data: ({'course_name': 'PMI-ACP®', 'course_type': 'Online Self Learning', 'base_price': '₹ 11,940.00', 'final_price': '14,089.20'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', '', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'Payment CTA appearing'}, {'EMI': 'Payment CTA appearing'}, {'CCAvenue': 'Payment CTA appearing'}]))" Arguments: () --- Logging error --- Traceback (most recent call last): File "c:\users\qateam\appdata\local\programs\python\python38\lib\logging\__init__.py", line 1084, in emit stream.write(msg + self.terminator) File "c:\users\qateam\appdata\local\programs\python\python38\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u20b9' in position 133: character maps to <undefined> Call stack: File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\qateam\AppData\Local\Programs\Python\Python38\Scripts\pytest.exe\__main__.py", line 7, in <module> sys.exit(console_main()) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 187, in console_main code = main() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 164, in main ret = config.hook.pytest_cmdline_main( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 306, in pytest_cmdline_main return wrap_session(config, _main) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 257, in wrap_session session.exitstatus = doit(config, session) or 0 File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 313, in _main config.hook.pytest_runtestloop(session=session) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 338, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 110, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 127, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 216, in call_and_report call = call_runtest_hook(item, when, **kwds) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 255, in call_runtest_hook return CallInfo.from_call( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 310, in from_call result = func() # type: Optional[TResult] File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 256, in <lambda> lambda: ihook(item=item, **kwds), when=when, reraise=reraise File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 163, in pytest_runtest_call item.runtest() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 184, in pytest_pyfunc_call result = testfunction(**testargs) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 58, in test_Orders_and_Payment_Flow_certification logging.info(f"course_data: {course_data}") Message: "course_data: ({'course_name': 'CISA®', 'course_type': 'Online Self Learning', 'base_price': '₹ 168,525.00', 'final_price': '198,859.50'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', 'ShopSe EMI', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'Payment CTA appearing'}, {'EMI': 'Payment CTA appearing'}, {'CCAvenue': 'Payment CTA appearing'}, {'ShopSE EMI': 'Payment CTA appearing'}]))" Arguments: ()
-------------------------------Captured log call--------------------------------
INFO  setup:test_orders_and_payment_flow.py:37 Total URL Present is: 5 INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/agile-and-scrum/agile-and-scrum-certification-training INFO  setup:orders_page.py:30 Country Set to: IN INFO  setup:test_orders_and_payment_flow.py:87 Enroll Now button is not Appearing INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/agile-and-scrum/agile-and-scrum-certification-training INFO  setup:orders_page.py:30 Country Set to: US INFO  setup:test_orders_and_payment_flow.py:87 Enroll Now button is not Appearing INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/agile-and-scrum/agile-and-scrum-certification-training INFO  setup:orders_page.py:30 Country Set to: GB INFO  setup:test_orders_and_payment_flow.py:87 Enroll Now button is not Appearing INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/agile-and-scrum/agile-and-scrum-certification-training INFO  setup:orders_page.py:30 Country Set to: AU INFO  setup:test_orders_and_payment_flow.py:87 Enroll Now button is not Appearing INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/agile-and-scrum/agile-and-scrum-certification-training INFO  setup:orders_page.py:30 Country Set to: DE INFO  setup:test_orders_and_payment_flow.py:87 Enroll Now button is not Appearing INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/agile-and-scrum/agile-and-scrum-certification-training INFO  setup:orders_page.py:30 Country Set to: SG INFO  setup:test_orders_and_payment_flow.py:87 Enroll Now button is not Appearing INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/agile-and-scrum/agile-and-scrum-certification-training INFO  setup:orders_page.py:30 Country Set to: AE INFO  setup:test_orders_and_payment_flow.py:87 Enroll Now button is not Appearing INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/agile-and-scrum/pmi-acp-certification-training INFO  setup:orders_page.py:30 Country Set to: IN INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:41 Payment Page Loaded ERROR  setup:selenium_helper.py:61 Message: WARNING  setup:selenium_helper.py:62 the locator ('xpath', "//li[@id='shopse']//h2[contains(text(),'EMI')][not(contains(@style,'none'))]/ancestor::a") on url https://www.simplilearn.com/secure/checkout/details?authtoken=dc361f158ea743c5bbcfc6c92bfbe0ae2afe2875224bea545abe5155fc015053 is not visible INFO  setup:test_orders_and_payment_flow.py:156 <class 'tuple'> INFO  setup:ssvc_cart_page.py:316 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:58 course_data: ({'course_name': 'PMI-ACP®', 'course_type': 'Online Self Learning', 'base_price': '₹ 11,940.00', 'final_price': '14,089.20'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', '', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'Payment CTA appearing'}, {'EMI': 'Payment CTA appearing'}, {'CCAvenue': 'Payment CTA appearing'}])) INFO  setup:test_orders_and_payment_flow.py:62 Token No is: dc361f158ea743c5bbcfc6c92bfbe0ae2afe2875224bea545abe5155fc015053 INFO  setup:test_orders_and_payment_flow.py:66 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 67, in test_Orders_and_Payment_Flow_certification sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 162, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/agile-and-scrum/pmi-acp-certification-training INFO  setup:orders_page.py:30 Country Set to: US INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:41 Payment Page Loaded INFO  setup:test_orders_and_payment_flow.py:156 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:58 course_data: ({'course_name': 'PMI-ACP®', 'course_type': 'Online Self Learning', 'base_price': '$ 1,049.00', 'final_price': '1,049.00'}, (['Credit Card', 'Paypal'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:62 Token No is: 73ba99f192e80563f62c755807f8aed1d485cc79bd3c8084bcc0567dedf63789 INFO  setup:test_orders_and_payment_flow.py:66 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 67, in test_Orders_and_Payment_Flow_certification sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 162, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/agile-and-scrum/pmi-acp-certification-training INFO  setup:orders_page.py:30 Country Set to: GB INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:41 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:156 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:58 course_data: ({'course_name': 'PMI-ACP®', 'course_type': 'Online Self Learning', 'base_price': '£ 1,049.00', 'final_price': '1,049.00'}, (['Credit Card', 'Paypal'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:62 Token No is: e1e1d8515711f64821b4f9578483ee30f6d60c47e2ed85ebb6452fd9483d5b18 INFO  setup:test_orders_and_payment_flow.py:66 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 67, in test_Orders_and_Payment_Flow_certification sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 162, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/agile-and-scrum/pmi-acp-certification-training INFO  setup:orders_page.py:30 Country Set to: AU INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:41 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:156 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:58 course_data: ({'course_name': 'PMI-ACP®', 'course_type': 'Online Self Learning', 'base_price': 'A$ 1,049.00', 'final_price': '1,049.00'}, (['Credit Card', 'Paypal'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:62 Token No is: 8a76155758de79dcd775a527c2b077a8d6effad75558409baa57d9155328d155 INFO  setup:test_orders_and_payment_flow.py:66 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 67, in test_Orders_and_Payment_Flow_certification sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 162, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/agile-and-scrum/pmi-acp-certification-training INFO  setup:orders_page.py:30 Country Set to: DE INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:41 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:156 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:58 course_data: ({'course_name': 'PMI-ACP®', 'course_type': 'Online Self Learning', 'base_price': '€ 1,049.00', 'final_price': '1,049.00'}, (['Credit Card', 'Paypal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'2checkout': 'Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:62 Token No is: 46a0894c72ed02b008249a956e18850af4a824c34ebfee3c0d577b21c3ce9b4a INFO  setup:test_orders_and_payment_flow.py:66 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 67, in test_Orders_and_Payment_Flow_certification sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 162, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/agile-and-scrum/pmi-acp-certification-training INFO  setup:orders_page.py:30 Country Set to: SG INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:41 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:156 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:58 course_data: ({'course_name': 'PMI-ACP®', 'course_type': 'Online Self Learning', 'base_price': '$ 1,049.00', 'final_price': '1,122.43'}, (['Credit Card', 'Paypal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'2checkout': 'Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:62 Token No is: cb08d2659395f97a0675deaccecce319b049bb8647219b702c0e7604769269bb INFO  setup:test_orders_and_payment_flow.py:66 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 67, in test_Orders_and_Payment_Flow_certification sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 162, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/agile-and-scrum/pmi-acp-certification-training INFO  setup:orders_page.py:30 Country Set to: AE INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:41 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:156 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:58 course_data: ({'course_name': 'PMI-ACP®', 'course_type': 'Online Self Learning', 'base_price': '$ 1,049.00', 'final_price': '1,049.00'}, (['Credit Card', 'Paypal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'2checkout': 'Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:62 Token No is: 2f326b57cd2560b249338974625aa2118a9e2681f75fa1d15ab2f0f93bbf2a83 INFO  setup:test_orders_and_payment_flow.py:66 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 67, in test_Orders_and_Payment_Flow_certification sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 162, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/cyber-security/cisa-certification-training INFO  setup:orders_page.py:30 Country Set to: IN INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:41 Payment Page Loaded INFO  setup:test_orders_and_payment_flow.py:156 <class 'tuple'> INFO  setup:ssvc_cart_page.py:316 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:58 course_data: ({'course_name': 'CISA®', 'course_type': 'Online Self Learning', 'base_price': '₹ 168,525.00', 'final_price': '198,859.50'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', 'ShopSe EMI', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'Payment CTA appearing'}, {'EMI': 'Payment CTA appearing'}, {'CCAvenue': 'Payment CTA appearing'}, {'ShopSE EMI': 'Payment CTA appearing'}])) INFO  setup:test_orders_and_payment_flow.py:62 Token No is: bc16b03a06d922ce023624a63c642e7bfe055265bb84ee8f26be492bb159db58 INFO  setup:test_orders_and_payment_flow.py:66 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 67, in test_Orders_and_Payment_Flow_certification sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 162, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/cyber-security/cisa-certification-training INFO  setup:orders_page.py:30 Country Set to: US INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:41 Payment Page Loaded INFO  setup:test_orders_and_payment_flow.py:156 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:58 course_data: ({'course_name': 'CISA®', 'course_type': 'Online Self Learning', 'base_price': '$ 2,200.00', 'final_price': '2,200.00'}, (['Credit Card', 'Paypal'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:62 Token No is: ab44adf9a652405b79d608a4a8981a0e2bb318f73649289c31ce56e1af855f3e INFO  setup:test_orders_and_payment_flow.py:66 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 67, in test_Orders_and_Payment_Flow_certification sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 162, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/cyber-security/cisa-certification-training INFO  setup:orders_page.py:30 Country Set to: GB INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:41 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:156 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:58 course_data: ({'course_name': 'CISA®', 'course_type': 'Online Self Learning', 'base_price': '£ 2,499.00', 'final_price': '2,499.00'}, (['Credit Card', 'Paypal'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:62 Token No is: e45007caccddff10d94e4a6c5d67aa2dcbbf73e62c6fab248c70875d27681f29 INFO  setup:test_orders_and_payment_flow.py:66 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 67, in test_Orders_and_Payment_Flow_certification sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 162, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/cyber-security/cisa-certification-training INFO  setup:orders_page.py:30 Country Set to: AU INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:41 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:156 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:58 course_data: ({'course_name': 'CISA®', 'course_type': 'Online Self Learning', 'base_price': 'A$ 2,675.00', 'final_price': '2,675.00'}, (['Credit Card', 'Paypal'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:62 Token No is: 5f105ca678806c6ea644571d864e6c41f87513bdb4895e807ce5dc91db2f4431 INFO  setup:test_orders_and_payment_flow.py:66 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 67, in test_Orders_and_Payment_Flow_certification sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 162, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/cyber-security/cisa-certification-training INFO  setup:orders_page.py:30 Country Set to: DE INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:41 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:156 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:58 course_data: ({'course_name': 'CISA®', 'course_type': 'Online Self Learning', 'base_price': '€ 2,499.00', 'final_price': '2,499.00'}, (['Credit Card', 'Paypal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'2checkout': 'Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:62 Token No is: fb5d025cba8fc714f2fa5c8a6ccac18a467a09f103a994003a764aeb7b67eae8 INFO  setup:test_orders_and_payment_flow.py:66 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 67, in test_Orders_and_Payment_Flow_certification sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 162, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/cyber-security/cisa-certification-training INFO  setup:orders_page.py:30 Country Set to: SG INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:41 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:156 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:58 course_data: ({'course_name': 'CISA®', 'course_type': 'Online Self Learning', 'base_price': '$ 2,499.00', 'final_price': '2,673.93'}, (['Credit Card', 'Paypal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'2checkout': 'Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:62 Token No is: 50ee2fb0683ff5e095e8ab089df61b9ea74f0415b68b6fae0534be06f439a6f2 INFO  setup:test_orders_and_payment_flow.py:66 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 67, in test_Orders_and_Payment_Flow_certification sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 162, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/cyber-security/cisa-certification-training INFO  setup:orders_page.py:30 Country Set to: AE INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:41 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:156 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:58 course_data: ({'course_name': 'CISA®', 'course_type': 'Online Self Learning', 'base_price': '$ 2,499.00', 'final_price': '2,499.00'}, (['Credit Card', 'Paypal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'2checkout': 'Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:62 Token No is: 0d32f545bc6274218d44725f0b06abf25654ea2fe705014886cd7a9f2d505af8 INFO  setup:test_orders_and_payment_flow.py:66 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 67, in test_Orders_and_Payment_Flow_certification sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 162, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/cyber-security/cissp-certification-training INFO  setup:orders_page.py:30 Country Set to: IN INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:43 Payment Page is not Loaded ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 54, in test_Orders_and_Payment_Flow_certification self.pg_orders.click_enroll_now_certification(url) File "C:\test_repos\pre_sales_test_python\pages_prod\orders_page.py", line 50, in click_enroll_now_certification self.common_button_enroll_now_certificaton.scroll_to_element() File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: common_button_enroll_now_certificaton INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/cyber-security/cissp-certification-training INFO  setup:orders_page.py:30 Country Set to: US INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:43 Payment Page is not Loaded ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 54, in test_Orders_and_Payment_Flow_certification self.pg_orders.click_enroll_now_certification(url) File "C:\test_repos\pre_sales_test_python\pages_prod\orders_page.py", line 50, in click_enroll_now_certification self.common_button_enroll_now_certificaton.scroll_to_element() File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: common_button_enroll_now_certificaton INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/cyber-security/cissp-certification-training INFO  setup:orders_page.py:30 Country Set to: GB INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:41 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:156 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:58 course_data: ({'course_name': 'CISSP®', 'course_type': 'Online Self Learning', 'base_price': '£ 2,499.00', 'final_price': '2,499.00'}, (['Credit Card', 'Paypal'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:62 Token No is: 0222bd6874461542bc90718ac8a46480b7c264e172209b8eed5330967716440c INFO  setup:test_orders_and_payment_flow.py:66 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 67, in test_Orders_and_Payment_Flow_certification sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 162, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/cyber-security/cissp-certification-training INFO  setup:orders_page.py:30 Country Set to: AU INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:43 Payment Page is not Loaded ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 54, in test_Orders_and_Payment_Flow_certification self.pg_orders.click_enroll_now_certification(url) File "C:\test_repos\pre_sales_test_python\pages_prod\orders_page.py", line 50, in click_enroll_now_certification self.common_button_enroll_now_certificaton.scroll_to_element() File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: common_button_enroll_now_certificaton INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/cyber-security/cissp-certification-training INFO  setup:orders_page.py:30 Country Set to: DE INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:43 Payment Page is not Loaded ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 54, in test_Orders_and_Payment_Flow_certification self.pg_orders.click_enroll_now_certification(url) File "C:\test_repos\pre_sales_test_python\pages_prod\orders_page.py", line 50, in click_enroll_now_certification self.common_button_enroll_now_certificaton.scroll_to_element() File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: common_button_enroll_now_certificaton INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/cyber-security/cissp-certification-training INFO  setup:orders_page.py:30 Country Set to: SG INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:41 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:156 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:58 course_data: ({'course_name': 'CISSP®', 'course_type': 'Online Self Learning', 'base_price': '$ 2,599.00', 'final_price': '2,780.93'}, (['Credit Card', 'Paypal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'2checkout': 'Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:62 Token No is: 2ecb2bd1d28ae5079aeb61e36a5cbaf65a1dac8693f0d1726a19047fa2be9b08 INFO  setup:test_orders_and_payment_flow.py:66 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 67, in test_Orders_and_Payment_Flow_certification sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 162, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/cyber-security/cissp-certification-training INFO  setup:orders_page.py:30 Country Set to: AE INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:43 Payment Page is not Loaded ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 54, in test_Orders_and_Payment_Flow_certification self.pg_orders.click_enroll_now_certification(url) File "C:\test_repos\pre_sales_test_python\pages_prod\orders_page.py", line 50, in click_enroll_now_certification self.common_button_enroll_now_certificaton.scroll_to_element() File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: common_button_enroll_now_certificaton INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/big-data-and-analytics/big-data-and-hadoop-training INFO  setup:orders_page.py:30 Country Set to: IN INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:43 Payment Page is not Loaded ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 54, in test_Orders_and_Payment_Flow_certification self.pg_orders.click_enroll_now_certification(url) File "C:\test_repos\pre_sales_test_python\pages_prod\orders_page.py", line 50, in click_enroll_now_certification self.common_button_enroll_now_certificaton.scroll_to_element() File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: common_button_enroll_now_certificaton INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/big-data-and-analytics/big-data-and-hadoop-training INFO  setup:orders_page.py:30 Country Set to: US INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:43 Payment Page is not Loaded ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 54, in test_Orders_and_Payment_Flow_certification self.pg_orders.click_enroll_now_certification(url) File "C:\test_repos\pre_sales_test_python\pages_prod\orders_page.py", line 50, in click_enroll_now_certification self.common_button_enroll_now_certificaton.scroll_to_element() File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: common_button_enroll_now_certificaton INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/big-data-and-analytics/big-data-and-hadoop-training INFO  setup:orders_page.py:30 Country Set to: GB INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:41 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:156 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:58 course_data: ({'course_name': 'Big Data Hadoop and Spark Developer', 'course_type': 'Online Self Learning', 'base_price': '£ 969.00', 'final_price': '969.00'}, (['Credit Card', 'Paypal'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:62 Token No is: 60a514fede3496242c395f3e6e048a1aff55279fd4ea14fc50e384c1de17bc94 INFO  setup:test_orders_and_payment_flow.py:66 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 67, in test_Orders_and_Payment_Flow_certification sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 162, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/big-data-and-analytics/big-data-and-hadoop-training INFO  setup:orders_page.py:30 Country Set to: AU INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:43 Payment Page is not Loaded ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 54, in test_Orders_and_Payment_Flow_certification self.pg_orders.click_enroll_now_certification(url) File "C:\test_repos\pre_sales_test_python\pages_prod\orders_page.py", line 50, in click_enroll_now_certification self.common_button_enroll_now_certificaton.scroll_to_element() File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: common_button_enroll_now_certificaton INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/big-data-and-analytics/big-data-and-hadoop-training INFO  setup:orders_page.py:30 Country Set to: DE INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:43 Payment Page is not Loaded ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 54, in test_Orders_and_Payment_Flow_certification self.pg_orders.click_enroll_now_certification(url) File "C:\test_repos\pre_sales_test_python\pages_prod\orders_page.py", line 50, in click_enroll_now_certification self.common_button_enroll_now_certificaton.scroll_to_element() File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: common_button_enroll_now_certificaton INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/big-data-and-analytics/big-data-and-hadoop-training INFO  setup:orders_page.py:30 Country Set to: SG INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:43 Payment Page is not Loaded ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 54, in test_Orders_and_Payment_Flow_certification self.pg_orders.click_enroll_now_certification(url) File "C:\test_repos\pre_sales_test_python\pages_prod\orders_page.py", line 50, in click_enroll_now_certification self.common_button_enroll_now_certificaton.scroll_to_element() File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: common_button_enroll_now_certificaton INFO  setup:test_orders_and_payment_flow.py:48 Url Opened is: https://www.simplilearn.com/big-data-and-analytics/big-data-and-hadoop-training INFO  setup:orders_page.py:30 Country Set to: AE INFO  setup:orders_page.py:38 clicked on Enroll Now button INFO  setup:orders_page.py:43 Payment Page is not Loaded ERROR  setup:test_orders_and_payment_flow.py:97 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 54, in test_Orders_and_Payment_Flow_certification self.pg_orders.click_enroll_now_certification(url) File "C:\test_repos\pre_sales_test_python\pages_prod\orders_page.py", line 50, in click_enroll_now_certification self.common_button_enroll_now_certificaton.scroll_to_element() File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: common_button_enroll_now_certificaton
Failed test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program 3001.37
self = <test_orders_and_payment_flow.TestOrderAndPaymentFlowMastersProgram object at 0x000001C1D31326D0>
initialize_pages = None
testdata = {'contact_no': '123456789', 'country': ['in', 'us', 'gb', 'au', 'de', 'sg', ...], 'db_type': 'mysql', 'dynamo_db_type': 'dynamo', ...}

@pytest.mark.test_details("0001","high","Order and Payment Flow","Pradeep")
def test_Orders_and_Payment_Flow_masters_program(self,initialize_pages,testdata):

'''
Objective: Make payment and validate the data in Dynamo db and mySql

Step 01: get url
Step 02: click on Enroll Now CTA
Step 03: Make payment
Step 04: Validate the Dynamo db and MySql daya for the payment
'''
# self.add_rows_in_csv('Report.csv') this step is commentd to make one CSV file
# self.add_rows_in_csv('Report.csv')
url_count = self._count_url_txt_file_subdomain('Order_and_Payment_Flow_masters.txt')
logging.info(f"Total URL Present is: {url_count}")

# Step 01: get url
with open("Order_and_Payment_Flow_masters.txt") as file:
counter = 0
for url in file:
country_list = testdata['country']
for country in country_list:
try:
pytest.driver.delete_all_cookies()
pytest.driver.get(url)
logging.info(f"Url Opened is: {url}")
selenium_helper.wait_for_page_to_load(10,url)
self.pg_orders.change_country(country)

if selenium_helper.is_locator_present(self.pg_orders.locators['btn_enroll_now_masters_program'],10):
course_data = None
self.pg_orders.click_enroll_now_for_masters(url)

course_data = self._complete_payment(country,testdata['payment_type'],testdata['name'],testdata['email_id'],testdata['contact_no'])
logging.info(type(course_data))
time.sleep(5)

logging.info(f"course_data: {course_data}")

# Step 04: Validate the Dynamo db and MySql data for the payment
token_no = pytest.driver.current_url.split('authtoken=')[-1]
logging.info(f"Token No is: {token_no}")
query = testdata['sql_query'].replace('<token_no>',token_no)

sql_data = db_helper.get_prod_data(query,testdata['db_type'])
logging.info(f"RAW SQL Data: {sql_data}\n")
sql_items = self.convert_items_to_json(sql_data)
logging.info(f"SQL DATA in JSON format: {sql_items}\n")

message = self.verify_mySQL_data_masters_program(course_data[0],sql_items,sql_data,testdata)
if 'successfull' in message[0].lower():
status = 'Success'
else:
status = 'Fail'
filename = 'Report.csv'
course_name = course_data[0]['course_name']
course_type = 'Masters Program'
# course_type = sql_items['training_type_txt']
rows = [[country.upper(),course_name,course_type,url,message,course_data[1][0],course_data[1][1],status]]
with open(filename, 'a', newline='\n') as csvfile:
csvwriter = csv.writer(csvfile)
csvwriter.writerows(rows)

else:
message = "Enroll Now button is not Appearing"
logging.info(message)
filename = 'Report.csv'
course_name = self.pg_orders.course_name_in_url.get_text()
course_type = 'Masters Program'
rows = [[country.upper(),course_name,course_type,url,message,'','','CTA NOT AVAILABLE']]
with open(filename, 'a', newline='\n') as csvfile:
csvwriter = csv.writer(csvfile)
csvwriter.writerows(rows)

except Exception as e:
counter = counter+1
logging.error("Exception occurred", exc_info=True)
filename = 'Report.csv'
course_name = 'NA'
course_type = 'master Program'
if course_data == None:
rows = [[country.upper(),course_name,course_type,url,'','','','Fail']]
with open(filename, 'a', newline='\n') as csvfile:
csvwriter = csv.writer(csvfile)
csvwriter.writerows(rows)
elif len(course_data) == 1:
rows = [[country.upper(),course_name,course_type,url,'',course_data[0],'','Fail']]
with open(filename, 'a', newline='\n') as csvfile:
csvwriter = csv.writer(csvfile)
csvwriter.writerows(rows)
elif len(course_data) == 2:
rows = [[country.upper(),course_name,course_type,url,'',course_data[1][0],course_data[1][0]],'Fail']
with open(filename, 'a', newline='\n') as csvfile:
csvwriter = csv.writer(csvfile)
csvwriter.writerows(rows)

continue

if counter != 0:
> pytest.fail('Failed')
E Failed: Failed

test_prod\test_orders_and_payment_flow.py:444: Failed
------------------------------Captured stderr call------------------------------
--- Logging error --- Traceback (most recent call last): File "c:\users\qateam\appdata\local\programs\python\python38\lib\logging\__init__.py", line 1084, in emit stream.write(msg + self.terminator) File "c:\users\qateam\appdata\local\programs\python\python38\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u20b9' in position 157: character maps to <undefined> Call stack: File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\qateam\AppData\Local\Programs\Python\Python38\Scripts\pytest.exe\__main__.py", line 7, in <module> sys.exit(console_main()) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 187, in console_main code = main() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 164, in main ret = config.hook.pytest_cmdline_main( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 306, in pytest_cmdline_main return wrap_session(config, _main) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 257, in wrap_session session.exitstatus = doit(config, session) or 0 File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 313, in _main config.hook.pytest_runtestloop(session=session) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 338, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 110, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 127, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 216, in call_and_report call = call_runtest_hook(item, when, **kwds) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 255, in call_runtest_hook return CallInfo.from_call( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 310, in from_call result = func() # type: Optional[TResult] File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 256, in <lambda> lambda: ihook(item=item, **kwds), when=when, reraise=reraise File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 163, in pytest_runtest_call item.runtest() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 184, in pytest_pyfunc_call result = testfunction(**testargs) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 382, in test_Orders_and_Payment_Flow_masters_program logging.info(f"course_data: {course_data}") Message: "course_data: ({'course_name': 'Automation Testing Masters Program', 'course_type': 'Online Bootcamp', 'base_price': '₹ 45,762.00', 'final_price': '53,999.16'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', 'ShopSe EMI', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'Payment CTA appearing'}, {'EMI': 'Payment CTA appearing'}, {'CCAvenue': 'Payment CTA appearing'}, {'ShopSE EMI': 'Payment CTA appearing'}]))" Arguments: () --- Logging error --- Traceback (most recent call last): File "c:\users\qateam\appdata\local\programs\python\python38\lib\logging\__init__.py", line 1084, in emit stream.write(msg + self.terminator) File "c:\users\qateam\appdata\local\programs\python\python38\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u20b9' in position 151: character maps to <undefined> Call stack: File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\qateam\AppData\Local\Programs\Python\Python38\Scripts\pytest.exe\__main__.py", line 7, in <module> sys.exit(console_main()) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 187, in console_main code = main() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 164, in main ret = config.hook.pytest_cmdline_main( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 306, in pytest_cmdline_main return wrap_session(config, _main) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 257, in wrap_session session.exitstatus = doit(config, session) or 0 File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 313, in _main config.hook.pytest_runtestloop(session=session) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 338, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 110, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 127, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 216, in call_and_report call = call_runtest_hook(item, when, **kwds) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 255, in call_runtest_hook return CallInfo.from_call( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 310, in from_call result = func() # type: Optional[TResult] File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 256, in <lambda> lambda: ihook(item=item, **kwds), when=when, reraise=reraise File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 163, in pytest_runtest_call item.runtest() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 184, in pytest_pyfunc_call result = testfunction(**testargs) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 382, in test_Orders_and_Payment_Flow_masters_program logging.info(f"course_data: {course_data}") Message: "course_data: ({'course_name': 'Digital Marketing Specialist', 'course_type': 'Online Bootcamp', 'base_price': '₹ 54,407.00', 'final_price': '64,200.26'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', 'ShopSe EMI', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'Payment CTA appearing'}, {'EMI': 'Payment CTA appearing'}, {'CCAvenue': 'Payment CTA appearing'}, {'ShopSE EMI': 'Payment CTA appearing'}]))" Arguments: ()
-------------------------------Captured log call--------------------------------
INFO  setup:test_orders_and_payment_flow.py:359 Total URL Present is: 4 INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training INFO  setup:orders_page.py:30 Country Set to: IN INFO  setup:orders_page.py:157 clicked on Enroll Now button for Masters Program INFO  setup:orders_page.py:162 Payment Page is not Loaded ERROR  setup:test_orders_and_payment_flow.py:421 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 376, in test_Orders_and_Payment_Flow_masters_program self.pg_orders.click_enroll_now_for_masters(url) File "C:\test_repos\pre_sales_test_python\pages_prod\orders_page.py", line 169, in click_enroll_now_for_masters self.btn_enroll_now_masters_program.scroll_to_element() File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: btn_enroll_now_masters_program INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training INFO  setup:orders_page.py:30 Country Set to: US INFO  setup:orders_page.py:157 clicked on Enroll Now button for Masters Program INFO  setup:orders_page.py:162 Payment Page is not Loaded ERROR  setup:test_orders_and_payment_flow.py:421 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 376, in test_Orders_and_Payment_Flow_masters_program self.pg_orders.click_enroll_now_for_masters(url) File "C:\test_repos\pre_sales_test_python\pages_prod\orders_page.py", line 169, in click_enroll_now_for_masters self.btn_enroll_now_masters_program.scroll_to_element() File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: btn_enroll_now_masters_program INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training INFO  setup:orders_page.py:30 Country Set to: GB INFO  setup:orders_page.py:157 clicked on Enroll Now button for Masters Program INFO  setup:orders_page.py:160 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:471 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:379 <class 'tuple'> INFO  setup:test_orders_and_payment_flow.py:382 course_data: ({'course_name': 'Full Stack Web Developer - MEAN Stack', 'course_type': 'Online Bootcamp', 'base_price': '£ 1,390.00', 'final_price': '1,390.00'}, (['Credit Card', 'Paypal', 'Splitit'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'Split_it': 'All option clickable and Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:386 Token No is: 26295f5507ebb3b14981620c212cf3aa3b972c213a4c802aa1a13d6a5df01f3d INFO  setup:test_orders_and_payment_flow.py:390 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:421 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 391, in test_Orders_and_Payment_Flow_masters_program sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 477, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training INFO  setup:orders_page.py:30 Country Set to: AU INFO  setup:orders_page.py:157 clicked on Enroll Now button for Masters Program INFO  setup:orders_page.py:160 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:471 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:379 <class 'tuple'> INFO  setup:test_orders_and_payment_flow.py:382 course_data: ({'course_name': 'Full Stack Web Developer - MEAN Stack', 'course_type': 'Online Bootcamp', 'base_price': 'A$ 1,605.00', 'final_price': '1,605.00'}, (['Credit Card', 'Paypal', 'Splitit'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'Split_it': 'All option clickable and Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:386 Token No is: a2651f288e2332f37f7d5526b23d3631cd607eac2a12e6581522cdbc8ef30785 INFO  setup:test_orders_and_payment_flow.py:390 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:421 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 391, in test_Orders_and_Payment_Flow_masters_program sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 477, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training INFO  setup:orders_page.py:30 Country Set to: DE INFO  setup:orders_page.py:157 clicked on Enroll Now button for Masters Program INFO  setup:orders_page.py:160 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:471 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:379 <class 'tuple'> INFO  setup:test_orders_and_payment_flow.py:382 course_data: ({'course_name': 'Full Stack Web Developer - MEAN Stack', 'course_type': 'Online Bootcamp', 'base_price': '€ 1,390.00', 'final_price': '1,390.00'}, (['Credit Card', 'Paypal', 'Splitit', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'2checkout': 'Payment CTA appearing '}, {'Split_it': 'All option clickable and Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:386 Token No is: 6d12044f9d9d044639fbddd9ca02641780cd0b6e78860b9fbd60587d6c6129de INFO  setup:test_orders_and_payment_flow.py:390 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:421 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 391, in test_Orders_and_Payment_Flow_masters_program sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 477, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training INFO  setup:orders_page.py:30 Country Set to: SG INFO  setup:orders_page.py:157 clicked on Enroll Now button for Masters Program INFO  setup:orders_page.py:160 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:471 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:379 <class 'tuple'> INFO  setup:test_orders_and_payment_flow.py:382 course_data: ({'course_name': 'Full Stack Web Developer - MEAN Stack', 'course_type': 'Online Bootcamp', 'base_price': '$ 1,390.00', 'final_price': '1,487.30'}, (['Credit Card', 'Paypal', 'Splitit', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'2checkout': 'Payment CTA appearing '}, {'Split_it': 'All option clickable and Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:386 Token No is: de4a6b0a3bfea7ff55b3459c17dea548d57f9ff2e305d839fa0174672e13294b INFO  setup:test_orders_and_payment_flow.py:390 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:421 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 391, in test_Orders_and_Payment_Flow_masters_program sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 477, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training INFO  setup:orders_page.py:30 Country Set to: AE INFO  setup:orders_page.py:157 clicked on Enroll Now button for Masters Program INFO  setup:orders_page.py:160 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:471 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:379 <class 'tuple'> INFO  setup:test_orders_and_payment_flow.py:382 course_data: ({'course_name': 'Full Stack Web Developer - MEAN Stack', 'course_type': 'Online Bootcamp', 'base_price': '$ 1,390.00', 'final_price': '1,390.00'}, (['Credit Card', 'Paypal', 'Splitit', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'2checkout': 'Payment CTA appearing '}, {'Split_it': 'All option clickable and Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:386 Token No is: c03d004bc81dbc8a6509d2b37e52de2fba3b9996ee0e28f8c6dd6692f5f21a03 INFO  setup:test_orders_and_payment_flow.py:390 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:421 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 391, in test_Orders_and_Payment_Flow_masters_program sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 477, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/automation-testing-masters-program-certification-training-course INFO  setup:orders_page.py:30 Country Set to: IN INFO  setup:orders_page.py:157 clicked on Enroll Now button for Masters Program INFO  setup:orders_page.py:160 Payment Page Loaded INFO  setup:test_orders_and_payment_flow.py:471 <class 'tuple'> INFO  setup:ssvc_cart_page.py:316 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:379 <class 'tuple'> INFO  setup:test_orders_and_payment_flow.py:382 course_data: ({'course_name': 'Automation Testing Masters Program', 'course_type': 'Online Bootcamp', 'base_price': '₹ 45,762.00', 'final_price': '53,999.16'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', 'ShopSe EMI', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'Payment CTA appearing'}, {'EMI': 'Payment CTA appearing'}, {'CCAvenue': 'Payment CTA appearing'}, {'ShopSE EMI': 'Payment CTA appearing'}])) INFO  setup:test_orders_and_payment_flow.py:386 Token No is: c01a2354e59438333f5522a0cc201782d1e0ca1adb4ec1e75ac96cff26a27113 INFO  setup:test_orders_and_payment_flow.py:390 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:421 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 391, in test_Orders_and_Payment_Flow_masters_program sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 477, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/automation-testing-masters-program-certification-training-course INFO  setup:orders_page.py:30 Country Set to: US INFO  setup:orders_page.py:157 clicked on Enroll Now button for Masters Program INFO  setup:orders_page.py:160 Payment Page Loaded INFO  setup:test_orders_and_payment_flow.py:471 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:379 <class 'tuple'> INFO  setup:test_orders_and_payment_flow.py:382 course_data: ({'course_name': 'Automation Testing Masters Program', 'course_type': 'Online Bootcamp', 'base_price': '$ 1,499.00', 'final_price': '1,499.00'}, (['Credit Card', 'Paypal', 'Affirm', 'Splitit'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'Affirm': 'Payment CTA appearing '}, {'Split_it': 'All option clickable and Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:386 Token No is: ed753e09444f4d0bcbc423d1f49e93dd8ba092613fcbd272663921cba0d1878f INFO  setup:test_orders_and_payment_flow.py:390 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:421 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 391, in test_Orders_and_Payment_Flow_masters_program sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 477, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/automation-testing-masters-program-certification-training-course INFO  setup:orders_page.py:30 Country Set to: GB INFO  setup:orders_page.py:157 clicked on Enroll Now button for Masters Program INFO  setup:orders_page.py:160 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:471 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:379 <class 'tuple'> INFO  setup:test_orders_and_payment_flow.py:382 course_data: ({'course_name': 'Automation Testing Masters Program', 'course_type': 'Online Bootcamp', 'base_price': '£ 1,390.00', 'final_price': '1,390.00'}, (['Credit Card', 'Paypal', 'Splitit'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'Split_it': 'All option clickable and Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:386 Token No is: c1e60d69af5da89e570d7be7a869d88f25469202dd7032f8aae68b91589cba35 INFO  setup:test_orders_and_payment_flow.py:390 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:421 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 391, in test_Orders_and_Payment_Flow_masters_program sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 477, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/automation-testing-masters-program-certification-training-course INFO  setup:orders_page.py:30 Country Set to: AU INFO  setup:orders_page.py:157 clicked on Enroll Now button for Masters Program INFO  setup:orders_page.py:160 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:471 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:379 <class 'tuple'> INFO  setup:test_orders_and_payment_flow.py:382 course_data: ({'course_name': 'Automation Testing Masters Program', 'course_type': 'Online Bootcamp', 'base_price': 'A$ 2,139.00', 'final_price': '2,139.00'}, (['Credit Card', 'Paypal', 'Splitit'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'Split_it': 'All option clickable and Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:386 Token No is: ec9d577f48988549879f787662ef1f0ff6a4dea4b939632e4be445d54709d014 INFO  setup:test_orders_and_payment_flow.py:390 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:421 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 391, in test_Orders_and_Payment_Flow_masters_program sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 477, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/automation-testing-masters-program-certification-training-course INFO  setup:orders_page.py:30 Country Set to: DE INFO  setup:orders_page.py:157 clicked on Enroll Now button for Masters Program INFO  setup:orders_page.py:160 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:471 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:379 <class 'tuple'> INFO  setup:test_orders_and_payment_flow.py:382 course_data: ({'course_name': 'Automation Testing Masters Program', 'course_type': 'Online Bootcamp', 'base_price': '€ 1,390.00', 'final_price': '1,390.00'}, (['Credit Card', 'Paypal', 'Splitit', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'2checkout': 'Payment CTA appearing '}, {'Split_it': 'All option clickable and Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:386 Token No is: 90da675b2502e5ec4d69d890f66f8b147492c7deac689f357691f11922995dbc INFO  setup:test_orders_and_payment_flow.py:390 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:421 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 391, in test_Orders_and_Payment_Flow_masters_program sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 477, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/automation-testing-masters-program-certification-training-course INFO  setup:orders_page.py:30 Country Set to: SG INFO  setup:orders_page.py:157 clicked on Enroll Now button for Masters Program INFO  setup:orders_page.py:160 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:471 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:379 <class 'tuple'> INFO  setup:test_orders_and_payment_flow.py:382 course_data: ({'course_name': 'Automation Testing Masters Program', 'course_type': 'Online Bootcamp', 'base_price': '$ 1,390.00', 'final_price': '1,487.30'}, (['Credit Card', 'Paypal', 'Splitit', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'2checkout': 'Payment CTA appearing '}, {'Split_it': 'All option clickable and Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:386 Token No is: 3e9748b12c0079a32919abb197eeb6a19d696e913288e222bdb7235f94422bad INFO  setup:test_orders_and_payment_flow.py:390 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:421 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 391, in test_Orders_and_Payment_Flow_masters_program sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 477, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/automation-testing-masters-program-certification-training-course INFO  setup:orders_page.py:30 Country Set to: AE INFO  setup:orders_page.py:157 clicked on Enroll Now button for Masters Program INFO  setup:orders_page.py:160 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:471 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:379 <class 'tuple'> INFO  setup:test_orders_and_payment_flow.py:382 course_data: ({'course_name': 'Automation Testing Masters Program', 'course_type': 'Online Bootcamp', 'base_price': '$ 1,390.00', 'final_price': '1,390.00'}, (['Credit Card', 'Paypal', 'Splitit', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'2checkout': 'Payment CTA appearing '}, {'Split_it': 'All option clickable and Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:386 Token No is: 254b73bc3fb3f606d743bb4511c8bb1eb9e3583ff40785443c5fc08a5d444ed3 INFO  setup:test_orders_and_payment_flow.py:390 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:421 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 391, in test_Orders_and_Payment_Flow_masters_program sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 477, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/ui-ux-design-masters-program-certification-course INFO  setup:orders_page.py:30 Country Set to: IN INFO  setup:test_orders_and_payment_flow.py:410 Enroll Now button is not Appearing INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/ui-ux-design-masters-program-certification-course INFO  setup:orders_page.py:30 Country Set to: US INFO  setup:test_orders_and_payment_flow.py:410 Enroll Now button is not Appearing INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/ui-ux-design-masters-program-certification-course INFO  setup:orders_page.py:30 Country Set to: GB INFO  setup:test_orders_and_payment_flow.py:410 Enroll Now button is not Appearing INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/ui-ux-design-masters-program-certification-course INFO  setup:orders_page.py:30 Country Set to: AU INFO  setup:test_orders_and_payment_flow.py:410 Enroll Now button is not Appearing INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/ui-ux-design-masters-program-certification-course INFO  setup:orders_page.py:30 Country Set to: DE INFO  setup:test_orders_and_payment_flow.py:410 Enroll Now button is not Appearing INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/ui-ux-design-masters-program-certification-course INFO  setup:orders_page.py:30 Country Set to: SG INFO  setup:test_orders_and_payment_flow.py:410 Enroll Now button is not Appearing INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/ui-ux-design-masters-program-certification-course INFO  setup:orders_page.py:30 Country Set to: AE INFO  setup:test_orders_and_payment_flow.py:410 Enroll Now button is not Appearing INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/advanced-digital-marketing-certification-training-course INFO  setup:orders_page.py:30 Country Set to: IN INFO  setup:orders_page.py:157 clicked on Enroll Now button for Masters Program INFO  setup:orders_page.py:160 Payment Page Loaded INFO  setup:test_orders_and_payment_flow.py:471 <class 'tuple'> INFO  setup:ssvc_cart_page.py:316 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:379 <class 'tuple'> INFO  setup:test_orders_and_payment_flow.py:382 course_data: ({'course_name': 'Digital Marketing Specialist', 'course_type': 'Online Bootcamp', 'base_price': '₹ 54,407.00', 'final_price': '64,200.26'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', 'ShopSe EMI', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'Payment CTA appearing'}, {'EMI': 'Payment CTA appearing'}, {'CCAvenue': 'Payment CTA appearing'}, {'ShopSE EMI': 'Payment CTA appearing'}])) INFO  setup:test_orders_and_payment_flow.py:386 Token No is: 01c50611b96b35acf3c42e16078ce2cb281feeee4a41c57c40e19356c5d80f90 INFO  setup:test_orders_and_payment_flow.py:390 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:421 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 391, in test_Orders_and_Payment_Flow_masters_program sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 477, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/advanced-digital-marketing-certification-training-course INFO  setup:orders_page.py:30 Country Set to: US INFO  setup:orders_page.py:157 clicked on Enroll Now button for Masters Program INFO  setup:orders_page.py:160 Payment Page Loaded INFO  setup:test_orders_and_payment_flow.py:471 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:379 <class 'tuple'> INFO  setup:test_orders_and_payment_flow.py:382 course_data: ({'course_name': 'Digital Marketing Specialist', 'course_type': 'Online Bootcamp', 'base_price': '$ 1,649.00', 'final_price': '1,649.00'}, (['Credit Card', 'Paypal', 'Affirm', 'Splitit'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'Affirm': 'Payment CTA appearing '}, {'Split_it': 'All option clickable and Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:386 Token No is: cf74588a88f8c903f00dac82c035c6cc16f4e93f5b51a9d7b393ecd82505c7d2 INFO  setup:test_orders_and_payment_flow.py:390 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:421 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 391, in test_Orders_and_Payment_Flow_masters_program sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 477, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/advanced-digital-marketing-certification-training-course INFO  setup:orders_page.py:30 Country Set to: GB INFO  setup:orders_page.py:157 clicked on Enroll Now button for Masters Program INFO  setup:orders_page.py:160 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:471 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:379 <class 'tuple'> INFO  setup:test_orders_and_payment_flow.py:382 course_data: ({'course_name': 'Digital Marketing Specialist', 'course_type': 'Online Bootcamp', 'base_price': '£ 1,049.00', 'final_price': '1,049.00'}, (['Credit Card', 'Paypal', 'Splitit'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'Split_it': 'All option clickable and Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:386 Token No is: b336a8b132dde5ee0817929973222e0640475006703203e32881a229687df347 INFO  setup:test_orders_and_payment_flow.py:390 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:421 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 391, in test_Orders_and_Payment_Flow_masters_program sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 477, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/advanced-digital-marketing-certification-training-course INFO  setup:orders_page.py:30 Country Set to: AU INFO  setup:orders_page.py:157 clicked on Enroll Now button for Masters Program INFO  setup:orders_page.py:162 Payment Page is not Loaded ERROR  setup:test_orders_and_payment_flow.py:421 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 376, in test_Orders_and_Payment_Flow_masters_program self.pg_orders.click_enroll_now_for_masters(url) File "C:\test_repos\pre_sales_test_python\pages_prod\orders_page.py", line 169, in click_enroll_now_for_masters self.btn_enroll_now_masters_program.scroll_to_element() File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: btn_enroll_now_masters_program INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/advanced-digital-marketing-certification-training-course INFO  setup:orders_page.py:30 Country Set to: DE INFO  setup:orders_page.py:157 clicked on Enroll Now button for Masters Program INFO  setup:orders_page.py:160 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:471 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:379 <class 'tuple'> INFO  setup:test_orders_and_payment_flow.py:382 course_data: ({'course_name': 'Digital Marketing Specialist', 'course_type': 'Online Bootcamp', 'base_price': '€ 1,049.00', 'final_price': '1,049.00'}, (['Credit Card', 'Paypal', 'Splitit', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'2checkout': 'Payment CTA appearing '}, {'Split_it': 'All option clickable and Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:386 Token No is: ed57b51d47de43d13dd1e95b68418674e25d6207675e70402e083f683586c453 INFO  setup:test_orders_and_payment_flow.py:390 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:421 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 391, in test_Orders_and_Payment_Flow_masters_program sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 477, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/advanced-digital-marketing-certification-training-course INFO  setup:orders_page.py:30 Country Set to: SG INFO  setup:orders_page.py:157 clicked on Enroll Now button for Masters Program INFO  setup:orders_page.py:160 Payment Page Loaded ERROR  setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: city_dropdown INFO  setup:test_orders_and_payment_flow.py:471 <class 'tuple'> INFO  setup:ssvc_cart_page.py:336 Payment Deatils Entered INFO  setup:test_orders_and_payment_flow.py:379 <class 'tuple'> INFO  setup:test_orders_and_payment_flow.py:382 course_data: ({'course_name': 'Digital Marketing Specialist', 'course_type': 'Online Bootcamp', 'base_price': '$ 1,049.00', 'final_price': '1,122.43'}, (['Credit Card', 'Paypal', 'Splitit', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'2checkout': 'Payment CTA appearing '}, {'Split_it': 'All option clickable and Payment CTA appearing '}])) INFO  setup:test_orders_and_payment_flow.py:386 Token No is: 21535c3148ddb49b87f6085144ad3b3fa88af483a2d3ffa3846f22850086f9df INFO  setup:test_orders_and_payment_flow.py:390 RAW SQL Data: [] ERROR  setup:test_orders_and_payment_flow.py:421 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 391, in test_Orders_and_Payment_Flow_masters_program sql_items = self.convert_items_to_json(sql_data) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 477, in convert_items_to_json data = (data[0]['items']) IndexError: list index out of range INFO  setup:test_orders_and_payment_flow.py:370 Url Opened is: https://www.simplilearn.com/advanced-digital-marketing-certification-training-course INFO  setup:orders_page.py:30 Country Set to: AE INFO  setup:orders_page.py:157 clicked on Enroll Now button for Masters Program INFO  setup:orders_page.py:162 Payment Page is not Loaded ERROR  setup:test_orders_and_payment_flow.py:421 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 376, in test_Orders_and_Payment_Flow_masters_program self.pg_orders.click_enroll_now_for_masters(url) File "C:\test_repos\pre_sales_test_python\pages_prod\orders_page.py", line 165, in click_enroll_now_for_masters pytest.driver.get(url) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 333, in get self.execute(Command.GET, {'url': url}) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute self.error_handler.check_response(response) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: net::ERR_NAME_NOT_RESOLVED (Session info: headless chrome=108.0.5359.125)