Posts: 5
Threads: 1
Joined: Aug 2022
08-25-2022, 04:20 AM
(This post was last modified: 08-25-2022, 04:21 AM by wzirco.)
Is there a way to handle Multi Login using javascript from console?
I use the browser for selenium tests
I need something alternative
pyautogui.hotkey('alt', 'shift', 'o')
Posts: 6,237
Threads: 90
Joined: Oct 2014
Do you mean opening new Multi Login tabs using javascript from console?
Posts: 5
Threads: 1
Joined: Aug 2022
08-25-2022, 03:39 PM
(This post was last modified: 08-25-2022, 03:49 PM by wzirco.)
I mean Multi Login tabs
I can control the browser with the console using this code in Python .
Send javascript code through it
driver.execute_script(''' javascript code ''')
(08-25-2022, 02:18 PM)CentBrowser Wrote: Do you mean opening new Multi Login tabs using javascript from console?
Yas .
(08-25-2022, 02:18 PM)CentBrowser Wrote: Do you mean opening new Multi Login tabs using javascript from console?
I just want to open a new Multi Login tap
using console
Posts: 6,237
Threads: 90
Joined: Oct 2014
(08-25-2022, 03:39 PM)wzirco Wrote: ![[Image: Screenshot%202022-08-25%20173616.png]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6L9zysBTgkmuNijQ6vcVd_Fh8LHAY_qnMJ-ruoYRTwHzzbDB0q2dG_y9v9zwJTAHkY0Zb9dkp61LuzqMsbyej09C3GAdfDYrtRllcRBNxCWIXh5zy1nV9gsTz--GuQmcxU5_8_I5YKIahb86GpLlj6ZVmY-ITJoTzJxiV0_HGTX4QKb9mmeX7xeX1GQ/s1600/Screenshot%202022-08-25%20173616.png)
I mean Multi Login tabs
I can control the browser with the console using this code in Python .
Send javascript code through it
driver.execute_script(''' javascript code ''')
Yas .
I just want to open a new Multi Login tap
using console
This is not supported for now.
To do this, we need to change some Javascript method.
Posts: 5
Threads: 1
Joined: Aug 2022
(08-30-2022, 04:30 PM)CentBrowser Wrote: This is not supported for now.
To do this, we need to change some Javascript method.
I will be eagerly waiting for this update.
Good luck ❤️
Posts: 6,237
Threads: 90
Joined: Oct 2014
(08-30-2022, 04:42 PM)wzirco Wrote: I will be eagerly waiting for this update.
Good luck ❤️
You can use Selenium to send keys "Ctrl+M" instead.
Posts: 5
Threads: 1
Joined: Aug 2022
(08-31-2022, 04:11 PM)CentBrowser Wrote: You can use Selenium to send keys "Ctrl+M" instead.
selenium does not send keys to root,
It just sends it to element
It is possible to send commands to root only via execute_script("""
Javascript here """)
Is it possible to simulate keystrokes using Javascript?
Posts: 6,237
Threads: 90
Joined: Oct 2014
(08-31-2022, 04:24 PM)wzirco Wrote: selenium does not send keys to root,
It just sends it to element
It is possible to send commands to root only via execute_script("""
Javascript here """)
Is it possible to simulate keystrokes using Javascript?
You may refer to this link:
https://stackoverflow.com/questions/2848...l-selenium
Posts: 5
Threads: 1
Joined: Aug 2022
(09-01-2022, 03:14 PM)CentBrowser Wrote: You may refer to this link:
https://stackoverflow.com/questions/2848...l-selenium
I tried using
ActionChains(driver).key_down(Keys.ALT).key_down(Keys.SHIFT).key_down('O').perform()
AND
ActionChains(driver).key_down(Keys.ALT).key_down(Keys.SHIFT).send_keys("o").perform()
AND
actions = ActionChains(driver)
actions.send_keys(Keys.ALT + Keys.SHIFT + 'o')
actions.perform()
![[Image: Screenshot%202022-09-01%20231740.png]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSiP2jnH8Yeho3hewmzfi_AvzwI3YeCpGd_JQO831nGCbQ61eAYbiw1BE4pCP7KSHlZO3cvDiYjiGUPOEyvXsCLLxrpz142Qnl-JggUETlUuMPILPSAB9zrHvUQROklWs4rlLufXMHjeDljwPYynStgl2YUVDka5V9ic3ja1JvWPjqupSaDUDe9z-ygg/s1096/Screenshot%202022-09-01%20231740.png)
Where is the extension used in Multilogin? Can I find the source code? ❤️
Posts: 6,237
Threads: 90
Joined: Oct 2014
(09-01-2022, 09:23 PM)wzirco Wrote: I tried using
ActionChains(driver).key_down(Keys.ALT).key_down(Keys.SHIFT).key_down('O').perform()
AND
ActionChains(driver).key_down(Keys.ALT).key_down(Keys.SHIFT).send_keys("o").perform()
AND
actions = ActionChains(driver)
actions.send_keys(Keys.ALT + Keys.SHIFT + 'o')
actions.perform()
![[Image: Screenshot%202022-09-01%20231740.png]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSiP2jnH8Yeho3hewmzfi_AvzwI3YeCpGd_JQO831nGCbQ61eAYbiw1BE4pCP7KSHlZO3cvDiYjiGUPOEyvXsCLLxrpz142Qnl-JggUETlUuMPILPSAB9zrHvUQROklWs4rlLufXMHjeDljwPYynStgl2YUVDka5V9ic3ja1JvWPjqupSaDUDe9z-ygg/s1096/Screenshot%202022-09-01%20231740.png)
Where is the extension used in Multilogin? Can I find the source code? ❤️
No, it is not implemented by extension.