Tests that Page.navigateWithinDocument is issued for history API and anchor navigation.
-- Test Page.navigate() to anchor URL --
{
method : Page.navigatedWithinDocument
params : {
frameId : <string>
navigationType : fragment
url : http://127.0.0.1:8000/inspector-protocol/resources/inspector-protocol-page.html#foo
}
sessionId : <string>
}
-- Test Page.navigate() to another anchor URL --
{
method : Page.navigatedWithinDocument
params : {
frameId : <string>
navigationType : fragment
url : http://127.0.0.1:8000/inspector-protocol/resources/inspector-protocol-page.html#bar
}
sessionId : <string>
}
-- Test history.pushState() --
{
method : Page.navigatedWithinDocument
params : {
frameId : <string>
navigationType : historyApi
url : http://127.0.0.1:8000/inspector-protocol/resources/wow.html
}
sessionId : <string>
}
-- Test history.replaceState() --
{
method : Page.navigatedWithinDocument
params : {
frameId : <string>
navigationType : historyApi
url : http://127.0.0.1:8000/replaced.html
}
sessionId : <string>
}
-- Test history.back() --
{
method : Page.navigatedWithinDocument
params : {
frameId : <string>
navigationType : fragment
url : http://127.0.0.1:8000/inspector-protocol/resources/inspector-protocol-page.html#bar
}
sessionId : <string>
}
-- Test history.forward() --
{
method : Page.navigatedWithinDocument
params : {
frameId : <string>
navigationType : fragment
url : http://127.0.0.1:8000/replaced.html
}
sessionId : <string>
}