'How to select gender radio button in Facebook while both female and male class names same

How to select gender radio button in Facebook using selenium when it has common class for both male and female and other attributes are alphanumeric for both male and female???



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source