Question: Testing mobile application using appium. When I run to test, my application opens, I can do some action, and then when I login, app takes me to browser to login to the cloud which is OK, but my problem is in the emulator. I have a question that pops-up, Open with Chrome or other app (JUST ONCE / ALWAYS). How can I avoid this dialog? 

added below code but this does not help 

```
caps.setCapability("appPackage", "com.android.browser");

```

I expect that when app switch me to browser then I can paste my credentials and switch back to my application and I can continue my testing

Answer: 
If you really use an XSLT 2 processor and that way you can use XPath 2 at the expression level of the `select` attribute then you can solve it with `select="'test d''un apostrophe'"` (see <https://www.w3.org/TR/xpath20/#prod-xpath-StringLiteral> on the rules for string literals) but it seems easier to just use

```
<xsl:variable name="lang.mainData" as="xs:string">test d'un apostrophe</xsl:variable>

```

(make sure the stylesheet then declares `xmlns:xs="http://www.w3.org/2001/XMLSchema"`).
This is a common situation about delimiters when you have a hosted language: in this case, XSLT as XML vocabulary and XPath as string in some attribute. Such common that it was foreseen in the [specification](https://www.w3.org/TR/1999/REC-xpath-19991116/#section-Introduction):

> 
> XPath expressions often occur in XML attributes. The grammar specified
>  in this section applies to the attribute value after XML 1.0
>  normalization. So, for example, if the grammar uses the character `<`,
>  this must not appear in the XML source as `<` but must be quoted
>  according to XML 1.0 rules by, for example, entering it as `&lt;`.
>  Within expressions, literal strings are delimited by single or double
>  quotation marks, which are also used to delimit XML attributes. To
>  avoid a quotation mark in an expression being interpreted by the XML
>  processor as terminating the attribute value the quotation mark can be
>  entered as a character reference (`&quot;` or `&apos;`). Alternatively,
>  the expression can use single quotation marks if the XML attribute is
>  delimited with double quotation marks or vice-versa.
> 
> 
> 

Following that quote, your XSLT instruction would look like:

```
<xsl:variable name="lang.mainData" select="&quot;test d'un apostrophe&quot;"/>

```

or

```
<xsl:variable name="lang.mainData" select='"test d&apos;un apostrophe"'/>

```