yes but here xpath is not dyanamic it remains constant
and for opening multiple browser i used the same code as you explainded in the video.
How can i use this with The OR file while i am using Xpath Please look my Project and also i did not get the resolution of my issue multiple browser is getting open.
Please do the necessary change in my attached project and let me the mistake i have done.
Thanks
deepak
what is the problem you're having? i thought you were having trouble with xpath.
i am facing two problem
1.Two Browser is getting open while i have write the same code plz once check in my code.
.2.I am getting error for Xpath unable to find ect...
while when i am using the same xpath with the below code it is working fine --without using anyframework
driver.findElement(By.xpath("//*[@id='email']")).sendKeys("alphauat@gmail.com");;
driver.findElement(By.xpath("//*[@id='pass']")).sendKeys("useurpassword");;
driver.findElement(By.xpath("//*[@id='loginbutton']")).click();
driver.findElement(By.xpath("//li[@id='navItem_100003037751620']/a/div")).click();--click on the user profile
with the POM Framework---
while i am trying to click on the user profile tab using property file it is showing error
//li[@id='navItem_100003037751620']/a/div
i am not able to click on the user profile tab and system showing error on the xpath
Please resolve this issue
Thanks
deepak
[quote:3ep9zgy1]
//li[@id='navItem_100003037751620']/a/div[/quote:3ep9zgy1]
this xpath will not work. it is a dynamic xpath. watch module 17.
[quote:3ddf8h4l].Two Browser is getting open while i have write the same code plz once check in my code.[/quote:3ddf8h4l]
i am not able to run your project.
hi ,
This is not dyanamic xpath its id remain same i tried it more then 10 time even after soem time interval as well
ok if it is dyanamic xpath please give me the solution of my probelm what is the appropriate xpath for it and
also
issue number two--why multiple browser is getting oepn i am requesting you plz open my project and check for you end as well i am stuck here.
Thanks
deepak
[quote:2r87ymmg]issue number two--why multiple browser is getting oepn i am requesting you plz open my project and check for you end as well i am stuck here.
[/quote:2r87ymmg]
i cannot run your project. how can i check the problem without running your project.