Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able define the Elements in PageObject of Java Cucumber FrameWork #2042

Open
MuraliKrishna-BS opened this issue Jan 3, 2025 · 8 comments

Comments

@MuraliKrishna-BS
Copy link

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

@anunay1
Copy link

anunay1 commented Jan 7, 2025

What version of selenium are you using

@MuraliKrishna-BS
Copy link
Author

@anunay1
using version of selenium


org.seleniumhq.selenium
selenium-java
3.4.0

@anunay1
Copy link

anunay1 commented Jan 8, 2025

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

@MuraliKrishna-BS
Copy link
Author

@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?

@anunay1
Copy link

anunay1 commented Jan 9, 2025

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

@MuraliKrishna-BS
Copy link
Author

@anunay1

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

@anunay1
Copy link

anunay1 commented Jan 10, 2025

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
Copy link

anunay1 commented Jan 10, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants