Instructor
gunjan Replied on 20/12/2018Scroll down the webpage and check again.
good thing is I am able to scroll down but element is not identified --
getting the following error OpenQA.Selenium.WebDriverException: 'Error executing JavaScript' at this line
js.ExecuteScript("document.getElementBytitle('Aspire Media Group').Click");
Attachedthecode
Instructor
gunjan Replied on 25/12/2018
Hi Shobha,
Try to inspect the element with selenium not with js
I tried with Selenium also, no luck.
Attaching the code here
Instructor
gunjan Replied on 27/12/2018
The same code is working fine in my system
IWebDriver driver = new ChromeDriver();
driver.Manage().Window.Maximize();
driver.Navigate().GoToUrl("https://www.jobserve.com/us/en/Job-Search/");
driver.FindElement(By.XPath("//*[@id='mainfooter']/div[4]/a")).Click();
Please check once again.