George Keishing | e7e9171 | 2021-09-03 11:28:44 -0500 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
Sathyajith M S | e6956c0 | 2017-08-16 01:50:17 -0500 | [diff] [blame] | 2 | |
| 3 | r""" |
| 4 | This is an extended user library to support Robot Selenium code. |
| 5 | The class contains functions which the robot framework will use |
| 6 | and import as a user-defined keyword. |
| 7 | """ |
| 8 | |
| 9 | import socket |
| 10 | |
Gunnar Mills | 096cd56 | 2018-03-26 10:19:12 -0500 | [diff] [blame] | 11 | |
Sathyajith M S | e6956c0 | 2017-08-16 01:50:17 -0500 | [diff] [blame] | 12 | class supporting_libs(): |
| 13 | |
| 14 | def get_hostname_from_ip_address(self, ip): |
| 15 | return socket.gethostbyaddr(ip)[0] |