Slickk Posted April 26, 2018 Share Posted April 26, 2018 What do I import to use selectOption? Quote Link to comment Share on other sites More sharing options...
Zappster Posted April 26, 2018 Share Posted April 26, 2018 Quick question; what app do you use to write your java code Quote Link to comment Share on other sites More sharing options...
Explv Posted April 26, 2018 Share Posted April 26, 2018 (edited) 9 minutes ago, Slickk said: What do I import to use selectOption? Look at the API. https://osbot.org/api/org/osbot/rs07/api/Dialogues.html I would recommend using an IDE that handles imports for you. Edited April 26, 2018 by Explv Quote Link to comment Share on other sites More sharing options...
Slickk Posted April 26, 2018 Author Share Posted April 26, 2018 (edited) 7 minutes ago, Explv said: Look at the API. https://osbot.org/api/org/osbot/rs07/api/Dialogues.html I would recommend using an IDE that handles imports for you. I've been on this page but I'm not sure what I type exactly. When I try to use selectOption it gives me an error "The method is undefined for the type" Edited April 26, 2018 by Slickk Quote Link to comment Share on other sites More sharing options...
Slickk Posted April 26, 2018 Author Share Posted April 26, 2018 14 minutes ago, Zappster said: Quick question; what app do you use to write your java code eclipse Quote Link to comment Share on other sites More sharing options...
Zappster Posted April 26, 2018 Share Posted April 26, 2018 23 minutes ago, Slickk said: eclipse Pretty sure you can right click on the line->import; that is to say you actually have typed the method out correctly Quote Link to comment Share on other sites More sharing options...
Slickk Posted April 26, 2018 Author Share Posted April 26, 2018 3 minutes ago, Zappster said: Pretty sure you can right click on the line->import; that is to say you actually have typed the method out correctly The method is typed correctly, the only error I get is that it's undefined. When I right click, I don't see an import option. Quote Link to comment Share on other sites More sharing options...
Zappster Posted April 26, 2018 Share Posted April 26, 2018 (edited) Make sure you call it correctly: getDialogues().selectOption("Press here to continue"); Learn to use the API, look at the class. Or use getBot().getMethods(). and check search function. In any case just post your code in the OP it's easier to see where you went wrong Edited April 26, 2018 by Zappster drunk; you do need an import if its outside bot initilize class Quote Link to comment Share on other sites More sharing options...
Slickk Posted April 26, 2018 Author Share Posted April 26, 2018 This is harder than I thought Quote Link to comment Share on other sites More sharing options...
Zappster Posted April 26, 2018 Share Posted April 26, 2018 2 minutes ago, Slickk said: This is harder than I thought Post ur code o) Quote Link to comment Share on other sites More sharing options...
01053 Posted April 27, 2018 Share Posted April 27, 2018 Make sure you have the OSBot Client added to your libraries sounds like that is your issue. Quote Link to comment Share on other sites More sharing options...