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

Running selenium recorder from terminal #1827

Open
Ashish3080 opened this issue May 9, 2024 · 5 comments
Open

Running selenium recorder from terminal #1827

Ashish3080 opened this issue May 9, 2024 · 5 comments

Comments

@Ashish3080
Copy link

💬 Questions and Help

I want to use selenium recorder from command line.
so how can I directly start the recording without using Selenium IDE UI.

@toddtarsi
Copy link
Contributor

Oh gosh, I'm sorry I haven't explored that possibility space. Although, @corevo once did some work to go down that path. If you'd like to invest in it's development, the tool is mostly functional here:

https://github.com/SeleniumHQ/selenium-ide/tree/trunk/packages/side-cli

We are looking at doing a pretty big architectural change soon when we'll look at making it so the IDE can basically be injected into any browser via preload scripts. However, we aren't there quite yet.

@toddtarsi
Copy link
Contributor

The main pain point that needs to happen to allow use case flexibility like this is that a secure communication protocol needs to be provided to the preload scripts from the host process so that elevated access can be given in a secure way.

@Ashish3080
Copy link
Author

Hi @toddtarsi thanks for the reply. I am using python for the record and playback of web elements. I have the playback file, where it follows the .side file to playback the recorded events. But I don't have the recorder to record the elements with their locators (xpath\css\ID\name) during runtime, which is creating a bottleneck in my project.

@toddtarsi
Copy link
Contributor

toddtarsi commented May 10, 2024

Are you able to maintain the side file in Selenium IDE v4? I would recommend working in the IDE for recording and playback, and then when you want to do python playback locally or via CI, you should re-transpile your side file to python using side-code-export.

npm i side-code-export @seleniumhq/code-export-python-pytest 
side-code-export @seleniumhq/code-export-python-pytest input.side /py-tests

@toddtarsi
Copy link
Contributor

At some point, I'm going to revisit how the code sits next to the IDE, but there unfortunately isn't bidirectional awareness there yet.

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

2 participants