Unable to import @BeforeMethod

313 views
Skip to first unread message

manish dadhich

unread,
May 23, 2020, 11:43:01 AM5/23/20
to Selenium Users
Hi I am New in Selenium
So in POM—>src/test/java—>class—>LoginTestPage
when I'm write @BeforeMethod then it does not show me import 'BeforeMethod'
it shows me :
BeforeMethod cannot be resolved to a type
3 quick fixes available:
Add TestNg Library
create annotation 'BeforeMethod'
Fix project setup...

Please help what should I do??

Villju Joseph

unread,
May 24, 2020, 7:02:21 AM5/24/20
to seleniu...@googlegroups.com
Add testng Library or add dependency in Pom 
Add import org.testng.annotations.*;

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/41fcebf0-5bff-4fa9-9c92-e2c7720d924d%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages