Add necessary library files during runtime when using gradle
Hi, We are using Cucumber in our development process in building a service in AWS. We are using DynamoDb and when we are running tests locally we are using a local instance of DynamoDb. To do this we need to include in the classpath certain library files. We have manged to do this for the test task of gradle but not for the cucumber task Given that these files are in a folder (build/dyanamodb-local) in our project, is there a way to include them in the classpath of the cucumber task?1KViews0likes1CommentCucumber BDD + Serenity - Writing user defined methods
I am learning and using Cucumber BDD, with Serenity. I am writing a global library which will have re-usable methods. These methods are accessible from all classes/java files. I am struggling to understand how to access Webdriver object. Or, if webdriver not needed, can I directly access "element" which comes with selenium?? But the below syntax is throwing error, as "element" is not correct. 1. Should I pass "driver" as parameter for every Global method 2. I access this method from Pages. Should I pass "driver" as parameter. If so, what is the correct way to pass "driver" object to the method below. public class GlobalMethods { public void clickLinkWithText(String text){ System.out.println("Entered into clicklink with text >> " + text); element(By.xpath("//a[text()='"+text+"']")).click(); } }892Views0likes0Comments