passing element id as parameter in appium - selenium-webdriver

I am new to Appium and trying android hybrid app testing with Java.
Is it possible to pass the xyz in the below example as a parameter to the method and how to do it?
eg:
dr.findElementByAndroidUIAutomator("UiSelector().text(xyz)").click();
Also please point me out to any articles related to this topic.

Yes, if you want to pass text to your field you can use method sendkeys(); for that.

Related

TinyMCE - ReactJS Integration and Blobs

I am having an issue when trying to implement image uploading with the React wrapper of TinyMCE. Everything seems to work according to the Quick start guide, and to the File Picker demo here minus the following:
On the demo, when creating a blob, they are using the tinymce.activeEditor.editorUpload.blobCache function to create and add the blob info. I have noticed that this function is available within the 'editor' parameter given to the handleEditorChange function, passed as a prop to onEditorChange in the Editor component. However, the file upload callback is accessed through a separate function given the callback value is passed to it, through the init prop object passed onto the Editor.
So the dilemma now is, how can I access the tinymce blob cache, through the different function parameters? Has anybody got any work around to this? Any insight would be greatly appreciated. Thank you in advance.
Something wrong? I can use like that. But, I used at SPA.
window.tinymce.activeEditor.editorUpload.blobCache;

How to make ID's generic for different website

I am automating tests using selenium webdriver using test ng framework. Here am trying to implement POI and factory Design pattern.
Basically am testing on two websites (Which differs in GUI interface)which has login pages
Login Name and Password and login button but the challenging part is webelements has different ID in both the websites.
HOw to write a generic methods for this?
For locators i have a an enum class where i take the instance of each value and call it in the method.
As id is different than for sure you need to define both elements. There is no such solution for it.
In your testcase you can implement a check which defines that you on which environment and accordingly it will pass the element

Map Component deprecated in Codename One

I'm facing some challenge in using maps, my map component is deprecated, is there something I should do to be able to use it and also would like to know the steps required to intergrate map keys to Codename One?
MapComponent is marked deprecated to discourage its use, but it should still work fine. The reason we discourage its use is because the Google Maps lib is better than it in almost every way. You should look at using that instead if possible.
There are instructions in the readme file on how to integrate your keys.
The Google maps library is updated with improvments please go throgh the below link.
new update n google map
you have added it from build hints as shown in as attached image.

Angular variable in primefaces commandLink

I have a little issue with passing an angular variable as an argument in the action attribute of a commandlink.
I tried: action="#{saisieConge.setCongeWithId({{row.congeId}})}"
and action="#{saisieConge.setCongeWithId(row.congeId)}"
Either way, it is not working :( We just start to integrate angular in our web application and change everything from jsf to angular would be to much of work at ounce. That is way I need to find a way to combine the two.
I would like to avoid passing the angular variable as a param or with f:setPropertyActionListener which would need to create a variable in my bean.
Thanks !

How do I get the built-in tag "url" to work?

Does anybody know how I can get built-in Django tag url to work in the wrapped template renderer in google-app-engine?
It fails to create a "nice" url because it expects Django style url mappings, and since I'm using webapp.WSGIApplication I understand how it can be difficult for it to work. Basically I want to know if there is an alternative that will work with google-app-engine style url mappings.
Thanks in advance for any input.
It's not possible - that function depends on using Django's routing system, which webapp doesn't. More to the point, webapp doesn't provide a reverse-mapping function at all.

Resources