You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do not have much knowledge of GUI automation. With my limited knowledge, I am trying to automate the desktop app.
I have the Cisco Anyconnect Desktop GUI application to automate. Below is my piece of python script.
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
The app will start. But I am not able to know the elements to connect to or control in further automating. I tried to print the elements using driver.find_elements_by_xpath("[starts-with(, *)]").
It prints the below output which is not useful. Can anyone please help me to know the elements or the ids?
[<selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="65758-1")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="3933500-2")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="68142-3")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="395530-4")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="132120-5")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="6294022-6")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="1114846-7")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="67690-8")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="1115912-9")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="9110544-10")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="133102-11")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="264708-12")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="984490-13")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="656782-14")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="656126-15")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="20578330-16")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="132294-17")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="131262-18")>]
The text was updated successfully, but these errors were encountered:
I do not have much knowledge of GUI automation. With my limited knowledge, I am trying to automate the desktop app.
I have the Cisco Anyconnect Desktop GUI application to automate. Below is my piece of python script.
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
driver = webdriver.Remote(command_executor='http://localhost:9999',
desired_capabilities={
"debugConnectToRunningApp": 'false',
'app': r'C:\Program Files (x86)\Cisco\Cisco AnyConnect Secure Mobility Client\vpnui.exe'})
#ele = driver.find_elements_by_name("")
#print(ele)
ele= driver.find_elements_by_xpath("[starts-with(*, *)]")
print(ele)
#window = driver.find_element_by_class_name('CiscoAnyConnectSecureMobilityClient')
#view_menu_item = window.find_element_by_name('Readytoconnect.').send_keys('10.86.0.249')
The app will start. But I am not able to know the elements to connect to or control in further automating. I tried to print the elements using driver.find_elements_by_xpath("[starts-with(, *)]").
It prints the below output which is not useful. Can anyone please help me to know the elements or the ids?
[<selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="65758-1")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="3933500-2")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="68142-3")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="395530-4")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="132120-5")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="6294022-6")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="1114846-7")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="67690-8")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="1115912-9")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="9110544-10")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="133102-11")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="264708-12")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="984490-13")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="656782-14")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="656126-15")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="20578330-16")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="132294-17")>, <selenium.webdriver.remote.webelement.WebElement (session="AwesomeSession", element="131262-18")>]
The text was updated successfully, but these errors were encountered: