mangroveorg/datawinners

View on GitHub
func_tests/pages/projectspage/projects_locator.py

Summary

Maintainability
A
55 mins
Test Coverage
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8

from framework.utils.common_utils import *

# By default every locator should be CSS
# Abbr:
# TB - Text Box
# CB - Check Box
# RB - Radio Button
# BTN - Button
# DD - Drop Down
# LINK - Links
# LABEL - Label


# variable to access locators
LOCATOR = "locator"
BY = "by"

# PROJECT_LINK_XPATH = '//a[@class="project-id-class" and text()="%s"]'
PROJECT_LINK_XPATH = '//table//tr//td//a[text()="%s"]'
ALL_PROJECTS_TABLE_LINK = by_css("table")
CREATE_A_NEW_PROJECT_LINK = by_id("create_project_link")