DevTools listening error with Selenium and Python

DevTools listening error with Selenium and Python
0

#1

I am using python + selenium for web browser automation and getting this error.

DevTools listening on ws://127.0.0.1:57671/devtools/browser/8a586f7c-5f2c-4d10-8174-7a7bf50e49b5
[5096:1196:0909/183254.362:ERROR:mf_helpers.cc(14)] Error in dxva_video_decode_accelerator_win.cc on line 517

The problem arises when the program reaches this part of code:-

**def send_comments(driver):**

** add_comments = driver.find_elements_by_class_name(‘add’) **
** comments = driver.find_elements_by_xpath("//form[@class=‘addCommentexpand’]//textarea[contains(@placeholder,‘Add a comment’)]") **
** submit_comments = driver.find_elements_by_xpath("//button[text()=‘Comment’]") **
** i = 0**
** for add, comment, submit in zip(add_comments, comments, submit_comments):**
** print(“comment begins”)**
** add.click()**
** print("+add comment clicked")**
** comment.click()**
** print(“comment textbox clicked”)**
** comment.send_comments(“Amazing Art”)**
** print(“text typed”)**
** submit.click()**
** print(“comment submited”)**
** i += 1**
** if i > 5:**
** driver.close()**

send_comments(driver)

Its also not logging in console. Can anyone tell whats the problem?


#2

Not sure Try this once

options.add_argument('--log-level=3')