07-13-2022 10:02 AM
I'm attempting to modify this project
https://github.com/oborys/Selenium_automation_Adding_Cisco_Meraki_VPN_exclusion_rules to the current dashboard setup. I'm running into some issues with the 'add' button on the 'Local internet breakout' box.
I've tried several methods for the locator with various errors.
Using selectors hub I've confirmed the XPATH is //a[@class='btn btn-default'] but when I debug I get the error
'str' object is not callable
I haven't been able to locate the actual ID to try that. Inspecting the element I see that the below section contains the "Add"
<a class="btn btn-default" data-toggle="dropdown" data-domplate="href" href="#rule_menu_vpn_exclusion_shaper">
Add
<i class="fa fa-plus plus"></i>
</a>
If I try by tag name I get the error
Message: no such element: Unable to locate element: {"method":"tag name","selector":"//a[@class='btn btn-default']"}
Message: no such element: Unable to locate element: {"method":"tag name","selector":"fa fa-plus plus"}
Message: no such element: Unable to locate element: {"method":"tag name","selector":"add"}
If there is a better method for this I'm open to it but I didn't have much luck using autogui and I'd like this to be able to work from multiple pcs so using selenium would be preferred.
Solved! Go to Solution.
07-26-2022 02:13 PM
07-20-2022 10:36 AM
I ended up finishing the python script for this in the new gui. Using some selenium, pyautogui, and openpyxl. I'll post the generic code on GitHub and link it here.
07-26-2022 02:13 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide