refactor: remove GET/POST methods with base URL, streamline HTTP requests in UIA2 and WDA drivers

This commit is contained in:
lilong.129
2025-06-26 14:18:11 +08:00
parent 2cffdf01b1
commit 88d255bce1
5 changed files with 71 additions and 97 deletions

View File

@@ -134,7 +134,7 @@ func TestDriverSession(t *testing.T) {
// Test GETWithBaseURL
baseURL := "https://postman-echo.com"
resp, err = session.GETWithBaseURL(baseURL, "/get")
resp, err = session.GET(baseURL + "/get")
assert.Nil(t, err)
t.Log(resp)
@@ -146,7 +146,7 @@ func TestDriverSession(t *testing.T) {
assert.Equal(t, 0, len(driverRequests))
// Test POST with base URL and path
resp, err = session.POSTWithBaseURL(nil, baseURL, "/post")
resp, err = session.POST(nil, baseURL+"/post")
assert.Nil(t, err)
t.Log(resp)