Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98221

Pyhton method not running but selnium code does

$
0
0

I'm into automation using selenium in python which consist of normal python methods and selenium codes. when I run the entire program, only selenium is executing but not the methods. I tried so hard googling but couldn't find out. Please help me to resolve this.

code which is not executing:

def setup_function(function):
    '''
    This setup runs before EACH test function
    '''
    print`enter code here`
    '+++ Beginning setup before test function +++'
    mCommonToolKits.prep_device(disable_popup=False, disable_oobe=False, stay_awake=False, unlock_screen=False,
                                rotate_device_to_portrait=False)


# To register the device
def test_register():
    # expectedText = commonConstants.DEVICE_LOCALE_ACCOUNT_INFO[locale][2]
    # Register Device
    res = mCommonToolKits.register_device(regs_account_name, regs_account_pwd, "")
    assert res == True, 'Failed to register to (%s)' % regs_account_name
    time.sleep(5)

Viewing all articles
Browse latest Browse all 98221

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>