We've recently started migrating from IDE to WebDriver, and are in the process of converting many of our tests. One of these tests involves Users signing up for our site. In the past, I've used something like the following:<tr><td>type</td><td>id=Email</td><td>javascript{"FreeTrial" + Math.floor(Math.random()*11111) + "@test.com";}</td></tr>To convert our tests from IDE, we're changing the format to Java / Junit4 / WebDriver. Any command we have that used this little JavaScript test is just displaying as " // ERROR: Caught exception [ERROR: Unsupported command [getEval | | ]]" in the converted test.Is there a fairly easy way to generate a random string of text like this using Java?Thanks!--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/_ycmunySKkkJ.
For more options, visit https://groups.google.com/groups/opt_out.
We've recently started migrating from IDE to WebDriver, and are in the process of converting many of our tests. One of these tests involves Users signing up for our site. In the past, I've used something like the following:
<tr><td>type</td><td>id=Email</td>
<td>javascript{"FreeTrial" + Math.floor(Math.random()*11111) + &qu...@test.com";}</td></tr>
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/cc3RZfGJepYJ.
My first suggestion would be to learn java.Then I would look into creating a factory to build this random data for you.
On Thu, Apr 25, 2013 at 5:08 PM, Corey Lyons <teama...@gmail.com> wrote:
We've recently started migrating from IDE to WebDriver, and are in the process of converting many of our tests. One of these tests involves Users signing up for our site. In the past, I've used something like the following:
<tr><td>type</td><td>id=Email</td>
<td>javascript{"FreeTrial" + Math.floor(Math.random()*11111) + &qu...@test.com";}</td></tr>
My first suggestion would be to learn java.Then I would look into creating a factory to build this random data for you.
On Thu, Apr 25, 2013 at 5:08 PM, Corey Lyons <teama...@gmail.com> wrote:
We've recently started migrating from IDE to WebDriver, and are in the process of converting many of our tests. One of these tests involves Users signing up for our site. In the past, I've used something like the following:
<tr><td>type</td><td>id=Email</td>
<td>javascript{"FreeTrial" + Math.floor(Math.random()*11111) + &qu...@test.com";}</td></tr>