Esempio n. 1
0
smp.select_one.click()
smp.dr.click()

# OLD STYLE SELECT MENU
smp.old_style_menu.select_drop('10')
smp.old_style_menu.select_drop('9')
smp.old_style_menu.select_drop('8')
smp.old_style_menu.select_drop('7')
smp.old_style_menu.select_drop('6')
smp.old_style_menu.select_drop('5')
smp.old_style_menu.select_drop('4')
smp.old_style_menu.select_drop('3')
smp.old_style_menu.select_drop('2')
smp.old_style_menu.select_drop('1')
smp.old_style_menu.select_drop('red')
browser.quit()
print('test passed')













Esempio n. 2
0
ip.post_fb_button.click()

# switch back to ig tab
browser1.switch_to.window(browser1.window_handles[0])
ip.close_share.click()
ip.close_image.click()

# FACEBOOK
browser2 = Drivers('--start-maximized').chrome()
fp = FacebookPage(driver=browser2)
fp.go()

# login to fb
fp.fb_user_input.input_text(user_gmail)
fp.fb_pw_input.input_text(pw_gmail)
fp.fb_login_button.click()

# go to shared image and get img name
fp.profile_button.click()
fb_img_name = fp.img_name.text

# validate image name
assert fb_img_name == ig_img_name
print(
    f'fb image name "{fb_img_name}" correspond to ig image name "{ig_img_name}"'
)
print('Test passed')

browser1.quit()
browser2.quit()