I opened Google Images and searched for Batman , which is probably my favourite Super Hero. I had connected my laptop to a TV screen and I wanted to see all the images as a slideshow. And, just like many other posts in this blog, I started using the Chrome Developer Tools. I clicked on the first image. The image was being displayed on the side and a button to move to the next image came in. I right-clicked on the button and did an Inspect and I found that the button was having classes KJaJCe irc-rab . I ran the following command to see if there are other elements with the same class. document.getElementsByClassName('KJaJCe irc-rab') I saw that there were three elements, but the button to go to the next image was always having an index of 1 . So, I went ahead and did the following: a = document.getElementsByClassName('KJaJCe irc-rab')[1]; a.click(); Each time I ran a.click it showed me the next pic on the right-hand side and I was convinced that if I...
No Longer a Social Network...