Issue
I see many asks on the Stack Overflow with titles like mine, but my code is running well without any error in GUI mode, without GUI I can click on the button, but after the page refresh, I have an error.
Solution
I guess you should set correct screen size for the headless mode.
Try this:
options.add_argument("window-size=1920x1080")
or this
options.add_argument("window-size=1920,1080")
Answered By - Prophet
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.