--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
Ugh
Selenium2Library will automatically select the first element for interactions. But if you want to click the second element, it can be easily done by xpath and predicates. Something like this could work:
| Click Element | xpath=(//span[@id="select2-select_format-container"])[2] |
-Tatu
On 7.6.2016 9:57, jloyzaga wrote:
The code below is whats giving me issues and I'd like to click on the span with that id as there are 2 select2-selection__rendered items--
<span id="select2-select_format-container" class="select2-selection__rendered">
how do I do it?
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
ATTACHED is the code and firebug image
the code below generated the error below it
\ ${formatcount} = Get Webelement xpath=(//span[@id="select2-select_format-container"])[2]
\ log to console "item count "${formatcount}
#| | ${item count}= | Get Length | ${formatcount}
#| | log to console | "item count "${item count}
\ Click Element ${formatcount}
Ugh
Selenium2Library will automatically select the first element for interactions. But if you want to click the second element, it can be easily done by xpath and predicates. Something like this could work:
| Click Element | xpath=(//span[@id="select2-select_format-container"])[2] |
-Tatu
On 7.6.2016 9:57, jloyzaga wrote:
The code below is whats giving me issues and I'd like to click on the span with that id as there are 2 select2-selection__rendered items--
<span id="select2-select_format-container" class="select2-selection__rendered">
how do I do it?
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
On Jun 7, 2016, at 4:11 PM, jloyzaga <jloy...@gmail.com> wrote:(//span[@id="select2-select_format-container"])[2]