Skip to content

Instantly share code, notes, and snippets.

@dharmesh-hemaram
Last active February 21, 2024 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dharmesh-hemaram/85bcebba0addc375c4c02c55bc10af21 to your computer and use it in GitHub Desktop.
Save dharmesh-hemaram/85bcebba0addc375c4c02c55bc10af21 to your computer and use it in GitHub Desktop.
Irctc

Irctc

This configuration is created to help filling irctc form faster and its tested during normal hours only and not during peak hours of which is between morning 9:00 am ~ 11:00 am.

You can simly download below json file and import into our extension which can be downloaded from below links.

Simple refresh the irctc page and it will start your process. You can comment down any query you have with this configuration.

Settings

Enable Name and init wait from https://getautoclicker.com/docs/3.x/action/columns-filter/

Things Higlightes can be changed accordingly

Important

  • Below configuration is changes to manual mode. Hotkey is set as "Ctrl + Shift + X"

Origin

  • //p-autocomplete[@id="origin"]//input - Pune
  • //ul[@role="listbox"]/li/span[contains(text(),"PUNE")]

Destination

  • //p-autocomplete[@id="destination"]//input - Mumbai
    • //ul[@role="listbox"]/li/span[contains(text(),"CSMT")]

Date

  • //table[contains(@class,"ui-datepicker-calendar")]//a[text()="9"]

Quota

  • //ul[@role="listbox"]//li/span[text()="TATKAL"]

Train Select

  • //strong[contains(text(),"12128")]/../../..//strong[contains(text(),"3A")]
  • //strong[contains(text(),"12128")]/../../..//strong[contains(text(),"Sat, 30 Dec")]
  • //strong[contains(text(),"12128")]/../../..//strong[contains(text(),"AVAILABLE")]

You need to login with your credentials here and fill captcha

Passenger ( Below Passenger are auto selected from master list )

  • //p-autocomplete[@formcontrolname="passengerName"]//input - Dharmesh
  • //ul[@role="listbox"]/li/strong[contains(text(),"Dharmesh")]

Add Another Passenger

  • //a/span[contains(text(),"+ Add Passenger")]
  • Repeat Passenger step

Payment

If you dont want payment to be made through UPI remove below action

  • //label[contains(text(),"Pay through BHIM/UPI")]

How to use

  • Download configuration.json below
  • Import into below extension
  • Refresh Page

Auto Clicker Auto Fill Extension


tags

#irctc #tatkal #Premium tatkal #train #train booking #autobuy #autopurchase #purchase #ixigo train

