Extension Life Cycle - How Extension Work? #367
Dhruv-Tech-Apps
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Page load.
When we type URL and hit enter / refresh page. A Request from browser is sent to server and server sent back html page which is loaded in browser . It loaded in chunks.
script
andstyle
sheet is loaded which is include in tag of html page.Extension load.
Once page is loaded completely extension is loaded.
URL
of page. and if any configuration matched it takes that configuration and execute all its Action one by one.Extension Steps.
N
no of times which we have set in Global Settings.Keep Extension Alive
There are three ways extension is alive
Scenario 1
You want extension to keep looking for and element until it appear without refreshing page. Set Retry to -2 under Global settings and Retry Interval as 1 or above as per your requirement. In this case if Extension don't find required Element within Web page it will keep on trying to find the that element in endless loop because of '-2' which equals infinite in our extension. Again When Extension find that element it will perform normal flow and stop once action are done.
Scenario 2
This time you have that element in page but its value is not one which you require e.g.
Out of Stock
->Buy
or Price$50
->$40
. You want to click on Buy button when price goes down or product is available. And update on site happening in background (Async) without page is refreshed or loaded.Element Finder - of Element which changes. Under Value you need to set
value
which will get compared. Select condition accordingly.Beta Was this translation helpful? Give feedback.
All reactions