Testcafe: Allow to change URL using requestOptions.url in RequestHooks

Created on 17 Jul 2018  路  3Comments  路  Source: DevExpress/testcafe

Are you requesting a feature or reporting a bug?

Enhancement

What is the current behavior?

The destination URL of a request can be changed in a RequestHook by modifying parts like hostname, port, protocol of the URL by altering corresponding properties of a requestOptions object. The requestOptions.url property can be changed, but it doesn't lead to change of the request's destination.

What is the expected behavior?

The destination of a request must be changed when the requestOptions.url is changed.

server level 2 request hooks enhancement

Most helpful comment

We faced the same issue. After struggling a couple of hours try to find why this didn't work, I found a reference to this issue.
If you do not intend to fix this for the moment, it would be nice at least to edit the document here to mark the url prop as read-only.

All 3 comments

any leads for fixing this issue? I'd be interested in picking this up if you think this is easy enough to understand -- I'm new to the testcafe codebase

Hi @kennychua

Thank you for your interest in TestCafe. At present, we don't have a final API design for this enhancement. We will discuss about it and let you know about results.

We faced the same issue. After struggling a couple of hours try to find why this didn't work, I found a reference to this issue.
If you do not intend to fix this for the moment, it would be nice at least to edit the document here to mark the url prop as read-only.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

beyondcompute picture beyondcompute  路  4Comments

multivoltage picture multivoltage  路  3Comments

ParachuteCat picture ParachuteCat  路  3Comments

madroneropaulo picture madroneropaulo  路  3Comments

inikulin picture inikulin  路  3Comments