All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jp.co.moneyforward.autotest.actions.web.Navigate Maven / Gradle / Ivy

The newest version!
package jp.co.moneyforward.autotest.actions.web;

import com.microsoft.playwright.Page;
import jp.co.moneyforward.autotest.framework.action.Act;
import jp.co.moneyforward.autotest.framework.core.ExecutionEnvironment;

import static com.github.valid8j.classic.Requires.requireNonNull;

public class Navigate implements Act {
  private final String url;
  
  public Navigate(String url) {
    this.url = requireNonNull(url);
  }
  
  @Override
  public Page perform(Page page, ExecutionEnvironment executionEnvironment) {
    page.navigate(this.url);
    return page;
  }
  
  @Override
  public String name() {
    return this.getClass().getSimpleName() + "[" + this.url + "]";
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy