PDA

View Full Version : Timeout waiting for target(component) to be visible



sneha.bhogaraju
29 May 2017, 5:14 AM
Hi everyone,

It would be a great help if someone could help on it.
Onload of my application initially a popup with a button appears later on with other views which will open on click.
Issue is whenever my Sencha test script executes it first performs a click on the button which appears on the popup and then try to execute the remaining things wrote in the script but fails by displaying a message " Timeout waiting for target(button) to be visible".Tried many ways but no success.


Thanks in advance.

joel.watson
30 May 2017, 5:38 AM
What locator are you using for the button?

Thanks
Joel

sneha.bhogaraju
30 May 2017, 10:06 PM
Xpath Locator.

Thanks.

joel.watson
31 May 2017, 3:57 AM
Xpath Locator.

Thanks.

Does the Xpath locator work generically, apart from Sencha Test? For example, does it work if you pass your selector to the following in the browser's console?


document.evaluate('your/xpath/selector/here', document, null, 5, null);

Thanks
Joel

sneha.bhogaraju
5 Jun 2017, 5:45 AM
56381

Here is the output which i got.

Thanks.

joel.watson
5 Jun 2017, 5:56 AM
I'm having a hard time reproducing this. When I try the following for an alert on a modern toolkit application, it works as expected:


ST.element('//span[text()="OK"]').click();

Are you able to put together a simple reproducible test case?

Thanks
Joel