How to write xpath for below screenshot - appium

I am new in appium. I want to find element for username and password displayed in screenshot. If i am using //class then value is same for both username and password. Please help. I want to know all methods to identify the elements(like using class, id, xpath) if possible.
Thanks in advance. Please find the screenshot below
enter image description here

Use this:
Username - driver.findElementByXPath("//*[#class='android.widget.EditText' and #index='0']");
Password - driver.findElementByXPath("//*[#class='android.widget.EditText' and #index='1']");

Related

Airtable check if email was already provided

I am working on an AirTable.Wanna make a check if email provided on form exists already in sheet.
So something like: FIND(1.email, {email}) (it gives error) but to check each row instead.
Is there any dedicated Formula for this? I couldn't find any :(
Thanks in advance :)

Show the user name in the layout or prompt level

I have user the user name as 'USER1' to login to BI publisher.is it possible to display my user name like 'USER1' in prompt level or in layout level.i know we have to use 'xdo_user_name' but can any one explain how to use it.please help me thanks
This works for me on an RTF template in BIP.
Put this somewhere in the beginning in your template
<?param#begin:XDO_USER_NAME;'Error'?>
And then wherever you need to print the username, put:
<?$XDO_USER_NAME?>
For me, this prints my BIP username in the output.

Extract the content of text to be used in a Zapier action

Can someone please help with a code that will extract a name from a text. I am trying to create an action in a Zapier that will extract the Firstname and Lastname from a gmail. I've tried to modify the "Simple Email Extraction" example given here https://zapier.com/help/code/#introductory-examples , but need someone to point me in the right direction. The example gmail will look like this:
Navn: Firstname Lastname
Adresse: Streetadress
PostNr/Sted: Postalcode City
E-post: emailadress
Mobil: mobilephone
What I need to extract is the content of "Firstname Lastname" into an output that can be used in the action.
the Zapier email parser suggested by Matt solved this problem.

Overriding default invalid email message in Grails

How can I override default message when email address isn't valid.
I have following constraints:
constraints = {
...
email blank:false, email:true
}
I was trying to display message in the messages.properties with different combinations:
domainName.email.error
domainName.email.invalid
domainName.email.email
I'm able to display message when email is blank. Obviously I was trying to restart grails after modification, but it still doesn't works.
Thanks in advance for any help.
The correct message code to use for each constraint type can be found on the user guide page for the relevant constraint (choose the constraint you need from the right hand column). In the case of email it is
className.propertyName.email.invalid
so in your case
my.pkg.DomainClassName.email.email.invalid
(the first email being the property name and the second email being part of the email.invalid code).

Salesforce Create Buttons and Links option - Custom URL to launch email template

I have an email template that I would like to launch from within the case using a Link/Button. I see the option under setup->customize->cases->button and links I even see where I need to place the URL. What I don't see is nay documentation on how to build the URL to launch an email template. Any help you be great
I don't know if this is documented anywhere by salesforce, but I found from some guess work:
/_ui/core/email/author/EmailAuthor?p3_lkid={!Case.Id}&p2_lkid={!Case.ContactId}&template_id=00X40000000weWn
Just use that as the url content of a custom button or link. This one is for cases, as you are trying to do, but I think this should work for other types of objects as well.
The parameters are p3_lkid, which is the case id, p2_lkid which is the id of the contact you are emailing, and template_id which is hardcoded to the desired email template. (You can find this id by looking in the url of the Setup page for the template)
This was really helpful. I did, however, figure out another way to do it. Click on the "Send an Email" button you currently have. Copy the URL and add &template_id=YOUR TEMPLATE ID.
There is one other ID number that will show up in the original URL. Change that to be the dynamic field you want it to be.
For example:
Copy url from "Send Email": https://na3.salesforce.com/_ui/core/email/author/EmailAuthor?p3_lkid=70150000000Axj1&retURL=%2F70150000000Axj1
Add &template_id=YOUR TEMPLATE ID so it looks like this:
/_ui/core/email/author/EmailAuthor?p3_lkid=70150000000Axj1&retURL=%2F70150000000Axj1&template_id=YOUR TEMPLATE ID
Remove the other id (it's the object you used to send the email - so in this case, I was wanting to be able to send an email directly from a Campaign) and replace with the dynamic field:
/_ui/core/email/author/EmailAuthor?p3_lkid={!Campaign.Id}&retURL=%2F70150000000Axih&template_id=YOUR TEMPLATE ID
And voila! It should work!
Abeyer's answer is good. However, if the template contains solution attachments "{!Case.Solution_Attachments}" the attachments will not get included unless you add the new_template=1 parameter to the URL making it:
/_ui/core/email/author/EmailAuthor?p3_lkid={!Case.Id}&p2_lkid={!Case.ContactId}&template_id=00X40000000weWn&new_template=1

Resources