class FramePage(WebPage): def __init__(self, url, title=None, domain=None): super(FramePage, self).__init__(url, title, domain) i_frame = FrameSection(By.id("iframeResult")) try_it_button = Button(By.link_text("Try it Yourself »"))
class HomePage(WebPage): def __init__(self, url, title): super(HomePage, self).__init__(url=url, title=title) about = Link(By.link_text("About")) logo_image = Image(By.css(".epam-logo img")) text_item = Text(By.css(".main-txt"))
class Footer(Section): about_link = Link(By.link_text("About"))