'Same as UserCanSelectOption, in inline inline_number.
Where inline_related_name should be the related_name option for the
foreign key used for the InlineModelAdmin.'

def __init__(self, case, inline_number, inline_related_name=None, **kwargs):

    self.inline_number = inline_number
    self.inline_related_name = (inline_related_name or case.inline_related_name)
    super(InlineSelectOption, self).__init__(case, **kwargs)
    self.field_container_selector = (u'#%s-%s    .field-%s' % (self.inline_related_name, self.inline_number, self.field_name))
    self.field_selector = (u'#id_%s-%s-%s' % (self.inline_related_name, self.inline_number, self.field_name))
    add = self.case.browser.find_link_by_partial_text(u'Add    another').first
    num = len(self.case.browser.find_by_css((u'.dynamic-%s' % self.inline_related_name)))
    while (num < (self.inline_number + 1)):
        add.click()
        try:
            self.case.browser.find_by_css(self.field_selector.replace(str(self.inline_number), str(num))).first
        except:
            continue
        num += 1
