Get currently running sessionId
See original GitHub issueThe problem
I am writing a python script to retrieve the page source of my app through
driver.page_source
Appium returns them in XML but I want it in JSON. So I try to send raw HTTP requests to Appium server, but I need the sessionId for that. I tried
self.driver.session_id
but apparently it gives a new sessionId.
Is there any workaround for this?
Or even better, is there a way to get page_source without having Appium parse it to XML?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to get current session id ? — oracle-tech
You can obtain current session ID using default namespace sys_context of Oracle. Use Following query. select sys_context('userenv' ...
Read more >How to find the session id of running jobs - DBA Stack Exchange
Trying to get the session id of executing jobs ... intr1) - charindex(':', intr1) - 1) ,SessionId = spid FROM master.dbo.sysprocesses x ...
Read more >How to find session id and process name - Microsoft Q&A
I am having a scenario that I would like to find the session id associated with the SQLQUERYNOTIFICATIONSERVICE running in my test database....
Read more >SQL SERVER – Get Query Running in Session
You can find a range of active session IDs in your system by running system stored procedure sp_who2. The following is the resultset...
Read more >How can I retrieve the Session ID from command line?
It will display the name and session# of each process running. If you are logged in locally then look at the ID for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Is this for iOS device thing? Then, you can call https://github.com/appium/WebDriverAgent/blob/a1824895274c60798b506f31054e4ce1e0400c71/WebDriverAgentLib/Commands/FBDebugCommands.m#L28 like
http://<device ip>:<port>/source?format=json
from the Appium/WDA (or via portforwarding) without session id. this may help.It is expected. Appium itself does not provide the feature since it follows W3C WebDeiver spec.