1*b89977a4SRahul Maheshwari#!/usr/bin/python 2*b89977a4SRahul Maheshwari 3*b89977a4SRahul Maheshwarir""" 4*b89977a4SRahul MaheshwariThis is an extended user library to support Robot Selenium code. 5*b89977a4SRahul MaheshwariThe class contains functions which the robot framework will use 6*b89977a4SRahul Maheshwariand import as a user-defined keyword. 7*b89977a4SRahul Maheshwari""" 8*b89977a4SRahul Maheshwari 9*b89977a4SRahul Maheshwariimport socket 10*b89977a4SRahul Maheshwari 11*b89977a4SRahul Maheshwari 12*b89977a4SRahul Maheshwariclass supporting_libs(): 13*b89977a4SRahul Maheshwari 14*b89977a4SRahul Maheshwari def get_hostname_from_ip_address(self, ip): 15*b89977a4SRahul Maheshwari return socket.gethostbyaddr(ip)[0] 16