Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Run automated selenium test scripts from JIRA ondemand
Fri Dec 08, 2017 12:40 pm by azharuddin

» New! Appium Desktop
Sat Nov 25, 2017 3:51 pm by azharuddin

» Selenium WebDriver Integration
Tue Nov 21, 2017 1:06 pm by azharuddin

» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

gotoIf from parts of storeText possible?

View previous topic View next topic Go down

gotoIf from parts of storeText possible?

Post by R1986 on Sun Mar 17, 2013 1:34 pm

[info] Executing: |clickAndWait | link=Whatever | |
[info] Executing: |storeText | xpath=id('form')/x:table[6]/x:tbody/x:tr[7]/x:td[5] | abc |
[info] Executing: |echo | ${abc} | |
[info] echo: -- XY: 67.13


now i need an gotoIf target that only the numbers check (67.13)
the rest must be ignored. only the numbers.
if is smaller as 67.13 then goto to another line.

can anybody help me?


regards
R1986

R1986

Posts : 2
Join date : 2013-02-10

Back to top Go down

Re: gotoIf from parts of storeText possible?

Post by ccox on Mon Mar 18, 2013 9:31 pm

In Javascript, use the split() function on the colon and then trim the white space. This will give you that number.

Use the getEval command to execute.

ccox
Master
Master

Posts : 205
Join date : 2012-01-06
Age : 32
Location : Denver, CO

Back to top Go down

Re: gotoIf from parts of storeText possible?

Post by a71688 on Fri Aug 08, 2014 2:28 pm

An example is given here:


open
http://ibsseo2.${host}.certifikat.dk:8085/testtools/



type
id=useridinput
${cpr3}


clickAndWait
id=submit_view_existing



storeText
id=nemid_number
x


store
${x}
string


storeEval
storedVars['string'].match(/\d+.\d/);
number


open
http://ibsseo2.${host}.certifikat.dk:8085/testtools/



type
id=useridinput
${number}


clickAndWait
id=submit_view_existing


a71688
Regular Participant
Regular Participant

Posts : 27
Join date : 2014-07-23

Back to top Go down

Re: gotoIf from parts of storeText possible?

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum