How to call a button click using future element in Sencha Test?WatiN clicks the button but nothing happensCan iMacros click a button and not wait for a response?Selenium clicking button with no name or idDouble click a row in Sencha TestVBA webpage automation: click radio button in next TD with reference to previous TD without IDHow click on dynamic buttons link “#” from selenium and splinter?How automate a process than I must do in a web pagehow to mock ajax call with sencha test with extjs

How to descend a few exposed scrambling moves with minimal equipment?

Lost & Found Mobile Telepone

Equilibrium points of bounce/instanton solution after Wick's rotation

What's the biggest difference between these two photos?

What makes things real?

Why was "leaping into the river" a valid trial outcome to prove one's innocence?

When does order matter in probability?

If every star in the universe except the Sun were destroyed, would we die?

What is the difference between tl_to_str:V and tl_to_str:N?

pgfgantt: month displayed as single letter

Why do the British opposition parties not want a new election?

How do Scrum teams manage their dependencies on other teams?

Problem with listing a directory to grep

Sloth and the Hindrances

Distinguishing between octahedral and tetrahedral holes

Is it unavoidable taking shortcuts in software development sometimes?

What can we do about our 9-month-old putting fingers down his throat?

Chandrayaan 2: Why is Vikram Lander's life limited to 14 Days?

Who is the uncredited actor leading the squad in the Valerian movie?

How to add extra edges in tree?

Why can linguists decide which use of language is correct and which is not?

I need to know information from an old German birth certificate

Aftermarket seats

Is future tense in English really a myth?



How to call a button click using future element in Sencha Test?


WatiN clicks the button but nothing happensCan iMacros click a button and not wait for a response?Selenium clicking button with no name or idDouble click a row in Sencha TestVBA webpage automation: click radio button in next TD with reference to previous TD without IDHow click on dynamic buttons link “#” from selenium and splinter?How automate a process than I must do in a web pagehow to mock ajax call with sencha test with extjs






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I am automating integration testing for my solution.



After performing the login process, I execute a script call. So that takes some time. After the response comes, I render the page. On it, there is a button in the operational toolbar.



What I wish to do is write a click call to that button. But that doesn't seem to work.



I have tried adding wait to the click call. Also I have tried to use the parent level html of button which in our case is a tag and even the child level config ... span tag and related id.



I used the same logic with URL changed to google, which works pretty well.
But I have no clue why that isn't working over here.



The code below makes focus and types in the keyword Sencha in the search
field using future element. Then it clicks on Google Search. Post that once the page is rendered with results, using ST.element I have tried to call click on search by voice button.



 ST.element('input[title="Search"]')
.focus()
.type('Sencha');

ST.element('input[value="Google Search"]')
.click();

ST.element('div[aria-label="Search by voice"]')
.click();


However this is the code with respect to my solution that does not seem to work.



 ST.field('@txtLoginUserName')
.focus()
.type('admin@vistaar.rpod.vistaarcloud.com');
ST.field('@txtLoginPassword')
.focus()
.type('Welcome@54321');

ST.element('@loginButton').click();

ST.element('span[id="btnOpportunityAddDrug-btnEl"]')
.click();

ST.element('input[id="txtDrugReportName-inputEl"]')
.focus()
.type('Sample Report');


I expect that the button should be clicked after the landing page is rendered completely after getting response from the back-end call.



Please let me know what I could be possibly missing or where am I going wrong.



PS: It is my experience with Sencha Test. So please tell me the steps as briefly as possible.










share|improve this question


























  • tried changing code from ST.element('span[id="btnOpportunityAddDrug-btnEl"]') .click(); to this ST.element('#btnOpportunityAddDrug') .click() .and(function() debugger; alert('hi'); ); It gives me the alert message but the result is still a failure and I can't even see my screen being loaded. Firing ST.find('#btnOpportuntiyAddDrug") returns me the button class too in developer console. But one of the things I found confusing is the alert is not called every time.

    – user2796905
    Mar 28 at 9:58

















0















I am automating integration testing for my solution.



After performing the login process, I execute a script call. So that takes some time. After the response comes, I render the page. On it, there is a button in the operational toolbar.



What I wish to do is write a click call to that button. But that doesn't seem to work.



I have tried adding wait to the click call. Also I have tried to use the parent level html of button which in our case is a tag and even the child level config ... span tag and related id.



I used the same logic with URL changed to google, which works pretty well.
But I have no clue why that isn't working over here.



The code below makes focus and types in the keyword Sencha in the search
field using future element. Then it clicks on Google Search. Post that once the page is rendered with results, using ST.element I have tried to call click on search by voice button.



 ST.element('input[title="Search"]')
.focus()
.type('Sencha');

ST.element('input[value="Google Search"]')
.click();

ST.element('div[aria-label="Search by voice"]')
.click();


However this is the code with respect to my solution that does not seem to work.



 ST.field('@txtLoginUserName')
.focus()
.type('admin@vistaar.rpod.vistaarcloud.com');
ST.field('@txtLoginPassword')
.focus()
.type('Welcome@54321');

ST.element('@loginButton').click();

ST.element('span[id="btnOpportunityAddDrug-btnEl"]')
.click();

ST.element('input[id="txtDrugReportName-inputEl"]')
.focus()
.type('Sample Report');


I expect that the button should be clicked after the landing page is rendered completely after getting response from the back-end call.



Please let me know what I could be possibly missing or where am I going wrong.



PS: It is my experience with Sencha Test. So please tell me the steps as briefly as possible.










share|improve this question


























  • tried changing code from ST.element('span[id="btnOpportunityAddDrug-btnEl"]') .click(); to this ST.element('#btnOpportunityAddDrug') .click() .and(function() debugger; alert('hi'); ); It gives me the alert message but the result is still a failure and I can't even see my screen being loaded. Firing ST.find('#btnOpportuntiyAddDrug") returns me the button class too in developer console. But one of the things I found confusing is the alert is not called every time.

    – user2796905
    Mar 28 at 9:58













0












0








0








I am automating integration testing for my solution.



After performing the login process, I execute a script call. So that takes some time. After the response comes, I render the page. On it, there is a button in the operational toolbar.



What I wish to do is write a click call to that button. But that doesn't seem to work.



I have tried adding wait to the click call. Also I have tried to use the parent level html of button which in our case is a tag and even the child level config ... span tag and related id.



I used the same logic with URL changed to google, which works pretty well.
But I have no clue why that isn't working over here.



The code below makes focus and types in the keyword Sencha in the search
field using future element. Then it clicks on Google Search. Post that once the page is rendered with results, using ST.element I have tried to call click on search by voice button.



 ST.element('input[title="Search"]')
.focus()
.type('Sencha');

ST.element('input[value="Google Search"]')
.click();

ST.element('div[aria-label="Search by voice"]')
.click();


However this is the code with respect to my solution that does not seem to work.



 ST.field('@txtLoginUserName')
.focus()
.type('admin@vistaar.rpod.vistaarcloud.com');
ST.field('@txtLoginPassword')
.focus()
.type('Welcome@54321');

ST.element('@loginButton').click();

ST.element('span[id="btnOpportunityAddDrug-btnEl"]')
.click();

ST.element('input[id="txtDrugReportName-inputEl"]')
.focus()
.type('Sample Report');


I expect that the button should be clicked after the landing page is rendered completely after getting response from the back-end call.



Please let me know what I could be possibly missing or where am I going wrong.



PS: It is my experience with Sencha Test. So please tell me the steps as briefly as possible.










share|improve this question
















I am automating integration testing for my solution.



After performing the login process, I execute a script call. So that takes some time. After the response comes, I render the page. On it, there is a button in the operational toolbar.



What I wish to do is write a click call to that button. But that doesn't seem to work.



I have tried adding wait to the click call. Also I have tried to use the parent level html of button which in our case is a tag and even the child level config ... span tag and related id.



I used the same logic with URL changed to google, which works pretty well.
But I have no clue why that isn't working over here.



The code below makes focus and types in the keyword Sencha in the search
field using future element. Then it clicks on Google Search. Post that once the page is rendered with results, using ST.element I have tried to call click on search by voice button.



 ST.element('input[title="Search"]')
.focus()
.type('Sencha');

ST.element('input[value="Google Search"]')
.click();

ST.element('div[aria-label="Search by voice"]')
.click();


However this is the code with respect to my solution that does not seem to work.



 ST.field('@txtLoginUserName')
.focus()
.type('admin@vistaar.rpod.vistaarcloud.com');
ST.field('@txtLoginPassword')
.focus()
.type('Welcome@54321');

ST.element('@loginButton').click();

ST.element('span[id="btnOpportunityAddDrug-btnEl"]')
.click();

ST.element('input[id="txtDrugReportName-inputEl"]')
.focus()
.type('Sample Report');


I expect that the button should be clicked after the landing page is rendered completely after getting response from the back-end call.



Please let me know what I could be possibly missing or where am I going wrong.



PS: It is my experience with Sencha Test. So please tell me the steps as briefly as possible.







automation sencha-test






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 28 at 8:20







user2796905

















asked Mar 28 at 7:33









user2796905user2796905

286 bronze badges




286 bronze badges















  • tried changing code from ST.element('span[id="btnOpportunityAddDrug-btnEl"]') .click(); to this ST.element('#btnOpportunityAddDrug') .click() .and(function() debugger; alert('hi'); ); It gives me the alert message but the result is still a failure and I can't even see my screen being loaded. Firing ST.find('#btnOpportuntiyAddDrug") returns me the button class too in developer console. But one of the things I found confusing is the alert is not called every time.

    – user2796905
    Mar 28 at 9:58

















  • tried changing code from ST.element('span[id="btnOpportunityAddDrug-btnEl"]') .click(); to this ST.element('#btnOpportunityAddDrug') .click() .and(function() debugger; alert('hi'); ); It gives me the alert message but the result is still a failure and I can't even see my screen being loaded. Firing ST.find('#btnOpportuntiyAddDrug") returns me the button class too in developer console. But one of the things I found confusing is the alert is not called every time.

    – user2796905
    Mar 28 at 9:58
















tried changing code from ST.element('span[id="btnOpportunityAddDrug-btnEl"]') .click(); to this ST.element('#btnOpportunityAddDrug') .click() .and(function() debugger; alert('hi'); ); It gives me the alert message but the result is still a failure and I can't even see my screen being loaded. Firing ST.find('#btnOpportuntiyAddDrug") returns me the button class too in developer console. But one of the things I found confusing is the alert is not called every time.

– user2796905
Mar 28 at 9:58





tried changing code from ST.element('span[id="btnOpportunityAddDrug-btnEl"]') .click(); to this ST.element('#btnOpportunityAddDrug') .click() .and(function() debugger; alert('hi'); ); It gives me the alert message but the result is still a failure and I can't even see my screen being loaded. Firing ST.find('#btnOpportuntiyAddDrug") returns me the button class too in developer console. But one of the things I found confusing is the alert is not called every time.

– user2796905
Mar 28 at 9:58












0






active

oldest

votes










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55392280%2fhow-to-call-a-button-click-using-future-element-in-sencha-test%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes




Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.




















draft saved

draft discarded















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55392280%2fhow-to-call-a-button-click-using-future-element-in-sencha-test%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript