CentBrowser Forum
Is there a way to handle Multi Login using javascript from console? - Printable Version

+- CentBrowser Forum (https://www.centbrowser.net/en)
+-- Forum: Members Area (https://www.centbrowser.net/en/forumdisplay.php?fid=3)
+--- Forum: General Discuss (https://www.centbrowser.net/en/forumdisplay.php?fid=5)
+--- Thread: Is there a way to handle Multi Login using javascript from console? (/showthread.php?tid=4480)



Is there a way to handle Multi Login using javascript from console? - wzirco - 08-25-2022

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')


RE: Is there a way to handle Multi Login using javascript from console? - CentBrowser - 08-25-2022

Do you mean opening new Multi Login tabs using javascript from console?


RE: Is there a way to handle Multi Login using javascript from console? - wzirco - 08-25-2022

[Image: 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 ''')
(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


RE: Is there a way to handle Multi Login using javascript from console? - CentBrowser - 08-30-2022

(08-25-2022, 03:39 PM)wzirco Wrote: [Image: 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.


RE: Is there a way to handle Multi Login using javascript from console? - wzirco - 08-30-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 ❤️


RE: Is there a way to handle Multi Login using javascript from console? - CentBrowser - 08-31-2022

(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.


RE: Is there a way to handle Multi Login using javascript from console? - wzirco - 08-31-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?


RE: Is there a way to handle Multi Login using javascript from console? - CentBrowser - 09-01-2022

(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/28482297/send-keys-not-to-element-but-in-general-selenium


RE: Is there a way to handle Multi Login using javascript from console? - wzirco - 09-01-2022

(09-01-2022, 03:14 PM)CentBrowser Wrote: You may refer to this link:
https://stackoverflow.com/questions/28482297/send-keys-not-to-element-but-in-general-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]

Where is the extension used in Multilogin? Can I find the source code? ❤️




RE: Is there a way to handle Multi Login using javascript from console? - CentBrowser - 09-05-2022

(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]

Where is the extension used in Multilogin? Can I find the source code? ❤️

No, it is not implemented by extension.