TiledViz
Loading...
Searching...
No Matches
modify_session_with_nodejs Namespace Reference

Classes

class  MyListener

Functions

 parse_args (argv)

Variables

str LOGIN_ = "ddurandi"
str PASSWORD_ = "OtherP@ssw/31d"
str SESSION_ = "TestSession"
int NBTILESET_ = 1
str URL = 'http://localhost:5000'
 firefox_profile = webdriver.FirefoxProfile()
 driver = webdriver.Firefox(firefox_profile=firefox_profile)
 finddriver = EventFiringWebDriver(driver, MyListener())
 args = parse_args(sys.argv)
 LoginPage = finddriver.find_element_by_xpath("//button[@name='buttonLogin']")
dict testform = {"username":args.login,"password":args.password}
 inputElement = finddriver.find_element_by_id(t)
 remember_me = finddriver.find_element_by_id("remember_me")
 choose_session = finddriver.find_element_by_xpath("//input[@id='choice_project-1']")
 el = finddriver.find_element_by_id("submit")
 my_own_session = args.mysession
 sessionfilter = finddriver.find_element_by_id("filter_chosen_project_session")
 goButton = finddriver.find_element_by_id("Valid_chosen_project_session")
 edit_session = finddriver.find_element_by_xpath('//input[@value="Edit session before grid"]')
 idTileset = args.tilesetmodifs[2*ts]
 choose_ts = finddriver.find_element_by_xpath("//label[contains(., '"+idTileset+"')]/input")
 edit_ts = finddriver.find_element_by_xpath("//form[@id='login-form']/input[@id='edit']")
 elem = finddriver.find_element_by_xpath("//textarea[@id='json_tiles_text']")
 jsfile = args.tilesetmodifs[2*ts+1]
 fdfile = open(jsfile)
 data = fdfile.read()

Detailed Description

Modify TiledViz sessions with Selenium

Function Documentation

◆ parse_args()

parse_args ( argv)

Definition at line 22 of file modify_session_with_nodejs.py.

Variable Documentation

◆ args

modify_session_with_nodejs.args = parse_args(sys.argv)

Definition at line 75 of file modify_session_with_nodejs.py.

◆ choose_session

modify_session_with_nodejs.choose_session = finddriver.find_element_by_xpath("//input[@id='choice_project-1']")

Definition at line 98 of file modify_session_with_nodejs.py.

◆ choose_ts

modify_session_with_nodejs.choose_ts = finddriver.find_element_by_xpath("//label[contains(., '"+idTileset+"')]/input")

Definition at line 131 of file modify_session_with_nodejs.py.

◆ data

modify_session_with_nodejs.data = fdfile.read()

Definition at line 153 of file modify_session_with_nodejs.py.

◆ driver

modify_session_with_nodejs.driver = webdriver.Firefox(firefox_profile=firefox_profile)

Definition at line 69 of file modify_session_with_nodejs.py.

◆ edit_session

modify_session_with_nodejs.edit_session = finddriver.find_element_by_xpath('//input[@value="Edit session before grid"]')

Definition at line 119 of file modify_session_with_nodejs.py.

◆ edit_ts

modify_session_with_nodejs.edit_ts = finddriver.find_element_by_xpath("//form[@id='login-form']/input[@id='edit']")

Definition at line 136 of file modify_session_with_nodejs.py.

◆ el

modify_session_with_nodejs.el = finddriver.find_element_by_id("submit")

Definition at line 101 of file modify_session_with_nodejs.py.

◆ elem

modify_session_with_nodejs.elem = finddriver.find_element_by_xpath("//textarea[@id='json_tiles_text']")

Definition at line 139 of file modify_session_with_nodejs.py.

◆ fdfile

modify_session_with_nodejs.fdfile = open(jsfile)

Definition at line 149 of file modify_session_with_nodejs.py.

◆ finddriver

modify_session_with_nodejs.finddriver = EventFiringWebDriver(driver, MyListener())

Definition at line 73 of file modify_session_with_nodejs.py.

◆ firefox_profile

modify_session_with_nodejs.firefox_profile = webdriver.FirefoxProfile()

Definition at line 68 of file modify_session_with_nodejs.py.

◆ goButton

modify_session_with_nodejs.goButton = finddriver.find_element_by_id("Valid_chosen_project_session")

Definition at line 109 of file modify_session_with_nodejs.py.

◆ idTileset

modify_session_with_nodejs.idTileset = args.tilesetmodifs[2*ts]

Definition at line 128 of file modify_session_with_nodejs.py.

◆ inputElement

modify_session_with_nodejs.inputElement = finddriver.find_element_by_id(t)

Definition at line 91 of file modify_session_with_nodejs.py.

◆ jsfile

modify_session_with_nodejs.jsfile = args.tilesetmodifs[2*ts+1]

Definition at line 147 of file modify_session_with_nodejs.py.

◆ LOGIN_

str modify_session_with_nodejs.LOGIN_ = "ddurandi"

Definition at line 17 of file modify_session_with_nodejs.py.

◆ LoginPage

modify_session_with_nodejs.LoginPage = finddriver.find_element_by_xpath("//button[@name='buttonLogin']")

Definition at line 85 of file modify_session_with_nodejs.py.

◆ my_own_session

modify_session_with_nodejs.my_own_session = args.mysession

Definition at line 106 of file modify_session_with_nodejs.py.

◆ NBTILESET_

int modify_session_with_nodejs.NBTILESET_ = 1

Definition at line 20 of file modify_session_with_nodejs.py.

◆ PASSWORD_

str modify_session_with_nodejs.PASSWORD_ = "OtherP@ssw/31d"

Definition at line 18 of file modify_session_with_nodejs.py.

◆ remember_me

modify_session_with_nodejs.remember_me = finddriver.find_element_by_id("remember_me")

Definition at line 95 of file modify_session_with_nodejs.py.

◆ SESSION_

str modify_session_with_nodejs.SESSION_ = "TestSession"

Definition at line 19 of file modify_session_with_nodejs.py.

◆ sessionfilter

modify_session_with_nodejs.sessionfilter = finddriver.find_element_by_id("filter_chosen_project_session")

Definition at line 108 of file modify_session_with_nodejs.py.

◆ testform

dict modify_session_with_nodejs.testform = {"username":args.login,"password":args.password}

Definition at line 89 of file modify_session_with_nodejs.py.

◆ URL

str modify_session_with_nodejs.URL = 'http://localhost:5000'

Definition at line 66 of file modify_session_with_nodejs.py.