Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
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 : 31
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 Today at 4:48 am


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