gladiaio / gladia-samples

22 stars 4 forks source link

Google Meet bot #27

Open gHashTag opened 4 months ago

gHashTag commented 4 months ago

I'm launching the bot according to your tutorial and encountered an error that I can't overcome. What am I doing wrong?

EE) Server is already active for display 1
        If this server is no longer running, remove /tmp/.X1-lock
        and start again.
(EE)
Meet
Traceback (most recent call last):
  File "/app/gmeet.py", line 238, in join_meet
    driver.find_element(
  File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 861, in find_element
    return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 444, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py", line 249, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="yDmH0d"]/c-wiz/div/div/div[14]/div[3]/div/div[2]/div[4]/div/div/div[2]/div[1]/div[1]/div[3]/label/input"}
  (Session info: chrome=108.0.5359.124)
Stacktrace:
#0 0x555555bbe2a3 <unknown>
#1 0x55555597cf77 <unknown>
#2 0x5555559b980c <unknown>
#3 0x5555559b9a71 <unknown>
#4 0x5555559f3734 <unknown>
#5 0x5555559d9b5d <unknown>
#6 0x5555559f147c <unknown>
#7 0x5555559d9903 <unknown>
#8 0x5555559acece <unknown>
#9 0x5555559adfde <unknown>
#10 0x555555c0e63e <unknown>
#11 0x555555c11b79 <unknown>
#12 0x555555bf489e <unknown>
#13 0x555555c12a83 <unknown>
#14 0x555555be7505 <unknown>
#15 0x555555c33ca8 <unknown>
#16 0x555555c33e36 <unknown>
#17 0x555555c4f333 <unknown>
#18 0x7ffffffa3ea7 start_thread

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/gmeet.py", line 434, in <module>
    asyncio.run(join_meet())
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
(EE) 
Fatal server error:
(EE) Server is already active for display 1
        If this server is no longer running, remove /tmp/.X1-lock
        and start again.
(EE) 
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/app/gmeet.py", line 265, in join_meet
    driver.find_element(
  File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 861, in find_element
    return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 444, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py", line 249, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="yDmH0d"]/c-wiz/div/div/div[14]/div[3]/div/div[2]/div[4]/div/div/div[2]/div[1]/div[2]/div[1]/div[1]/button"}
  (Session info: chrome=108.0.5359.124)
Stacktrace:
#0 0x555555bbe2a3 <unknown>
#1 0x55555597cf77 <unknown>
#2 0x5555559b980c <unknown>
#3 0x5555559b9a71 <unknown>
#4 0x5555559f3734 <unknown>
#5 0x5555559d9b5d <unknown>
#6 0x5555559f147c <unknown>
#7 0x5555559d9903 <unknown>
#8 0x5555559acece <unknown>
#9 0x5555559adfde <unknown>
#10 0x555555c0e63e <unknown>
#11 0x555555c11b79 <unknown>
#12 0x555555bf489e <unknown>
#13 0x555555c12a83 <unknown>
#14 0x555555be7505 <unknown>
#15 0x555555c33ca8 <unknown>
#16 0x555555c33e36 <unknown>
#17 0x555555c4f333 <unknown>
#18 0x7ffffffa3ea7 start_thread
mehrancodes commented 4 months ago

caught same error here today. looks like it can not find the element with XPath //*[@id="yDmH0d"]/c-wiz/div/div/div[14]/div[3]/div/div[2]/div[4]/div/div/div[2]/div[1]/div[2]/div[1]/div[1]/button.

I tried to find the correct path but no success yet. not sure where this button is.

There is probably a new path we need to get as Google got some UI updates recently

KuzNet commented 3 months ago

//*[@id="yDmH0d"]/c-wiz/div/div/div[14]/div[3]/div/div[2]/div[4]/div/div/div[2]/div[1]/div[2]/div[1]/div[1]/button/span

just add span

techno-key commented 2 months ago

ss1

Still facing same error even after adding span

meerbex commented 1 month ago

any updates here about /*[@id="yDmH0d"]/c-wiz/div/div/div[14]/div[3]/div/div[2]/div[4]/div/div/div[2]/div[1]/div[2]/div[1]/div[1]/button ? Did someone find the updated version?

techno-key commented 1 month ago

its not a scalable bot aolution

On Mon, 27 May 2024 at 4:46 PM, Meerbek Akimzhanov @.***> wrote:

any updates here about @.*** https://github.com/id="yDmH0d"]/c-wiz/div/div/div[14]/div[3]/div/div[2]/div[4]/div/div/div[2]/div[1]/div[2]/div[1]/div[1]/button ? Did someone find the updated version?

— Reply to this email directly, view it on GitHub https://github.com/gladiaio/gladia-samples/issues/27#issuecomment-2133256679, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASU35RTISNGWEMGUDTU66OLZEMI2XAVCNFSM6AAAAABEAHAQUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZTGI2TMNRXHE . You are receiving this because you commented.Message ID: @.***>

meerbex commented 1 month ago

wdm? by not scalable bot solution?

its not a scalable bot aolution On Mon, 27 May 2024 at 4:46 PM, Meerbek Akimzhanov @.> wrote: any updates here about @. https://github.com/id="yDmH0d"]/c-wiz/div/div/div[14]/div[3]/div/div[2]/div[4]/div/div/div[2]/div[1]/div[2]/div[1]/div[1]/button ? Did someone find the updated version? — Reply to this email directly, view it on GitHub <#27 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASU35RTISNGWEMGUDTU66OLZEMI2XAVCNFSM6AAAAABEAHAQUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZTGI2TMNRXHE . You are receiving this because you commented.Message ID: @.***>

wdm? by not scalable bot solution? what is wrong?

techno-key commented 1 month ago

gmeet detects it every few times

On Mon, May 27, 2024 at 4:52 PM Meerbek Akimzhanov @.***> wrote:

wdm? by not scalable bot solution?

its not a scalable bot aolution … <#m973452723342513349> On Mon, 27 May 2024 at 4:46 PM, Meerbek Akimzhanov @.> wrote: any updates here about @. https://github.com/id="yDmH0d"]/c-wiz/div/div/div[14]/div[3]/div/div[2]/div[4]/div/div/div[2]/div[1]/div[2]/div[1]/div[1]/button ? Did someone find the updated version? — Reply to this email directly, view it on GitHub <#27 (comment) https://github.com/gladiaio/gladia-samples/issues/27#issuecomment-2133256679>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASU35RTISNGWEMGUDTU66OLZEMI2XAVCNFSM6AAAAABEAHAQUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZTGI2TMNRXHE . You are receiving this because you commented.Message ID: @.***>

wdm? by not scalable bot solution? what is wrong?

— Reply to this email directly, view it on GitHub https://github.com/gladiaio/gladia-samples/issues/27#issuecomment-2133264890, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASU35RQPU2YYUSMAPBLSARDZEMJOJAVCNFSM6AAAAABEAHAQUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZTGI3DIOBZGA . You are receiving this because you commented.Message ID: @.***>