Material Tap target prompt : Focused spinner is completely white - java

I am implementing Material Tap target prompt library to make a tutorial screen. I want to focus on my spinner, this is my code:
new MaterialTapTargetPrompt.Builder(MainActivity.this)
.setTarget(spin_01)
.setPrimaryText("Welcome")
.setSecondaryText("You can select the bill type by clicking here")
.setPromptBackground(new RectanglePromptBackground())
.setPromptFocal(new RectanglePromptFocal())
.show();
This is my output:
enter image description here
As you can see, unlike the examples shown in the documentation page, my focused element has a complete white foreground. How do I resolve this issue? Please help me.

Related

VSCode React Native Extension Question - Vector Icons

Can someone please tell me how to get this menu that appears after highlighting this part of the string as seen in this picture I'm including? I'm setting up vector icons for my app using react native cli. Your help will mean the world.
Not sure if the picture link works, but basically after writing this string in the app.js file of my app, he highlights "AntDesign", which then bring a little dropdown menu with an option to "Insert "import AntDesign from 'react-native-vector-icons'" Here is the string that I typed out:
<AntDesign name={"stepforward"} size={30} />
Again, he then highlights "AntDesign" which brings up a dropdown menu with that option mentioned above. I do not get this.
enter image description here

Handling PopUs in Selenium

How to remove an alert that is not having any ok/Cancel button .It just have a link to which i will be redirected to and small cross button at top right of it.
example : An activity is pending with me . Every time i login to website it shows me an alert to complete the Activity . It is not having Ok or Cancel button.
driver.switchTo().alert().dismiss(); is not working . Any suggestion ??
Given is the Alert Pic
Try locating "X" in upper left corner with
driver.findElement(By....)).click();
maybe it should dismiss notification.

Codename One MultiButton setCheckBox(true) not working

Im using codename one 3.5.8 and need to add a checkbox to a multibutton(as the example https://www.codenameone.com/javadoc/com/codename1/components/MultiButton.html) but when adding it to my code ,it seems as though it is being ignored, the checkbox is not adde to my multibutton, this behavior happens on the emulator and also on my test device(android 6.0). is there anything that needs to be apllied additional to setCheckBox(true)
img2:
img3:
In case somebody is having this same behavior, the problem is because in some themes, the checkbox images make the checkbox invisible,the solution is to delete(or replace) the checkbox related images in the constant tab(on theme editor) like explained here:
CodenameOne - change color of checkbox in theme
The MultiButton itself should become a checkbox and would be rendered based on API conventions. You might need a revalidate() if the button is already showing in the UI.
Form hi = new Form("Multibutton", BoxLayout.y());
MultiButton component = new MultiButton();
component.setTextLine1("Name");
component.setTextLine2("Numero de reservacion:");
component.setTextLine3("Fecha de reservacion:");
component.setTextLine4("Estado:");
component.setCheckBox(true);
hi.addComponent(component);
hi.show();

How can I show the text of a "Condition flow" when using "Together Workflow Editor"

I am a user of the "Together Workflow Editor". Recently I got a new requirement. I have to make the "Condition flow" show its name. For example, this is the original graph:
The original graph
​And now I want the graph below:
The graph that is with text on the "Condition flow"
I tried my best, but I can't find the method. ​So if anyone has a solution for my problem, I would appreciate it.
By sending an email to the author of "Together Workflow Editor", I have solved this problem.The solution is:
Edit the file "%Install_Folder%\config\default\togwegraphcontroller.properties",
the original file is:
And change it to:
Then click this image button:
Now you can see the name of the "Condition flow":

To close webengage or clickdesk poup using selenium webdriver

I got a webengage or clickdesk alert popup but that is intermittent, so I can't check everytime or wait for it to load, everytime I enter a new webpage because that would make my test case run very slow. Is there any workaround for it ( may be blocking it).
For WebEngage, all you got to do is call the respective clear() methods for the products being used on the site (to get rid of the corresponding UI components), as underneath:
webengage.feedback.clear();
webengage.notification.clear();
webengage.survey.clear();
However, this would only work when WebEngage has loaded on the page. If you'd like to completely disable loading of WebEngage products, insert this code in head tag of the page you are testing:
var window._weq = {};
_weq['webengage.defaultRender'] = false;
You can do a lot more cool stuff like the above using our JavaScript API: http://docs.webengage.com/api/js-api-v-4.0.html
Avlesh | CEO, WebEngage
If you are using ClickDesk on your website and would like to delete the Proactive rules which pop up the chat window randomly, then these can be deleted or edited to change the frequency from this link on your ClickDesk Dashboard - https://my.clickdesk.com/#proactive.
In case, you do not want the chat widget to show up at all until clicked on a text link or an image link then, you can add our Custom image link or text link code on your website, this would enable the chat widget only when clicked on it. You can find this link here - https://my.clickdesk.com/#departments/default.
If you have further questions or concerns with regards to ClickDesk, you can visit our website www.clickdesk.com and chat with one of our agents online.
Thanks
Mike Evans
ClickDesk Corporation

Categories

Resources