# Click keyword deprication in the latest Browser lib

**URL:** <https://forum.robotframework.org/t/click-keyword-deprication-in-the-latest-browser-lib/6133>\
**Category:** Browser\
**Created:** [30 August 2023 08:12 UTC](https://forum.robotframework.org/t/click-keyword-deprication-in-the-latest-browser-lib/6133 "2023-08-30T08:12:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robot-J](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@Robot-J](https://forum.robotframework.org/u/Robot-J)\
**Post date:** [30 August 2023 08:12 UTC](https://forum.robotframework.org/t/click-keyword-deprication-in-the-latest-browser-lib/6133/1 "2023-08-30T08:12:06Z")

</div>

Hey, as I get a warning that Click arguments are going to be depricated, does it mean the keyword “click” will be depricated and i need to swap all those to click with options?  
[https://marketsquare.github.io/robotframework-browser/Browser.html#Click](https://marketsquare.github.io/robotframework-browser/Browser.html#Click)

If it will stay as a valid keyword, does someone know how to ignore warnings in the log file?

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [30 August 2023 13:02 UTC](https://forum.robotframework.org/t/click-keyword-deprication-in-the-latest-browser-lib/6133/2 "2023-08-30T13:02:36Z")

</div>

Hi Joel,

In the document you linked to it gives you the answer:

> [@](#):
>
> | Arguments | Description |
> | --- | --- |
> | `selector` | Selector element to click. See the [Finding elements](https://marketsquare.github.io/robotframework-browser/Browser.html#Finding%20elements) section for details about the selectors. |
> | `button` | Defaults to `left` if invalid. |
> 
> All other arguments are _ **DEPRECATED** _ and will be removed in the future. Use [Click With Options](https://marketsquare.github.io/robotframework-browser/Browser.html#Click%20With%20Options) instead.

and also:

> [@](#):
>
> clickCount = Deprecated  
> delay = Deprecated  
> position\_x =Deprecated  
> position\_y = Deprecated  
> force = Deprecated  
> noWaitAfter = Deprecated  
> \* modifiers Deprecated

So that message means you must be using one of these deprecated options, so don’t ignore the wanings they are there to help you avoid future problems, follow the instructions and change you `Click` keyword call to `Click With Options` before it’s a problem and the warning will disappear.

Dave.

---

<div class="post-metadata">

**Author:** ![Robot-J](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@Robot-J](https://forum.robotframework.org/u/Robot-J)\
**Post date:** [31 August 2023 05:11 UTC](https://forum.robotframework.org/t/click-keyword-deprication-in-the-latest-browser-lib/6133/3 "2023-08-31T05:11:15Z")

</div>

Thanks for the fast reply!

Is there an addon or a way to update all click keywords at once?

The best way currently I know is by using ctrl+f in a robot file and replace all instanses with VsCode, however this means I need to go through every robot file as replacing all instances everywhere can cause issues as some documentation or maybe even keywords contain the word “Click”

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [31 August 2023 10:30 UTC](https://forum.robotframework.org/t/click-keyword-deprication-in-the-latest-browser-lib/6133/4 "2023-08-31T10:30:50Z")

</div>

Hi Joel,

> [@Robot-J](#):
>
> Is there an addon or a way to update all click keywords at once?

Not that I know of, you probably want to review each change anyway.

I don’t use VSCode, but some editors (like Notepad++) have the ability to search all files matching a pattern in a directory, so that might help if VSCode can do that.

Dave.
