Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to find the elements to connect while automating the Desktop GUI application #348

Open
poornima55 opened this issue Aug 26, 2021 · 0 comments

Comments

@poornima55
Copy link

poornima55 commented Aug 26, 2021

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")>]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant