# For and Get Element Attribute Issue in Robot Framework

**URL:** <https://forum.robotframework.org/t/for-and-get-element-attribute-issue-in-robot-framework/1500>\
**Category:** Robot Framework\
**Created:** [19 March 2021 17:24 UTC](https://forum.robotframework.org/t/for-and-get-element-attribute-issue-in-robot-framework/1500 "2021-03-19T17:24:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tusharkr18](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/tusharkr18/32/690_2.png) [@tusharkr18](https://forum.robotframework.org/u/tusharkr18)\
**Post date:** [19 March 2021 17:24 UTC](https://forum.robotframework.org/t/for-and-get-element-attribute-issue-in-robot-framework/1500/1 "2021-03-19T17:24:16Z")

</div>

Hello,  
I am writing Test cases using Robot Framework with Maven Plugin.  
I noticed after importing Selenium2Library, below keywords work in differently in Robot Framework Project and Maven Project  
For Loop- If try to use New For Loop, it gives error- For Keyword Reserve, but it works fine in Robot Framework Project  
Get Element Attribute- Same Keyword expects single Argument in Maven Project but expects two argument in RF Project.  
Any else facing the same issue?

---

<div class="post-metadata">

**Author:** ![hobet](https://avatars.discourse-cdn.com/v4/letter/h/51bf81/32.png) [@hobet](https://forum.robotframework.org/u/hobet)\
**Post date:** [19 March 2021 18:19 UTC](https://forum.robotframework.org/t/for-and-get-element-attribute-issue-in-robot-framework/1500/2 "2021-03-19T18:19:55Z")

</div>

What version of Robot Framework are you using? Also, if this is a new project or new test automation you are working on, you should not be using Selenium2Library. That library is old and deprecated. Instead use SeleniumLibrary or if at all possible, the Browser library.

Not that I think that is related to your For Loop issue.

---

<div class="post-metadata">

**Author:** ![tusharkr18](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/tusharkr18/32/690_2.png) [@tusharkr18](https://forum.robotframework.org/u/tusharkr18)\
**Post date:** [19 March 2021 18:38 UTC](https://forum.robotframework.org/t/for-and-get-element-attribute-issue-in-robot-framework/1500/3 "2021-03-19T18:38:30Z")

</div>

I am using RF 3.2.2. and yes I have created new Project.  
Let me change my library to SeleniumLibrary. Thanks alot for your help…
