import yaml

class Yamloption:
    def __init__(self,locator_file):
        with open(locator_file)as yaml_file:
            self.data= yaml.load(yaml_file,yaml.FullLoader)

    def get_locat(self,page,local):
        return self.data[page][local]
