Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Regarding Alert Interface
Fri Feb 24, 2017 2:00 pm by karthikeyakumar

» Geting issues in identifying the elsements in webdriver
Fri Feb 17, 2017 4:41 pm by janbaskt

» WebDriver - why not to use a singlton for it?
Fri Feb 17, 2017 4:40 pm by janbaskt

» WebDriver session when using testng annotation to invoke driver instance
Fri Feb 17, 2017 4:39 pm by janbaskt

» Selenium fails to launch Chrome
Fri Feb 17, 2017 4:39 pm by janbaskt

» why do i get this error
Fri Feb 17, 2017 4:38 pm by janbaskt

» Selenium Tutorial
Thu Feb 16, 2017 5:21 pm by Rahul

» When to use Selenium IDE, RC and WebDriver
Mon Feb 13, 2017 2:35 pm by azharuddin

» How to integrate selenium with ZAPI-Zephyr
Sat Feb 11, 2017 2:25 am by gseera002c

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


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