Page 1 Content
This is the first page in the client-side route demo.
Written by RTILA X Engineering Team
Handle content that loads after user interaction
Clicking tabs that load content via AJAX
This is the first page in the client-side route demo.
{
"name": "Client_Side_Route_Navigation",
"settings": {
"urls": [
"https://learn.rtila.com/scenarios/dynamic-content/3"
]
},
"datasets": {
"page_heading": {
"item_selector": "css=.page-content h1",
"properties": [
{
"name": "text",
"type": "text",
"selector": "css=self"
}
]
}
},
"commands": [
{
"command": "wait_for_selector",
"params": {
"selector": "css=.nav-page2"
}
},
{
"command": "click",
"params": {
"selector": "css=a.nav-page2"
}
},
{
"command": "wait_for_selector",
"params": {
"selector": "css=.page-content h1"
}
},
{
"command": "extract_data",
"params": {
"dataset": "page_heading"
}
}
]
}
Client-side routing changes the DOM without navigating to a new HTML page. The automation clicks the Page 2 link, waits for the new heading to appear, and extracts it.
Copy the project JSON above, open RTILA X, create a new project, and paste it.
This scenario covers 2 RTILA X commands and is referenced in 1 learning article.
Was this helpful?
Thank you for your feedback!