Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Unable to identify/Click On Shell
Unable to identify/Click On Shell [message #1018756] Thu, 14 March 2013 12:22 Go to next message
pawan garia is currently offline pawan gariaFriend
Messages: 39
Registered: February 2013
Member
Hi all i have a Shell Which Dont have a Name or Text.
Due to which i am not able To click on any item in the Shell.
And i am not able to apply the wait condition on the Shell.
Please help me with some code or Sample, like how to use the wait condition in a situation like this and activate the shell.
please find the Snapshot also


index.php/fa/13855/0/
  • Attachment: shell.png
    (Size: 105.15KB, Downloaded 684 times)
Re: Unable to identify/Click On Shell [message #1018757 is a reply to message #1018756] Thu, 14 March 2013 12:24 Go to previous messageGo to next message
pawan garia is currently offline pawan gariaFriend
Messages: 39
Registered: February 2013
Member
I am using the Followihng Code...
bot.label("Run Workflow").isActive();
bot.waitUntil(Conditions.shellIsActive(""));
bot.shell("").activate();
bot.buttonWithLabelInGroup("Development Mode?","Settings").click();
Re: Unable to identify/Click On Shell [message #1020395 is a reply to message #1018757] Mon, 18 March 2013 04:35 Go to previous messageGo to next message
pawan garia is currently offline pawan gariaFriend
Messages: 39
Registered: February 2013
Member
Any Updates on this Plz..???????????
Re: Unable to identify/Click On Shell [message #1415098 is a reply to message #1020395] Tue, 02 September 2014 04:51 Go to previous messageGo to next message
Shwetali Dhumal is currently offline Shwetali DhumalFriend
Messages: 12
Registered: August 2014
Junior Member
Hi Pawan,

You can try to wait until label is enabled. You have HINT: label on the shell, you can wait until label is visible.
Refer below code:

bot.waitUntil(new DefaultCondition() {

@Override
public boolean test() throws Exception {
return !bot.label("LabelName").isVisible(); // waits here until TRUE is returned. But max 5 seconds.
}

@Override
public String getFailureMessage() {
return "Error waiting for condition to be true."; // error msg here
}
});
Re: Unable to identify/Click On Shell [message #1421414 is a reply to message #1415098] Thu, 11 September 2014 10:28 Go to previous message
pawan garia is currently offline pawan gariaFriend
Messages: 39
Registered: February 2013
Member
Thanks Shwetali for the Reply !!

I have fixed this problem. Smile
Previous Topic:How to wait until context menu is visible
Next Topic:How to handle unpredictable shells
Goto Forum:
  


Current Time: Fri Apr 19 06:35:43 GMT 2024

Powered by FUDForum. Page generated in 0.02270 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top