2

I am using fluentlenium for browser testing using java in playframework2.3

I want to upload a file in browser through my test case. In selenium a function called sendkeys() is used. What is the similar function in fluentlenium, or is there a any other solution.

Immanuel Fredrick
  • 508
  • 3
  • 9
  • 20

1 Answers1

2
browser.fill("#file_input_id").with("full path to image file");
browser.click("#submit_button_id");

.with calls sendkeys() internally

PH88
  • 1,796
  • 12
  • 12