Skip to main content



      Home
Home » Eclipse Projects » SWTBot » Unable to identify/Click On Shell
Unable to identify/Click On Shell [message #1018756] Thu, 14 March 2013 08:22 Go to next message
Eclipse UserFriend
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 748 times)
Re: Unable to identify/Click On Shell [message #1018757 is a reply to message #1018756] Thu, 14 March 2013 08:24 Go to previous messageGo to next message
Eclipse UserFriend
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 00:35 Go to previous messageGo to next message
Eclipse UserFriend
Any Updates on this Plz..???????????
Re: Unable to identify/Click On Shell [message #1415098 is a reply to message #1020395] Tue, 02 September 2014 00:51 Go to previous messageGo to next message
Eclipse UserFriend
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 06:28 Go to previous message
Eclipse UserFriend
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 Mar 14 03:19:45 EDT 2025

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

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

Back to the top