Open shaklev opened 4 years ago
Is this bug fixed?
Is this bug fixed?
There needs to be added additional checking to see if there already exists a _4sxc _42ft class whiting the post div ( meaning the view more comments button is shown = the _3hg- _42ft button doesn't need to be clicked )
I wrote this as a simple solution back then, you can test it ( the principle should be the same now )
Looking at the following code segment:
When you try to get all the "X comments" button ( with the line
cmmBtn = browser.find_elements_by_xpath('//a[@class="_3hg- _42ft"]')
) and later in the for loop when you click them all, notice that if a post already has listed few comments (on page load before clicking X comments button - look picture ), than by clicking the button with class_3hg- _42ft
you basically hide all the comments from that post.There needs to be added additional checking to see if there already exists a
_4sxc _42ft
class whiting the postdiv
( meaning the view more comments button is shown = the_3hg- _42ft
button doesn't need to be clicked )