Inflectra Customer Forums: Automate signing out of Spira using Selenium (Thread) Hi all, There are some values of interest that the Spira UI does not provide -- a good example is: in a test set, there's a list of test cases and pass/fail/not-run, but no counts for these, and no count of the number of test cases in the set. It's something you'd honestly expect to see, and it would be useful, but it's not there. What we're doing is pointing python + selenium at the test set pages, scraping the information we need (find by xPath, etc.) and going from there. Sort of a wrapper to Spira's UI. However, we are having trouble logging out from Spira (since only one session is allowed, having that session still logged in brings up that "your account is logged in in multiple locations" screen). There's a log out link ('//a[.="Log Out"]') but by default it's not visible. You need to click on a dropdown which is apparently a div of class "PopupButton"; but doing that apparently is not enough. What's a good way to programatically log of of Spira? Thanks for your attention, your product is really great en-US(C) Copyright 2006-2024 Inflectra Corporation.support@inflectra.com/Computers/Software/Project_Management//Computers/Software/Quality_Assurance/KronoDesksupport@inflectra.comhttp://www.inflectra.com/kronodesk/forums/threads120/Support/Forum/spiratest/issues-questions/1264.aspxthreadId=1264Scott O (soglesby@hytrust.com)Automate signing out of Spira using Selenium Hi all, There are some values of interest that the Spira UI does not provide -- a good example is: in a test set, there's a list of test cases and pass/fail/not-run, but no counts for these, and no count of the number of test cases in the set. It's something you'd honestly expect to see, and it would be useful, but it's not there. What we're doing is pointing python + selenium at the test set pages, scraping the information we need (find by xPath, etc.) and going from there. Sort of a wrapper to Spira's UI. However, we are having trouble logging out from Spira (since only one session is allowed, having that session still logged in brings up that "your account is logged in in multiple locations" screen). There's a log out link ('//a[.="Log Out"]') but by default it's not visible. You need to click on a dropdown which is apparently a div of class "PopupButton"; but doing that apparently is not enough. What's a good way to programatically log of of Spira? Thanks for your attention, your product is really great Fri, 24 Jul 2015 18:28:32 -04002015-07-24T18:36:40-04:00/Support/Forum/spiratest/issues-questions/1264.aspxmessageId=2256Scott O (soglesby@hytrust.com) Found it: driver.find_element_by_css_selector("#tstGlobalNavigation_mnuUserOptions > div. Found it: driver.find_element_by_css_selector("#tstGlobalNavigation_mnuUserOptions > div.PopupButton").click() driver.find_element_by_link_text("Log Out").click() Fri, 24 Jul 2015 18:36:40 -04002015-07-24T18:36:40-04:00/Support/Forum/spiratest/issues-questions/1264.aspx#reply2256