Source

selenium / rc_test.go

package selenium

import (
	"testing"
)


func TestRCStart(t *testing.T) {
	rc := NewSeleniumRC("localhost", 4444, "*firefox", "http://www.google.com")
	sid, err := rc.Start()
	if err != nil {
		t.Fatal(err)
		return
	}

	if len(sid) == 0 {
		t.Fatal("Empty session id")
	}
}