Could we replace selenium with geb in a python test automation script . Geb being implemented in groovy java and python being an independent language.
example code:
groovy geb code
import geb.Page
import org.openqa.selenium.By
class GooglePage extends Page {
static at = { title == "Google" }
static url = "http://www.google.com"
static content = {
searchField(wait:true) { $("input", name:"q")}
submit(wait:true) { $("button", name:"btnG")}
}
}
python:
Enter text into the searchField
searchField = "Google"
is it possible to accomplish this if yes please comment.