Translate

Thursday, July 21, 2016

The Selenium IDE ‘click’ and ‘clickAt’ command

The click command is very useful when trying to simulate clicking on html elements. To use it write click in the Command line then select a target (we will talk about targets later on) to which you will be clicking on.
Now one nice thing about IDE is that it gives you a reference for each command inputted so that you can know what the parameters should be or even how many parameters there are. One thing that I have run into with the click command is when the website has a to of javascript, this is when you get creative and figure out that there is another command to help you with “clicking” on a target. We will talk about this command later on, because it is a more advanced command to deal with.
The other command, ‘clickAt’ is used to click on a location relative to the target. For example:

So the target is a locator(html element) then the value are the x,y coordinates. This command I have not found a particularly use for yet but I can see where it might be useful if you need to click on a specific spot on an element, but other than that I can’t see a big use for this over just the plain old ‘click’ command.




If you have any questions or comments please leave them in the comment section.

1 comment :

  1. This is very informative blog and nice article , I really like your technique of writing a blog. I book marked it to my bookmark site list and will be checking back in the near futureselenium training,selenium online training,selenium training online,selenium free course

    ReplyDelete