pandorafms/tests/console/PAN1.py

27 lines
957 B
Python
Raw Normal View History

2016-05-24 18:15:46 +02:00
# -*- coding: utf-8 -*-
from include.common_classes_60 import PandoraWebDriverTestCase
from include.common_functions_60 import login, click_menu_element
2016-05-24 18:15:46 +02:00
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException
import unittest, time, re
class PAN1(PandoraWebDriverTestCase):
test_name = u'PAN_1'
test_description = u'Tests that an Administrator user can access the Setup'
tickets_associated = []
def test_pan1(self):
driver = self.driver
login(driver,"admin","pandora",self.base_url)
2016-06-14 18:35:01 +02:00
detect_and_pass_all_wizards(driver)
click_menu_element(driver,"General Setup")
2016-05-24 18:15:46 +02:00
self.assertEqual("IP list with API access", driver.find_element_by_id("table2-15-0").text)
if __name__ == "__main__":
unittest.main()