func GetSiteURL(page *web.Page, clusterName string) string {
	urlPrefix := fmt.Sprintf("/web/site/%v", clusterName)
	return FormatUrl(page, urlPrefix)
}
GetSiteURL returns cluster page URL
package utils
import (
	"fmt"
	"strings"
	"time"
	"github.com/gravitational/robotest/e2e/framework"
	"github.com/gravitational/robotest/e2e/uimodel/defaults"
	. "github.com/onsi/gomega"
	web "github.com/sclevine/agouti"
	. "github.com/sclevine/agouti/matchers"
)
func IsErrorPage(page *web.Page) bool {
	return IsFound(page, ".grv-msg-page")
}
func IsInstaller(page *web.Page) bool {
	return IsFound(page, ".grv-installer")
}
func HasValidationErrors(page *web.Page) bool {
	return IsFound(page, "label.error")
}
func IsLoginPage(page *web.Page) bool {
	count, _ := page.FindByClass("grv-user-login").Count()
	return count > 0
}
func IsFound(page *web.Page, className string) bool {
	el := page.Find(className)
	count, _ := el.Count()
	return count > 0
}
func FormatUrl(page *web.Page, prefix string) string {
	url, err := page.URL()
	Expect(err).NotTo(HaveOccurred())
	return framework.URLPathFromString(url, prefix)
}