Computing desk | ||
---|---|---|
< June 13 | << May | June | Jul >> | June 15 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
This generally isn't a high-quality photo; I took it while driving at comparatively low speed, and (as with most of my images) I had the camera on auto mode, not manual. I'm confused by the inconsistent focus: the center of the image is properly focused while the building's wings aren't (as is expected for such an image), but areas of the right wing are substantially blurrier than areas of the left wing that are no farther from the physical camera and no farther from the center of the image. See the two image notes I've added. Could someone help me understand why the focus is varying? Nyttend ( talk) 02:03, 14 June 2016 (UTC)
I am automating a form in which there is unique id field that generates ids randomly through regular expression. I need that random value to be captured and stored in the excel sheet for my own database so that I can perform edit and search on the same data further. Here I have given the code that is generating the ids
public class Regular {
final static String ALPHA_NUMERIC_STRING = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz 0123456789!@#$%^&*()_+-=<>?:\"{}|,./;'[]\'";
public static String randomAlphaNumeric(int count)
{
StringBuilder builder = new StringBuilder();
while (count-- != 0) {
int character = (int)(Math.random()*ALPHA_NUMERIC_STRING.length());
builder.append(ALPHA_NUMERIC_STRING.charAt(character));
}
return builder.toString();
}
}
It gets to the unique id field through the following code:
enterTextField(UniqueCode,5,"Unique Code", Regular.randomAlphaNumeric(25));
How do I get this in my sheet. I have exhausted my limited knowledge of selenium and java. 121.243.112.118 ( talk) 04:54, 14 June 2016 (UTC)
How can I write a test case that checks if an element has the cursor focus or not in whenever a form is opened for the first time in selenium using java?
What i have been doing is that using
name.equals(driver.switchTo().activeElement()
and returning a boolean value.
but its not working.Any help.... 121.243.112.118 ( talk) 06:30, 14 June 2016 (UTC)
I am sorry I had to edit this. I am new to this. Anyway did you try .IsDisplayed by Boolean value? if it's true you'll know
Can anyone please identify the little black thing. [2]From touch seems to be made of ferrite, you know the stuff radio coils etc. are made of. It's identical twin was destroyed during accidental mishandling while trying to insert a new battery and is thus totally missing. Jon Ascton (talk) 08:26, 14 June 2016 (UTC)
I recall from my past: Sometimes while on-line, certain websites demand you to fill out a survey in order to receive something or go to the next page… What should I be worried about before I fill in such [random] surveys? -- Apostle ( talk) 18:56, 14 June 2016 (UTC)
Computing desk | ||
---|---|---|
< June 13 | << May | June | Jul >> | June 15 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
This generally isn't a high-quality photo; I took it while driving at comparatively low speed, and (as with most of my images) I had the camera on auto mode, not manual. I'm confused by the inconsistent focus: the center of the image is properly focused while the building's wings aren't (as is expected for such an image), but areas of the right wing are substantially blurrier than areas of the left wing that are no farther from the physical camera and no farther from the center of the image. See the two image notes I've added. Could someone help me understand why the focus is varying? Nyttend ( talk) 02:03, 14 June 2016 (UTC)
I am automating a form in which there is unique id field that generates ids randomly through regular expression. I need that random value to be captured and stored in the excel sheet for my own database so that I can perform edit and search on the same data further. Here I have given the code that is generating the ids
public class Regular {
final static String ALPHA_NUMERIC_STRING = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz 0123456789!@#$%^&*()_+-=<>?:\"{}|,./;'[]\'";
public static String randomAlphaNumeric(int count)
{
StringBuilder builder = new StringBuilder();
while (count-- != 0) {
int character = (int)(Math.random()*ALPHA_NUMERIC_STRING.length());
builder.append(ALPHA_NUMERIC_STRING.charAt(character));
}
return builder.toString();
}
}
It gets to the unique id field through the following code:
enterTextField(UniqueCode,5,"Unique Code", Regular.randomAlphaNumeric(25));
How do I get this in my sheet. I have exhausted my limited knowledge of selenium and java. 121.243.112.118 ( talk) 04:54, 14 June 2016 (UTC)
How can I write a test case that checks if an element has the cursor focus or not in whenever a form is opened for the first time in selenium using java?
What i have been doing is that using
name.equals(driver.switchTo().activeElement()
and returning a boolean value.
but its not working.Any help.... 121.243.112.118 ( talk) 06:30, 14 June 2016 (UTC)
I am sorry I had to edit this. I am new to this. Anyway did you try .IsDisplayed by Boolean value? if it's true you'll know
Can anyone please identify the little black thing. [2]From touch seems to be made of ferrite, you know the stuff radio coils etc. are made of. It's identical twin was destroyed during accidental mishandling while trying to insert a new battery and is thus totally missing. Jon Ascton (talk) 08:26, 14 June 2016 (UTC)
I recall from my past: Sometimes while on-line, certain websites demand you to fill out a survey in order to receive something or go to the next page… What should I be worried about before I fill in such [random] surveys? -- Apostle ( talk) 18:56, 14 June 2016 (UTC)