-
-
Notifications
You must be signed in to change notification settings - Fork 768
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
WS : Websocket to get StoredVars #1855
Comments
So far I have not found a solution to pass external values to the SIDE file. Issue 1854 Here is my first solution: Unfortunately, the use of defined values outside the script such as "se_username" or "se_password" from the SIDE file does not work. However, if these are defined within the script, you will receive the values that you can continue to use: executeScript{ ... Attempts with Node.js server and this script only returned the first value. After switching to a high-performance Apache with PHP, the values are delivered without any problems. executeAsyncScriptMultiple attempts to convert this script to async script "executeAsyncScript" have failed: JavascriptError: javascript error: Unexpected token '.' Can someone try to change this script to an asyc-script which works with "executeAsyncScript"? |
This is super friggin awesome. I'm sorry, I'm going through a phase of my life where I'm just sleeping 11 hours a night. Normally I'd be all about getting it working with you, but I basically just don't have it at this point in my life. I'm hoping I find the motivation again soon, but mostly these days I just sleep. |
@toddtarsi hope you are better now ;-) @spea1 i don't see how you get information from SIDE, do you have a details sample on how to get StoredVars ? For WebSocket from Python in don't know the location of StoredVars, but I can display a lot of information with this sample script |
🚀 Feature Proposal
I managed to make call on Selenium IDE from python using WebSocket.
We make the websoket on the url available here http://127.0.0.1:8315/json
We can make a lot of things, but currently we didn't find a way to get the values of the StoredVars
Motivation
Using Selenium IDE api is very usefull.
And currently we can't ready stored Variables by a websocket call ...
We need to have something like : window.sideAPI.variables.getAll()
and window.sideAPI.variables.get('VARNAME')
If we can set variables directly it can be great too ...
Example
import asyncio
import websockets
import json
async def send_command():
uri = "ws://127.0.0.1:8315/devtools/page/1AC762E0E631389A7B1983635436BD96"
async with websockets.connect(uri) as websocket:
print("Connected to the WebSocket server")
Envoyer la commande pour exécuter window.sideAPI.state.get()
asyncio.run(send_command())
The text was updated successfully, but these errors were encountered: