Custom javascript to push a specific button on the page
- or -
Post a project like this£40(approx. $50)
- Posted:
- Proposals: 4
- Remote
- #2371845
- Expired
Description
Experience Level: Intermediate
I have a slightly customized version of TestRail software and I want to do a productivity automation, by using a chrome plugin like "Custom JavaScript for websites" and inject a Javascript that will do the following:
1) It will check that the URL of the webpage contains the text defined by Parameter1 (e.g. testrail.sampledomain.com/index.php?/tests/view/ )
so that this javascript only does something on relevant webpages
Have a look at screenshots: https://imgur.com/a/SgjxhM6
2) it will check that the text on the middle right of the page (highlighted with red on the attached screenshot) contains what is defined in Parameter2 (most probably the Parameter2 value will be "Assigned to me")
so that the javascript executes only when viewing test cases that are assigned to the currently logged in user (that's when this text says "assigned to me" and not "assigned to gpapadopoulos" or any other user).
If those two conditions are met, the ACTION that this javascript needs to do is to just press a button! The button is the "Start Progress" button.
I have attached 2 screenshots from the "Inspect Element" of Google Chrome for both the "assigned to" label and the "start progress" button.
1) It will check that the URL of the webpage contains the text defined by Parameter1 (e.g. testrail.sampledomain.com/index.php?/tests/view/ )
so that this javascript only does something on relevant webpages
Have a look at screenshots: https://imgur.com/a/SgjxhM6
2) it will check that the text on the middle right of the page (highlighted with red on the attached screenshot) contains what is defined in Parameter2 (most probably the Parameter2 value will be "Assigned to me")
so that the javascript executes only when viewing test cases that are assigned to the currently logged in user (that's when this text says "assigned to me" and not "assigned to gpapadopoulos" or any other user).
If those two conditions are met, the ACTION that this javascript needs to do is to just press a button! The button is the "Start Progress" button.
I have attached 2 screenshots from the "Inspect Element" of Google Chrome for both the "assigned to" label and the "start progress" button.
Vassilis T.
100% (3)Projects Completed
3
Freelancers worked with
3
Projects awarded
67%
Last project
7 Jul 2019
Greece
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies