Dmitrii Didenko
Dmitrii Didenko

Reputation: 81

Use copied text in Testcafe Naviagation to change URL

I select some text with

t.selectText(Selector('#neededURL'), 0, 60) [can copy it if needed]

and want to use this text in navigateTo function, how can i do this?

Upvotes: 4

Views: 171

Answers (1)

Dmitrii Didenko
Dmitrii Didenko

Reputation: 81

const url = Selector('#neededURL').value await t.navigateTo(url).

Upvotes: 4

Related Questions