# How to type special characters using robot

**URL:** <https://forum.robotframework.org/t/how-to-type-special-characters-using-robot/5236>\
**Category:** Robot Framework\
**Created:** [31 January 2023 19:00 UTC](https://forum.robotframework.org/t/how-to-type-special-characters-using-robot/5236 "2023-01-31T19:00:56Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafael](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/rafael/32/1832_2.png) [@rafael](https://forum.robotframework.org/u/rafael)\
**Post date:** [31 January 2023 19:00 UTC](https://forum.robotframework.org/t/how-to-type-special-characters-using-robot/5236/1 "2023-01-31T19:00:57Z")

</div>

Hello dudes! I’m here again with one simple question that is driving me crazy. I need to type a simple asterisk in one of the tests i’m working in to… I just need to do the program I’m testing to multiply some values and to do that, I need to type this character… but I couldn’t solve this until now. I believe that solving this, all the related issues to typing special characters will be solved too. Could anyone help me pls?

cheers!

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [31 January 2023 23:14 UTC](https://forum.robotframework.org/t/how-to-type-special-characters-using-robot/5236/2 "2023-01-31T23:14:53Z")

</div>

Robot Framework is a **framework** for test automation, which can be used to test many different softwares. That is why we don’t know what kind of software you are testing, so, please say what Library are you using and the type of software where you need to **type and asterisk**.

(or in other words: Please go straight to the point. You can assume we are here to help.)

---

<div class="post-metadata">

**Author:** ![rafael](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/rafael/32/1832_2.png) [@rafael](https://forum.robotframework.org/u/rafael)\
**Post date:** [1 February 2023 13:01 UTC](https://forum.robotframework.org/t/how-to-type-special-characters-using-robot/5236/3 "2023-02-01T13:01:29Z")

</div>

Hello Helio! Thank you so much for your attention! I work in a company that build a POS software. So, I need to multiply the products I’m testing the sales. I just left the robot running and executing most of the functions that the software is progammed to do and the most important is saling. What I need to do is something like ‘2 x7891255216225’. To type the ‘x’, to multiply the item, I need to press ‘\*’. You know? To do my job, I’m using sikuli library with another ones like faker, PostgreSQLDB, DateTime, String, Collections, etc…

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [1 February 2023 13:21 UTC](https://forum.robotframework.org/t/how-to-type-special-characters-using-robot/5236/4 "2023-02-01T13:21:22Z")

</div>

Hi Rafael,

With SikuliLibrary you should be able to simply do something like:

```python
Input text	${EMPTY}	*

```

`*` is not a special character for Robot Framework or SikuliX as far as I know

The special keys in SikuliX are [documented here](http://doc.sikuli.org/keys.html) and you’d use them like this:

```python
Press Special Key	TAB

```

Dave.

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [1 February 2023 14:52 UTC](https://forum.robotframework.org/t/how-to-type-special-characters-using-robot/5236/5 "2023-02-01T14:52:31Z")

</div>

Also the keyword `Type With Modifiers` can be used to simulate pressing keys.

---

<div class="post-metadata">

**Author:** ![rafael](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/rafael/32/1832_2.png) [@rafael](https://forum.robotframework.org/u/rafael)\
**Post date:** [1 February 2023 15:00 UTC](https://forum.robotframework.org/t/how-to-type-special-characters-using-robot/5236/6 "2023-02-01T15:00:59Z")

</div>

Hi damies13!  
I have tried doing like this but it just don’t type anything and if i’m not wrong, it raises an error. I gonna try to do it again and post the logs here .

cheers!

---

<div class="post-metadata">

**Author:** ![rafael](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/rafael/32/1832_2.png) [@rafael](https://forum.robotframework.org/u/rafael)\
**Post date:** [1 February 2023 16:31 UTC](https://forum.robotframework.org/t/how-to-type-special-characters-using-robot/5236/7 "2023-02-01T16:31:29Z")

</div>

I tried doing like this again. It really didn’t raise any error, it doesn’t types anything tho. Following, we can see the code and the log. But I think I discovered what happens… The system I’m testing doesn’t allow me to type something like ‘shift + 8’ to get the ‘_’ it only works if I press the '_’ on the numeric keypad so I gonna try to solve this in other way.

**Code**  
 ![multiplier](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/0/066435cf85f8b1fe2f49c3dc8a595c4e55ab432d.png)

**Logs**

 ![log](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/d/dc145f2937f54ceb1a89705612e72a3116f6acff.png)

---

<div class="post-metadata">

**Author:** ![rafael](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/rafael/32/1832_2.png) [@rafael](https://forum.robotframework.org/u/rafael)\
**Post date:** [1 February 2023 16:35 UTC](https://forum.robotframework.org/t/how-to-type-special-characters-using-robot/5236/8 "2023-02-01T16:35:28Z")

</div>

Hi Helio!  
The system I’m testing doesn’t allow me to type ‘SHIFT + 8’ to get the ‘_'. It just works if I press the '_’ in numeric keypad… so, I’ll have to solve this in another way. Do you know how could I differentiate these keys?

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [1 February 2023 17:02 UTC](https://forum.robotframework.org/t/how-to-type-special-characters-using-robot/5236/9 "2023-02-01T17:02:06Z")

</div>

If there is a NUM\_8 definition in SikuliX like @damies13 referenced, you can use `Press Special Key`.

`Type With Modifiers 8 SHIFT` should work if your keyboard has the same definition of the one in the SUT.

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [1 February 2023 17:03 UTC](https://forum.robotframework.org/t/how-to-type-special-characters-using-robot/5236/10 "2023-02-01T17:03:08Z")

</div>

If you have an on-screen keyboard then you can use images to click on.

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [1 February 2023 21:59 UTC](https://forum.robotframework.org/t/how-to-type-special-characters-using-robot/5236/11 "2023-02-01T21:59:34Z")

</div>

Hi Rafael,

I think I see the (a) problem, `Input Text` is sending a RETURN after sending the key, probably not what you want.

Maybe try:

```python
Press Special Key	*

```

Not sure if it’ll work or not but worth a try.

otherwise try a `Key Down` followed by a `Key Up`

Dave.
