English 中文(简体)
Selenium IDE: Incrementing values by 1 and 71
原标题:
  • 时间:2009-11-09 16:19:21
  •  标签:
  • ide
  • selenium

Currently I m incrementing a value called wert by 1 with the following code:

getEval storedVars[ wert ]=${wert}+1;

The value wert is something like 80401299.

I want to add 1 to the value, if it ends between 70 and 99, after 99 the next value should be 80401370 (skipping 00-69). How is this possible in Selenium IDE?

问题回答

I m unclear on what this has to do with Selenium (it looks like a matter of plain Javascript to me). Unless I m missing something, all you need to do is check the value of wert modulo 100 and increment accordingly. In pseudocode:

if wert % 100 <= 69
    wert = wert + 71
else
    wert = wert + 1




相关问题
Sybase Development IDE

Is there a Toad type application for Sybase? I can t seem to find a single one! I ve tried using VS 2008 but can t see the sproc source.

Good C IDE for Mac? [closed]

I ve just started a job where I m programming in C on a Mac, which is my first experience using a Mac for development. For now I m using Xcode as my editor, then using make/gcc/svn at the command line ...

What are your experiences with Code::Blocks? [closed]

I looked at Code::Blocks and it certainly looks great for c++ development, I like it s multiplatform capabilities (runs everywhere), but I wanted to get your feedback. Is it good/stable enough to be ...

What do you use to write Go [closed]

I know its a bit too early, but I ve been trying out Go (Google s Programming Language) and its kindof annoying to write code in gedit. So, my question: What do you use to experiment with Go?

Help with strange Delphi 5 IDE problems

Ok, I m going nuts here. For the last (almost) four years, I ve been putting up with some extremely bad behavior from my Delphi 5 IDE. Problems include: Seemingly random errors in coride50.bpl ...

Eclipse smart quotes - like in Textmate

Happy Friday — Does anyone know if eclipse has the notion of smart quotes like Textmate. The way it works is to select some words and quote them by simply hitting the " key? I m a newbie here so be ...

Selenium IDE: Incrementing values by 1 and 71

Currently I m incrementing a value called wert by 1 with the following code: getEval storedVars[ wert ]=${wert}+1; The value wert is something like 80401299. I want to add 1 to the value, if it ...

热门标签