{
"actions": [
{
"addon": {
"condition": "",
"elementFinder": "",
"recheck": 0,
"recheckInterval": 0,
"recheckOption": "stop",
"value": "",
"valueExtractor": ""
},
"elementFinder": "//p-autocomplete[@id=\"origin\"]//input",
"initWait": 0,
"name": "search origin",
"repeat": 0,
"repeatInterval": 0,
"value": "Jodhpur"
},
{
"addon": {
"condition": "",
"elementFinder": "",
"recheck": 0,
"recheckInterval": 0,
"recheckOption": "stop",
"value": "",
"valueExtractor": ""
},
"elementFinder": "//ul[@role=\"listbox\"]/li/span[contains(text(),\"JODHPUR\")]",
"focus": true,
"initWait": 0.25,
"name": "select origin",
"repeat": 0,
"repeatInterval": 0,
"value": ""
},
{
"addon": {
"condition": "",
"elementFinder": "",
"recheck": 0,
"recheckInterval": 0,
"recheckOption": "stop",
"value": "",
"valueExtractor": ""
},
"elementFinder": "//p-autocomplete[@id=\"destination\"]//input",
"focus": true,
"initWait": 0.25,
"name": "search destination",
"repeat": 0,
"repeatInterval": 0,
"value": "Pune"
},
{
"addon": {
"condition": "",
"elementFinder": "",
"recheck": 0,
"recheckInterval": 0,
"recheckOption": "stop",
"value": "",
"valueExtractor": ""
},
"elementFinder": "//ul[@role=\"listbox\"]/li/span[contains(text(),\"PUNE\")]",
"focus": true,
"initWait": 0.25,
"name": "select destination",
"repeat": 0,
"repeatInterval": 0,
"value": ""
},
{
"addon": {
"condition": "",
"elementFinder": "",
"recheck": 0,
"recheckInterval": 0,
"recheckOption": "stop",
"value": "",
"valueExtractor": ""
},
"elementFinder": "//p-calendar//input",
"focus": true,
"initWait": 0.25,
"name": "select calendar",
"repeat": 0,
"repeatInterval": 0,
"value": ""
},
{
"addon": {
"condition": "",
"elementFinder": "",
"recheck": 0,
"recheckInterval": 0,
"recheckOption": "stop",
"value": "",
"valueExtractor": ""
},
"elementFinder": "//table[contains(@class,\"ui-datepicker-calendar\")]//a[text()=\"30\"]",
"focus": true,
"initWait": 0.25,
"name": "select date",
"repeat": 0,
"repeatInterval": 0,
"value": ""
},
{
"addon": {
"condition": "",
"elementFinder": "",
"recheck": 0,
"recheckInterval": 0,
"recheckOption": "stop",
"value": "",
"valueExtractor": ""
},
"elementFinder": "//p-dropdown[@id=\"journeyQuota\"]/div",
"focus": true,
"initWait": 0.25,
"name": "select quota",
"repeat": 0,
"repeatInterval": 0,
"value": ""
},
{
"addon": {
"condition": "",
"elementFinder": "",
"recheck": 0,
"recheckInterval": 0,
"recheckOption": "stop",
"value": "",
"valueExtractor": ""
},
"elementFinder": "//ul[@role=\"listbox\"]//li/span[text()=\"TATKAL\"]",
"focus": true,
"initWait": 0.25,
"name": "select tatkal",
"repeat": 0,
"repeatInterval": 0,
"value": ""
},
{
"addon": {
"condition": "",
"elementFinder": "",
"recheck": 0,
"recheckInterval": 0,
"recheckOption": "stop",
"value": "",
"valueExtractor": ""
},
"elementFinder": "//button[@type=\"submit\"]",
"focus": true,
"initWait": 0.25,
"name": "submit",
"repeat": 0,
"repeatInterval": 0,
"value": ""
},
{
"elementFinder": "//strong[contains(text(),\"16507\")]/../../..//strong[contains(text(),\"3A\")]",
"error": [],
"initWait": 1,
"name": "Select Train 16507/ AC"
},
{
"elementFinder": "//strong[contains(text(),\"16507\")]/../../..//strong[contains(text(),\"Sat, 30 Dec\")]",
"error": [],
"name": "Select Available"
},
{
"elementFinder": "//button[contains(text(),\"Book Now\") and not(contains(@class,\"disable\"))]",
"error": [],
"initWait": 0,
"name": "Select Book ",
"value": ""
},
{
"elementFinder": "//p-confirmdialog//button/span[contains(text(),\"Yes\")]",
"error": [],
"initWait": 0,
"name": "Confirm Stations",
"settings": {
"retry": 2,
"retryInterval": 0.5,
"retryOption": "skip"
}
},
{
"elementFinder": "//p-autocomplete[@formcontrolname=\"passengerName\"]//input",
"error": [],
"initWait": 0,
"name": "Search Passenger",
"settings": {
"retry": -2,
"retryInterval": 0.5,
"retryOption": "stop"
},
"value": "Saroj"
},
{
"elementFinder": "//ul[@role=\"listbox\"]/li/strong[contains(text(),\"Saroj\")]",
"error": [],
"initWait": 0.25,
"name": "Select Passenger",
"value": ""
},
{
"elementFinder": "//label[contains(text(),\"Consider for Auto Upgradation.\")]",
"error": [],
"initWait": 0.25,
"name": "Auto Upgradation"
},
{
"elementFinder": "//label[contains(text(),\"Pay through BHIM/UPI\")]//div[@role=\"radio\"]",
"error": [],
"name": "Pay UPI",
"value": ""
},
{
"elementFinder": "//button[contains(text(),\"Continue\") and contains(@class,\"train_Search\")]",
"error": [],
"name": "Click Continue"
},
{
"elementFinder": "//button[contains(text(),\"Pay & Book\") and contains(@class,\"btn-primary\")]",
"error": [],
"name": "Pay Button",
"settings": {
"retry": -2,
"retryInterval": 0.25,
"retryOption": "stop"
},
"value": ""
}
],
"batch": {
"refresh": false,
"repeat": 0,
"repeatInterval": 0
},
"enable": true,
"hotkey": "Ctrl + Shift + X",
"initWait": 0,
"loadType": "window",
"name": "IRCTC",
"startTime": "",
"startType": "manual",
"url": "https://www.irctc.co.in/nget/train-search"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment