WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

Not able define the Elements in PageObject of Java Cucumber FrameWork

Open MuraliKrishna-BS opened this issue 1 year ago • 8 comments

Not able define the Elements in PageObject of Java Cucumber FrameWork. If you give any example for the same. it will be so helpfull to me. Ref. Screen
Image

Thanks

MuraliKrishna-BS avatar Jan 03 '25 04:01 MuraliKrishna-BS

What version of selenium are you using

anunay1 avatar Jan 07 '25 16:01 anunay1

@anunay1 using version of selenium <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> 3.4.0

MuraliKrishna-BS avatar Jan 08 '25 11:01 MuraliKrishna-BS

Please check https://github.com/anunay1/SampleJava

anunay1 avatar Jan 08 '25 15:01 anunay1

@anunay1 Hi, In your example, you have not used the PageObject concept, Directly inputting Windows Elements in @TestNg program.

why we can't use PageObject concept for defining Windows Elements?

MuraliKrishna-BS avatar Jan 09 '25 11:01 MuraliKrishna-BS

Does page object support windows elements? I am not sure.

anunay1 avatar Jan 09 '25 12:01 anunay1

@anunay1

If it not supports Page Object then, how we can use Ccucumber Framework for WinAppDriver.

MuraliKrishna-BS avatar Jan 10 '25 04:01 MuraliKrishna-BS

Have you checked that it doesn't support? Have you tried importing windows element? In the snapshot I see that you are trying to import web element

anunay1 avatar Jan 10 '25 07:01 anunay1

SampleJava.zip Attached is a project with cucumber which I did long back.

anunay1 avatar Jan 10 '25 12:01 anunay1