ncbi / robotframework-pageobjects

Implementation of the Page Object pattern with Robot Framework and selenium. Also facilitates page object pattern independent of Robot Framework
http://ncbi.github.io/robotframework-pageobjects
Other
84 stars 75 forks source link

Robotframework pageobjects does not support @keyword #66

Open stemlaur opened 8 years ago

stemlaur commented 8 years ago

Since recent versions of robotframework developper can create dynamic keywords using annotations such as @keyword(name='Add ${quantity:\d+} Copies Of ${item} To Cart'). This does not seem to be supported.

Can you tell me if there is a workaround for that ?

Helkar commented 8 years ago

Hi,

Please try using the robot_alias decorator instead of keyword: @robot_alias('Add ${quantity:\d+} Copies Of ${item} To Cart')

Best Regards