To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/9e64b60d-053c-4399-9759-2cfc333f9952%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/17c21fc3-5dc7-4a7b-84f6-c1bfd043c45d%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/1b3046af-6172-448e-87d1-bad532307aa2%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/fdb1c427-6b10-4db2-957a-d10a463b8de3%40googlegroups.com.
Thanks JIM for your reply..... Is there any additional settings\configuration that needs to be done in order to execute scripts on VM?
--
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/msgid/selenium-users/4d31c8e1-8275-495f-86cb-48867940aa4e%40googlegroups.com.
I have a script which
executes properly on my system. Created project on VM and imported
selenium-java 2.23.1 jars. Copied test scripts on VMs. Done Environment
variable settings and IE Settings as that I have on my system.
Piece of code that my script contains:
try
{
WebDriver driver = new
InternetExplorerDriver();
driver.get(url);
String
pageSource = driver.getPageSource();
log.info(pageSource);
WebElement we =
driver.findElement(By.linkText("XYZ"));
we.click();
}
catch(Exception ex)
{
ex.printStackTrace();
}
After all this setting I tried following:-
1. Executed above and encountered NoSuchElementException
2. Tried to check with other element but still the same
3. Tried to locate element by name and id but still the same
4. To ensure the element is rendered on the page, I made my driver to explicitly wait for web
element (as suggested earlier in this thread)and verified the existence of
elements by fetching the source code of WebDriver ( using getPageSource() ).
5. After all this, I tried testing for other official sites & non-officially site and found that the issue persist for official sites and not for non-official sites
6. I tried to change the IE settings of my local system to one of the VM’s IE settings and see if I could replicate the issue. I did the respective changes but I couldn’t replicate the issue. I then also tried changing the IE settings on VM to what we keep here on local machines, still the issue on the VM was not solved.
Looking at the replies, I guess the issue is not with Selenium WebDriver but certain setting of VM are creating problems for selenium webdriver. Not sure…..
Hope I have addressed all your queries and you have a rough picture of my
problem.