Skip to content

How to execute javascript code with line more than 1 #175

Closed Answered by Chetan11-dev
xNeizy asked this question in Q&A
Discussion options

You must be logged in to vote

driver.run_js('''
const slider = document.querySelector('.secsdk-captcha-drag-wrapper');

if (slider) {
const mousedownEvent = new MouseEvent('mousedown', {
bubbles: true,
cancelable: true,
view: window,
button: 0 // Left button
});

''')

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by xNeizy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants