CUCM Selenium, inability to skip steps

When dealing with CUCM, one of the things you need to take notice of is that you are dealing with Tomcat JSP's. This means that even through there are URL shortcuts, you can not take them when automating.

Example:
'https://'+host+'/ccmservice/communitystring.jsp?NodeID='+(host)+'.'+(domain)+'&action=add'

This is the third step, after you have selected the server and then clicked the Add New button.  While you would think you can just negate all the clicking and go directly to the URL and have shorter code, you cannot.  You must click through as if you were doing it manually.

So you really have to use all this:
elem = driver.find_element_by_name("submit1")
elem.click()
elem = driver.find_element_by_name("button1")
elem.click()
elem = driver.find_element_by_name("communityString")
elem.send_keys(communityString)

Comments

Popular posts from this blog

Adding 2 Factor Authentication to Guacamole through Duo and Yubikey

Policy Based Routing on a Nexus