When I use the recording tool to record the electron application, I cannot jump to the page after clicking login.
When I use the recording tool to record the electron application, I cannot jump to the page after clicking login. I suspect that the recording tool prevents the page jumping. Is there any function or method to stop the monitoring of the recording tool? I tried "ESC", the js script is still working, I would like to know the way to turn off the recording tool script completely, Thanks!
On a regular web application being recorded, there is a red border indicating that the recording is active. Pressing ESC removes the border, indicating that the recording has stopped. The recorder does support cross-domain recordings as long as there are URLs. Electron Apps might not be fully supported, as the Recorder is meant for web pages that have URLs and sessionStorage.
I found the problem, in seleniumbase/js_code/recorder_js.py
document.body.addEventListener('mouseover', function (event) {
reset_if_recorder_undefined();
if (sessionStorage.getItem('pause_recorder') === 'yes') return;
const el = event.target;
const selector = getBestSelector(el);
if (!selector.startsWith('body') && !selector.includes('div')) {
document.title = selector;
}
});
This if statement affects the page jump.
if (!selector.startsWith('body') && !selector.includes('div')) {
document.title = selector;
}
What is the function of this if statement?
When hovering over elements with the mouse, the title shown at the top of the web browser becomes the selector of the element being hovered over (assuming the selector is clean and not too long).