0

One of my developers has written a function that I can manually run by accessing the browsers console and typing the name of the method. Calling the method populates the application with test data. I want to call this function from my Java selenium automated UI tests. But the front-end code is in a different repo to the test repo. It's also written in react JavaScript. To run the function from the browser console I enter this - myapp.seed.testdata()

Does anyone know how I could run that function from my Java selenium test code?

I tried to import the Action class and write a line of code that references the method that seeds the test data. But nothing happened.

0 Answers0