Skip to main content

Handling Chrome in Mac for Automation(update off/driver path)





If you are doing Automation on chrome on your Mac system then you face few issues like .
updgrade in you chrome browser which leads to updating chromedriver.

I still work on chrome version 85 to disable the chrome update you need to

Go to application-> search chrome driver -> Right click->show packaged content




 Open contents 




-> go to frameworks->Google chrome framework.framework->versions-> remove folder with name “Current” Its not visible in below screenshot as it already removed


 This will stop updating your chrome driver 


If your you want to update your chrome then search for the updated chrome driver download the version for Mac unzip 
and place it in the folder where your eclipse workspace is created, to do that 
First Go to eclipse Right click on the project-> go to properties

Copy the path

Now press 
command+shift+G. (pointing cursor in desktop)
paste the path  " /Users/priyankac/Documents/workspace"

Now you can copy and paste the chrome driver in the workspace you are working
You can also add the chrome driver at usr/local/bin
To do so got to the top menu and click on "Go"-> "Go to folder"

enter usr/local/bin in search bar and click on "Go"

paste the chrome driver in the  bin




Run the simple code to check if your chrome is working 


public class Multiplewindows {


WebDriver driver;

@Test

public void test1() throws InterruptedException {

System.setProperty("Webdriver.chrome.driver", "chromedriver");

    WebDriver driver = new ChromeDriver();

   driver.get("https://www.flipkart.com");

   System.out.println(driver.getTitle());

}

}Y





Comments

Popular posts from this blog

Cucumber - Execution of test cases and reporting

Before going through this blog please checkout blog on   Cucumber Fundamentals Cucumber is testing tool which implements BDD(behaviour driven development).It offers a way to write tests that  anybody can understand, regardless of there technical knowledge. It users Gherkin (business readable language) which helps to  describe behaviour without going into details of implementation It's helpful for  business stakeholders who can't easily read code ( Why cucumber tool,  is  called  cucumber , I have no idea if you ask me I could have named it "Potato"(goes well with everything and easy to understand 😂) Well, According to its founder..... My wife suggested I call it  Cucumber  (for no particular reason), so that's how it got its  name . I also decided to give the Given-When-Then syntax a  name , to separate it from the  tool . That's why it's  called  Gherkin ( small variety of a cucumber that's been pickled. I...

Automating Flipkart via selenium

                                            Hi Folks, we are automating a flipkart site where you will see how to search and filter the product you choose without logging in . import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.support.ui.Select; import org.testng.annotations.Test; public class flipkart { WebDriver driver ; @Test       public void test()       {   System.setProperty( "Webdriver.chrome.driver" , "chromedriver" );     WebDriver driver = new ChromeDriver();   driver .manage().timeouts().implicitlyWait(5, TimeUnit. SECONDS );   driver .manage().window().maximize();          driver .get( "https://www.flipkart.com" );   ...

Jmeter 5.4.1- Config Elements - Part-03

  Part-01- Installation of Jmeter and HTTP's Recorder click  here Part 02--Previous blog on Assertion Config elements in Jmeter are used to configure or modify the samplers requests made to the server. These elements are added at the same or higher level of the samplers that we want to configure  Let' start with  CSV data config As the name suggest it used to read data from CSV first we need to put data in variables and then use the variables in sampler request. create a new test plan add CSV data set config Add a Thread Group and then add Sampler "Java Request"  Create a CSV file  with some data (Name and Data) and save it  Now go to Jmeter CSs data set config browse and upload the css file create Make few more changes in place of  variable name - Name and Dept Ignore first line - True Delimeter - \t (as suggested) Now move on the Sampler-" Java Request" and rename it with header elements of CSV As we have Name and d...