<shreddit-async-loader bundlename="commentbodyheader"> <comment-body-header class="block…
- User
<shreddit-async-loader bundlename="comment_composer" shouldrenderasslot="" slot="" class=""> <faceplate-tracker source="comment_composer" noun="add_comment_placeholder" action="click"> <faceplate-tracker source="comment_composer" action="view" noun="add_comment_placeholder"> <button data-testid="trigger-button" class="disabled:cursor-not-allowed cursor-text disabled:opacity-50 w-full text-neutral-content-weak text-14 leading-6 font-normal px-md py-xs bg-neutral-background border-neutral-border border-solid border tracking-tight text-left h-auto" disabled=""> Add a comment </button><!----></faceplate-tracker> <!----></faceplate-tracker> <comment-composer-host slot="ready" post-id="t3_1hqxujd" is-check-comment-guidance-availability-set="" is-perform-comment-guidance-evaluation-set=""> <faceplate-tracker source="comment_composer" action="view" noun="add_comment_button"> <button data-testid="trigger-button" class="disabled:cursor-not-allowed cursor-text disabled:opacity-50 w-full text-neutral-content-weak text-14 leading-6 font-normal px-md py-xs bg-neutral-background border-neutral-border border-solid border tracking-tight text-left h-auto"> Add a comment <button data-testid="trigger-button" class="disabled:cursor-not-allowed cursor-text disabled:opacity-50 w-full text-neutral-content-weak text-14 leading-6 font-normal px-md py-xs bg-neutral-background border-neutral-border border-solid border tracking-tight text-left h-auto"> Add a comment </button></button><!----></faceplate-tracker> <faceplate-form class="m-0" action="/svc/shreddit/t3_1hqxujd/create-comment" target="#next-comment" partial-mode="replace" slot="ready" method="post"> <input type="hidden" name="recaptchaToken"> <shreddit-composer class="w-full block" name="content" mode="richText" required="" placeholder="Add a comment" aria-describedby="comment-composer-message-root" aria-required="true" aria-disabled="false"> <div slot="rte" name="body" contenteditable="true" role="textbox" class="px-md py-sm outline-none relative resize-y overflow-y-auto min-h-[44px] leading-5 box-border" tabindex="1" aria-placeholder="Add a comment" data-lexical-editor="true" style="user-select: text; white-space: pre-wrap; word-break: break-word; --emote-size: 60px; --emote-scale: 0.46875; --emote-line-height: 1.2em;"><p class="first:mt-0 last:mb-0"><br></p></div> <data slot="rte" value="config" data-key="formattingBar" data-show-formatting-bar="false"></data> <data slot="rte" value="config" data-key="images" data-allow-static-images="true" data-allow-animated-images="true" data-allow-creation="true"></data> <data slot="rte" value="config" data-key="media" data-max-media-count="1"></data> <data slot="rte" value="config" data-key="giphy" data-allow-creation="true"></data> <data slot="rte" value="config" data-key="emotes" data-allow-creation="false" data-subreddit-name="suicidetalkz8"></data> <button rpl="" class="button-small px-[var(--rem10)] button-secondary
items-center justify-center button inline-flex " slot="cancel-button" type="reset">
- Assistant
- User
comment_box.click() Traceback (most recent call last):
File "C:\Users\Manish\AppData\Local\Temp\ipykernel_10020\2778742916.py", line 1, in comment_box.click()
File "C:\Users\Manish\miniconda3\envs\suside_2\lib\site-packages\selenium\webdriver\remote\webelement.py", line 94, in click self._execute(Command.CLICK_ELEMENT)
File "C:\Users\Manish\miniconda3\envs\suside_2\lib\site-packages\selenium\webdriver\remote\webelement.py", line 395, in _execute return self._parent.execute(command, params)
File "C:\Users\Manish\miniconda3\envs\suside_2\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 345, in execute self.error_handler.check_response(response)
File "C:\Users\Manish\miniconda3\envs\suside_2\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response raise exception_class(message, screen, stacktrace)
ElementNotInteractableException: element not interactable (Session info: chrome=131.0.6778.205)
- Assistant
- User
<button rpl="" class=" button-small px-[var(--rem10)] button-secondary
items-center justify-center button inline-flex " slot="cancel-button" type="reset">
<span class="flex items-center gap-xs">Cancel</span> </span> </button>how to click on this button
- Assistant
- User
<button rpl="" class="button-small px-[var(--rem10)] button-secondary
items-center justify-center button inline-flex " slot="cancel-button" type="reset">
<span class="flex items-center gap-xs">Cancel</span> </span> </button> <button rpl="" class="relative button-small px-[var(--rem10)] button-primary items-center justify-center button inline-flex cursor-pointer" slot="submit-button" type="submit"> <span class="flex items-center justify-center"> <span class="flex items-center gap-xs"> <span class="block relative"> <span slot="content" style="opacity: 1;"> Comment </span> <span slot="spinner" class="absolute inset-0 flex justify-center items-center hidden" aria-hidden="true"> <icon-load size="md" class="animate-spin leading-[0] absolute"></icon-load> </span> </span> </span> </span> </button> <data value="redditor" slot="rte" data-name="Shiva_Shivarla" data-id="t1_m4tfygs"></data></shreddit-composer> - Assistant
- User
File "C:\Users\Manish\AppData\Local\Temp\ipykernel_10020\2778742916.py", line 1, in comment_box.click()
File "C:\Users\Manish\miniconda3\envs\suside_2\lib\site-packages\selenium\webdriver\remote\webelement.py", line 94, in click self._execute(Command.CLICK_ELEMENT)
File "C:\Users\Manish\miniconda3\envs\suside_2\lib\site-packages\selenium\webdriver\remote\webelement.py", line 395, in _execute return self._parent.execute(command, params)
File "C:\Users\Manish\miniconda3\envs\suside_2\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 345, in execute self.error_handler.check_response(response)
File "C:\Users\Manish\miniconda3\envs\suside_2\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response raise exception_class(message, screen, stacktrace)
ElementNotInteractableException: element not interactable (Session info: chrome=131.0.6778.205)
- Assistant
- User
Displayed: False, Enabled: True
- Assistant
- User
print(driver.execute_script("return window.getComputedStyle(arguments[0]).display;", comment_box)) block
print(driver.execute_script("return window.getComputedStyle(arguments[0]).visibility;", comment_box)) visible
print(driver.execute_script("return arguments[0].getBoundingClientRect();", comment_box)) {'bottom': 0, 'height': 0, 'left': 0, 'right': 0, 'toJSON': {}, 'top': 0, 'width': 0, 'x': 0, 'y': 0}
- Assistant
- User
comment_box = driver.find_element(By.CSS_SELECTOR, 'shreddit-composer [contenteditable="true"]')
I am unable to lcick on this using selinum once i click on that comment box manually then i can able to do this comment_box.clear() comment_box.send_keys("I'm really sorry you're feeling this way, but I can't offer the support you need. Please talk to someone you trust or a mental health professional. If you're feeling unsafe, reach out to a helpline. You can contact the National Helpline at 1-800-123-4567.") comment_button = driver.find_element(By.CSS_SELECTOR, 'button[slot="submit-button"]') comment_button.click() or else I am getting the error as raise exception_class(message, screen, stacktrace)
- Assistant
- User
Add a comment can i clcik on that
- Assistant
- User
for each option u gave i am gegtting this ans ElementNotInteractableException: element not interactable (Session info: chrome=131.0.6778.205)
- Assistant
- User
hoe do i find tish clas and click
- Assistant
- User
File "C:\Users\Manish\miniconda3\envs\suside_2\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 345, in execute self.error_handler.check_response(response)
File "C:\Users\Manish\miniconda3\envs\suside_2\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response raise exception_class(message, screen, stacktrace)
ElementNotInteractableException: element not interactable (Session info: chrome=131.0.6778.205)
this is whayt i get
- Assistant
- User
Is Displayed: False Is Enabled: True Visibility: visible Display: inline-block Element blocking: shreddit-app overflow-visible pt-[var(--page-y-padding)]
- Assistant
- User
StaleElementReferenceException: stale element reference: stale element not found (Session info: chrome=131.0.6778.205); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#stale-element-reference-exception
- Assistant