nightwatch icon indicating copy to clipboard operation
nightwatch copied to clipboard

`frame()` command doesn't support page object element

Open tim-yao opened this issue 2 years ago • 7 comments

Description of the bug/issue

When I use frame() command, I expect the page object element can be used as a selector, but actually, it won't work.

Steps to reproduce

Try using frame() with a page object element.

Sample test

myPage.api.frame('@myIframe')

Nightwatch.js Version

2.6.14

Additional Information

See Discord discussion https://discord.com/channels/618399631038218240/1088668054650626058

David Burns - AutomatedTester — Yesterday at 21:33 I think this might need a bug raised. That doesn't seem right andrei — Today at 01:42 when using page objects, elements passed to commands on the .api namespace aren't resolved automatically. but we can easily add the frame() command on the main page object namespace Currently .frame() is implemented as a "protocol" command, so we will need to move it to the element-commands and update the implementation as needed. It's a relatively straightforward task.

tim-yao avatar Mar 25 '23 05:03 tim-yao

I want to work on this issue.

yashPratp983 avatar Jul 14 '23 09:07 yashPratp983

I am interested to work on this issue

skushagra9 avatar Feb 22 '24 14:02 skushagra9

can i work on this issue ? , i am new to open source but i will try my best to fix it

SuperexMack avatar Jun 08 '24 18:06 SuperexMack

Could you please assign this issue to me, @garg3133?

nikhil-babar avatar Jul 19 '24 13:07 nikhil-babar