blob: ae7d0054150b9bba50ee8174e6c7aa9786a72ec3 [file] [log] [blame]
George Keishinge7e91712021-09-03 11:28:44 -05001#!/usr/bin/env python3
Sathyajith M Se6956c02017-08-16 01:50:17 -05002
3r"""
4This is an extended user library to support Robot Selenium code.
5The class contains functions which the robot framework will use
6and import as a user-defined keyword.
7"""
8
9import socket
10
Gunnar Mills096cd562018-03-26 10:19:12 -050011
Patrick Williams20f38712022-12-08 06:18:26 -060012class supporting_libs:
Sathyajith M Se6956c02017-08-16 01:50:17 -050013 def get_hostname_from_ip_address(self, ip):
14 return socket.gethostbyaddr(ip)[0]